get_value now expects variable names to always have a = as the separator.
[dhcpcd-ui] / src / libdhcpcd / Makefile
index fb30f21eaa5b7527651fd417ce403655f02cc096..eb910d222728444f7a204fdb2c1af46811b593b7 100644 (file)
@@ -1,21 +1,15 @@
 LIB=           dhcpcd
 SHLIB_MAJOR=   1
-SRCS=          main.c config.c dispatch.c misc.c wpa.c
+SRCS=          dhcpcd.c config.c wpa.c ${VIS_SRC} ${UNVIS_SRC}
+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}
+LDADD+=                ${LIB_INTL}
 
 # 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