-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
70 lines (49 loc) · 1.61 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
VERSION=3.1
CC=gcc
LIBS= -lcrypto -lssl -lUseful-5
FLAGS=-g -O2 -DVERSION=\"$(VERSION)\"
prefix=/usr/local
exec_prefix=${prefix}
BINDIR=${exec_prefix}/bin
man_prefix=@man_prefix@
MANDIR=${prefix}/share/man
OBJ=common.o net.o netdev.o runcommand.o iw.o wireless_tools.o wpa_supplicant.o wifi.o interactive.o settings.o qrcode.o command_line.o help.o
all: $(OBJ)
$(CC) $(FLAGS) -oterm_wifi $(OBJ) main.c $(LIBS)
libUseful-4/libUseful.a:
$(MAKE) -C libUseful-4
common.o: common.h common.c common.h
$(CC) $(FLAGS) -c common.c
interactive.o: interactive.h interactive.c common.h
$(CC) $(FLAGS) -c interactive.c
net.o: net.h net.c common.h
$(CC) $(FLAGS) -c net.c
help.o: help.h help.c common.h
$(CC) $(FLAGS) -c help.c
qrcode.o: qrcode.h qrcode.c common.h
$(CC) $(FLAGS) -c qrcode.c
netdev.o: netdev.h netdev.c common.h
$(CC) $(FLAGS) -c netdev.c
wifi.o: wifi.h wifi.c common.h
$(CC) $(FLAGS) -c wifi.c
iw.o: iw.h iw.c common.h
$(CC) $(FLAGS) -c iw.c
wireless_tools.o: wireless_tools.h wireless_tools.c common.h
$(CC) $(FLAGS) -c wireless_tools.c
wpa_supplicant.o: wpa_supplicant.h wpa_supplicant.c common.h
$(CC) $(FLAGS) -c wpa_supplicant.c
runcommand.o: runcommand.h runcommand.c common.h
$(CC) $(FLAGS) -c runcommand.c
settings.o: settings.h settings.c common.h
$(CC) $(FLAGS) -c settings.c
command_line.o: command_line.h command_line.c common.h
$(CC) $(FLAGS) -c command_line.c
clean:
rm term_wifi *.o libUseful-4/*.o libUseful-4/*.a libUseful-4/*.so *.orig
install:
mkdir -p $(BINDIR)
cp -f term_wifi $(BINDIR)
mkdir -p $(MANDIR)/man1
cp -f term_wifi.1 $(MANDIR)/man1
test:
echo "no tests"