Re-write libdhcpcd to talk to dhcpcd directly and not use DBus.
[dhcpcd-ui] / src / libdhcpcd / Makefile
index fb30f21eaa5b7527651fd417ce403655f02cc096..162377a8d4f177b7775bc3982e2d55b9417f0613 100644 (file)
@@ -1,21 +1,14 @@
 LIB=           dhcpcd
 SHLIB_MAJOR=   1
-SRCS=          main.c config.c dispatch.c misc.c wpa.c
+SRCS=          dhcpcd.c config.c wpa.c
+INCS=          dhcpcd.h
 
-_PKGCFLAGS_SH= pkg-config --cflags dbus-1
-_PKGCFLAGS!=   ${_PKGCFLAGS_SH}
-PKGCFLAGS?=    ${_PKGCFLAGS}$(shell ${_PKGCFLAGS_SH})
-CFLAGS+=       ${PKGCFLAGS}
+TOPDIR=                ../..
+include ${TOPDIR}/iconfig.mk
 
-_PKGLIBS_SH=   pkg-config --libs dbus-1
-_PKGLIBS!=     ${_PKGLIBS_SH}
-PKGLIBS?=      ${_PKGLIBS}$(shell ${_PKGLIBS_SH})
-LDADD+=                ${PKGLIBS}
+CPPFLAGS+=     -I${TOPDIR}
 
 # Don't install
-LIBINSTALL=
+LIBINSTALL=    ${LIB_DHCPCD_INSTALL}
 
-MK=            ../../mk
-include ${MK}/lib.mk
-include ${MK}/cc.mk
-include ${MK}/debug.mk
+include ${MKDIR}/lib.mk