scan flags -> wpa_flags.
[dhcpcd-ui] / src / dhcpcd-qt / dhcpcd-qt.pro
1 CONFIG+=                qt gui c++11 debug
2 QMAKE_CXXFLAGS+=        -std=c++11 -O2
3
4 HEADERS=                dhcpcd-qt.h dhcpcd-about.h dhcpcd-preferences.h \
5                         dhcpcd-wi.h dhcpcd-ifmenu.h \
6                         dhcpcd-ssidmenu.h dhcpcd-ssidmenuwidget.h \
7                         dhcpcd-ipv4validator.h
8 SOURCES=                main.cpp dhcpcd-qt.cpp dhcpcd-about.cpp \
9                         dhcpcd-preferences.cpp dhcpcd-wi.cpp \
10                         dhcpcd-ifmenu.cpp \
11                         dhcpcd-ssidmenu.cpp dhcpcd-ssidmenuwidget.cpp \
12                         dhcpcd-ipv4validator.cpp
13
14 INCLUDEPATH+=           ../../
15 INCLUDEPATH+=           ../libdhcpcd/
16
17 LIBS+=                  -L../libdhcpcd ../libdhcpcd/libdhcpcd.a
18
19 has_libintl {
20         LIBS +=         -lintl
21 }
22
23 has_libkdeui {
24         LIBS+=          -lkdeui
25         DEFINES+=       NOTIFY
26         INSTALLS+=      notifyrc
27 }
28
29 QMAKE_CLEAN+=           ${TARGET}
30
31 isEmpty(PREFIX) {
32         PREFIX=         /usr/local
33 }
34 isEmpty(SYSCONFDIR) {
35         SYSCONFDIR=     $$PREFIX/etc
36 }
37 isEmpty(MANDIR) {
38         MANDIR=         $$PREFIX/share/man
39 }
40
41 target.path=            $$PREFIX/bin
42
43 man8.path=              $$MANDIR/man8
44 man8.files=             dhcpcd-qt.8
45
46 desktop.path=           $$PREFIX/share/applications
47 desktop.files=          dhcpcd-qt.desktop
48
49 notifyrc.path=          $$PREFIX/share/apps/dhcpcd-qt
50 notifyrc.files=         dhcpcd-qt.notifyrc
51
52 INSTALLS+=              target man8 desktop