Don't rebind all if found a SSID to rebind.
[dhcpcd-ui] / src / dhcpcd-gtk / Makefile
index 55781dd38f6e860e72434292b475f89884c4a0a0..75eec7d3341755e7943706443886a14d81bad4cd 100644 (file)
@@ -1,30 +1,21 @@
-# Makefile based on BSD make.
-# Our mk stubs also work with GNU make.
-# Copyright 2008 Roy Marples <roy@marples.name>
-
 PROG=          dhcpcd-gtk
 SRCS=          main.c menu.c prefs.c wpa.c
 
+TOPDIR=                ../..
+include ${TOPDIR}/iconfig.mk
+
 ICONDIR?=      ${PREFIX}/share/dhcpcd/icons
-SYSCONFDIR?=   ${PREFIX}/etc/xdg/autostart
-FILESDIR?=     ${SYSCONFDIR}
+AUTOSTARTDIR?= ${PREFIX}/share/gnome/autostart
+FILESDIR=      ${AUTOSTARTDIR}
 FILES=         dhcpcd-gtk.desktop
+MAN8=          dhcpcd-gtk.8
 
-include ../libdhcpcd/Makefile.inc
+CPPFLAGS+=     ${NOTIFY} -I${TOPDIR}
 
-CPPFLAGS+=     -DICONDIR=\"${ICONDIR}\"
-CPPFLAGS+=     -DNOTIFY
+CFLAGS+=       ${GTK_CFLAGS}
+LDADD+=                ${LIB_DHCPCD} ${GTK_LIBS}
 
-_PKGCFLAGS_SH= pkg-config --cflags gtk+-2.0 libnotify
-_PKGCFLAGS!=   ${_PKGCFLAGS_SH}
-PKGCFLAGS?=    ${_PKGCFLAGS}$(shell ${_PKGCFLAGS_SH})
-CFLAGS+=       ${PKGCFLAGS}
+.PHONY: dhcpcd-gtk
 
-_PKGLIBS_SH=   pkg-config --libs gtk+-2.0 libnotify
-_PKGLIBS!=     ${_PKGLIBS_SH}
-PKGLIBS?=      ${_PKGLIBS}$(shell ${_PKGLIBS_SH})
-LDADD+=                ${PKGLIBS}
-
-MK=            ../../mk
-include ${MK}/sys.mk
-include ${MK}/prog.mk
+include ../libdhcpcd/Makefile.inc
+include ${MKDIR}/prog.mk