New version, including standard dbus service and building smoothly also under debian...
[wifihood] / wifiscand / Makefile
1
2 PREFIX = /usr
3
4 OSSO_CFLAGS = $(shell pkg-config --silence-errors --cflags libosso)
5 OSSO_LDFLAGS = $(shell pkg-config --silence-errors --libs libosso)
6
7 DBUS_CFLAGS = $(shell pkg-config --cflags dbus-1)
8 DBUS_LDFLAGS = $(shell pkg-config --libs dbus-1)
9
10 GLIB_CFLAGS = $(shell pkg-config --cflags glib-2.0)
11 GLIB_LDFLAGS = $(shell pkg-config --libs glib-2.0)
12
13 CPPFLAGS = 
14 CFLAGS = $(DBUS_CFLAGS) $(GLIB_CFLAGS) $(OSSO_CFLAGS)
15 LDFLAGS = -liw $(DBUS_LDFLAGS) $(GLIB_LDFLAGS) $(OSSO_LDFLAGS)
16
17 default:
18
19 install: wifiscand
20         cp wifiscand $(DESTDIR)$(PREFIX)/sbin
21         cp wifiscand.service $(DESTDIR)$(PREFIX)/share/dbus-1/services
22
23 clean:
24         @rm -rf wifiscand
25