-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (26 loc) · 750 Bytes
/
Makefile
File metadata and controls
38 lines (26 loc) · 750 Bytes
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
31
32
33
34
35
36
37
38
CPPFLAGS=-pthread -I/usr/include/libnl3
LDFLAGS=-pthread
LDLIBS=-lpcap -lnl-3 -lnl-genl-3 -lstdc++
SRCS=main.cpp channel.cpp ieee80211.cpp station.cpp display.cpp gpio.cpp oui.cpp ui_menus.cpp
OBJS=$(subst .cpp,.o,$(SRCS))
all: wifi
wifi: $(OBJS)
c++ $(LDFLAGS) -o wifi $(OBJS) $(LDLIBS)
main.o: main.cpp
c++ $(CPPFLAGS) -c main.cpp
channel.o: channel.cpp
c++ $(CPPFLAGS) -c channel.cpp
ieee80211.o: ieee80211.cpp
c++ $(CPPFLAGS) -c ieee80211.cpp
station.o: station.cpp
c++ $(CPPFLAGS) -c station.cpp
display.o: display.cpp
c++ $(CPPFLAGS) -c display.cpp
gpio.o: gpio.cpp
c++ $(CPPFLAGS) -c gpio.cpp
oui.o: oui.cpp
c++ $(CPPFLAGS) -c oui.cpp
ui_menus.o: ui_menus.cpp
c++ $(CPPFLAGS) -c ui_menus.cpp
clean:
rm -f $(OBJS) wifi