Fix segfault if error getting scans.
[dhcpcd-ui] / src / dhcpcd-gtk / 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 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 include ../libdhcpcd/Makefile.inc
14
15 CPPFLAGS+=      -DICONDIR=\"${ICONDIR}\"
16 CPPFLAGS+=      -DNOTIFY
17
18 _PKGCFLAGS_SH=  pkg-config --cflags gtk+-2.0 libnotify
19 _PKGCFLAGS!=    ${_PKGCFLAGS_SH}
20 PKGCFLAGS?=     ${_PKGCFLAGS}$(shell ${_PKGCFLAGS_SH})
21 CFLAGS+=        ${PKGCFLAGS}
22
23 _PKGLIBS_SH=    pkg-config --libs gtk+-2.0 libnotify
24 _PKGLIBS!=      ${_PKGLIBS_SH}
25 PKGLIBS?=       ${_PKGLIBS}$(shell ${_PKGLIBS_SH})
26 LDADD+=         ${PKGLIBS}
27
28 MK=             ../../mk
29 include ${MK}/sys.mk
30 include ${MK}/prog.mk