-
Notifications
You must be signed in to change notification settings - Fork 46
/
Makefile
30 lines (22 loc) · 804 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
WIFI_SCAN = wifi_scan.o
EXAMPLES = wifi-scan-station wifi-scan-all
CC = gcc
CXX = g++
DEBUG =
CFLAGS = -O2 -Wall -c $(DEBUG)
CXX_FLAGS = -O2 -std=c++11 -Wall -c $(DEBUG)
LDLIBS = -lmnl
wifi_scan.o : wifi_scan.h wifi_scan.c
$(CC) $(CFLAGS) wifi_scan.c
all : $(WIFI_SCAN) $(EXAMPLES)
examples: $(EXAMPLES)
wifi-scan-station : wifi_scan.o wifi_scan_station.o
$(CC) wifi_scan.o wifi_scan_station.o $(LDLIBS) -o wifi-scan-station
wifi-scan-all : wifi_scan.o wifi_scan_all.o
$(CC) wifi_scan.o wifi_scan_all.o $(LDLIBS) -o wifi-scan-all
wifi_scan_station.o : wifi_scan.h examples/wifi_scan_station.c
$(CC) $(CFLAGS) examples/wifi_scan_station.c
wifi_scan_all.o : wifi_scan.h examples/wifi_scan_all.c
$(CC) $(CFLAGS) examples/wifi_scan_all.c
clean:
\rm -f *.o examples/*.o $(WIFI_SCAN) $(EXAMPLES)