First implementation for detected wifi cards database
[wifihood] / wifiscand / Makefile
1
2 VERSION = 1.3
3
4 PREFIX = /usr
5
6 OSSO_CFLAGS = $(shell pkg-config --silence-errors --cflags libosso)
7 OSSO_LDFLAGS = $(shell pkg-config --silence-errors --libs libosso)
8
9 DBUS_CFLAGS = $(shell pkg-config --cflags dbus-1)
10 DBUS_LDFLAGS = $(shell pkg-config --libs dbus-1)
11
12 GLIB_CFLAGS = $(shell pkg-config --cflags glib-2.0)
13 GLIB_LDFLAGS = $(shell pkg-config --libs glib-2.0)
14
15 CPPFLAGS = 
16 CFLAGS = $(DBUS_CFLAGS) $(GLIB_CFLAGS) $(OSSO_CFLAGS)
17 LDFLAGS = -liw $(DBUS_LDFLAGS) $(GLIB_LDFLAGS) $(OSSO_LDFLAGS)
18
19 default:
20
21 install: wifiscand
22         cp wifiscand $(DESTDIR)$(PREFIX)/sbin
23         cp wifiscand.service $(DESTDIR)$(PREFIX)/share/dbus-1/services
24
25 dist:
26         tar -czf ../wifiscand-$(VERSION).tar.gz --exclude .svn -C .. wifiscand
27
28 clean:
29         @rm -rf wifiscand
30