Work with icons a bit better if there is no GTK+ theme.
[dhcpcd-ui] / Makefile
1 # Makefile based on BSD make.
2 # Our mk stubs also work with GNU make.
3 # Copyright 2008 Roy Marples <roy@marples.name>
4
5 PROG=           dhcpcd-gtk
6 SRCS=           main.c menu.c dhcpcd-config.c prefs.c wpa.c
7
8 ICONDIR?=       ${PREFIX}/share/dhcpcd/icons
9 SYSCONFDIR?=    ${PREFIX}/etc/xdg/autostart
10 FILESDIR?=      ${SYSCONFDIR}
11 FILES=          dhcpcd-gtk.desktop
12
13 CPPFLAGS+=      -DICONDIR=\"${ICONDIR}\"
14
15 _PKGCFLAGS_SH=  pkg-config --cflags dbus-glib-1 gtk+-2.0 libnotify
16 _PKGCFLAGS!=    ${_PKGCFLAGS_SH}
17 PKGCFLAGS?=     ${_PKGCFLAGS}$(shell ${_PKGCFLAGS_SH})
18 CFLAGS+=        ${PKGCFLAGS}
19
20 _PKGLIBS_SH=    pkg-config --libs dbus-glib-1 gtk+-2.0 libnotify
21 _PKGLIBS!=      ${_PKGLIBS_SH}
22 PKGLIBS?=       ${_PKGLIBS}$(shell ${_PKGLIBS_SH})
23 LDADD+=         ${PKGLIBS}
24
25 MK=             mk
26 include ${MK}/sys.mk
27 include ${MK}/prog.mk