-
Notifications
You must be signed in to change notification settings - Fork 27
/
Makefile.in
124 lines (95 loc) · 2.88 KB
/
Makefile.in
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
VERSION = 20180302
MAJOR = 2
MINOR = 0
TINY = 0
HOME = @srcdir@
top_builddir = $(HOME)
prefix = @prefix@
exec_prefix = @exec_prefix@
datarootdir = @datarootdir@
ETC = ${DESTDIR}@sysconfdir@
BIN = ${DESTDIR}@bindir@
DATAROOT = ${DESTDIR}@datarootdir@
SHARE = ${DESTDIR}@datadir@/lorcon/
MAN = ${DESTDIR}@mandir@
LIB = ${DESTDIR}@libdir@
INCLUDE = ${DESTDIR}@includedir@
CC = @CC@
LDFLAGS = @LDFLAGS@ -L$(LIB)
LIBS = @LIBS@ @NLLIBS@
CFLAGS = -I./ @CPPFLAGS@ @CFLAGS@ @NLCFLAGS@ -DLORCON_VERSION=$(VERSION) -I$(INCLUDE)
SHELL = @SHELL@
LIBTOOL = @LIBTOOL@
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS)
DEPEND = .depend
LIBOBJ = ifcontrol_linux.lo iwcontrol.lo madwifing_control.lo nl80211_control.lo \
wifi_ht_channels.lo \
lorcon_packet.lo lorcon_packasm.lo lorcon_forge.lo \
drv_mac80211.lo drv_tuntap.lo drv_madwifing.lo drv_file.lo \
sha1.lo \
lorcon.lo lorcon_multi.lo
LIBOUT = liborcon2.la
TXTESTOBJ = tx.o
TXTESTOUT = tx
TXTUNOBJ = tools/tuntx.o
TXTUNOUT = tools/tuntx
MCSSWEEP2OBJ = tools/mcs_sweep2.o
MCSSWEEP2OUT = tools/mcs_sweep2
all: $(DEPEND) $(LIBOUT)
$(LIBOUT): $(LIBOBJ)
$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LIBS) -o $(LIBOUT) $(LIBOBJ) \
-rpath $(LIB) -release $(MAJOR).$(MINOR).$(TINY)
$(TXTESTOUT): $(TXTESTOBJ)
$(CC) $(CFLAGS) $(LDFLAGS) -o $(TXTESTOUT) $(TXTESTOBJ) $(LIBS) -lorcon2
$(TXTUNOUT): $(TXTUNOBJ)
$(CC) $(CFLAGS) $(LDFLAGS) -o $(TXTUNOUT) $(TXTUNOBJ) $(LIBS) -lorcon2 -lpcap
$(MCSSWEEP2OUT): $(MCSSWEEP2OBJ)
$(CC) $(CFLAGS) $(LDFLAGS) -o $(MCSSWEEP2OUT) $(MCSSWEEP2OBJ) $(LIBS) -lorcon2
tools: $(LIBOUT) $(TXTUNOUT) $(L2PINGOUT) $(MCSSWEEP2OUT)
install: $(LIBOUT)
install -d -m 755 $(LIB)
$(LIBTOOL) --mode=install install -c $(LIBOUT) $(LIB)/$(LIBOUT)
install -d -m 755 $(INCLUDE)
install -d -m 755 $(INCLUDE)/lorcon2/
install -m 644 lorcon.h $(INCLUDE)/lorcon2/lorcon.h
install -m 644 lorcon_packet.h $(INCLUDE)/lorcon2/lorcon_packet.h
install -m 644 lorcon_packasm.h $(INCLUDE)/lorcon2/lorcon_packasm.h
install -m 644 lorcon_forge.h $(INCLUDE)/lorcon2/lorcon_forge.h
install -m 644 lorcon_multi.h $(INCLUDE)/lorcon2/lorcon_multi.h
install -m 644 ieee80211.h $(INCLUDE)/lorcon2/lorcon_ieee80211.h
install -d -m 755 $(MAN)/man3
install -o root -m 644 lorcon.3 $(MAN)/man3/lorcon.3
$(LDCONFIG)
clean:
@-rm -f *.o
@-rm -f *.lo
@-rm -f *.la
@-rm -rf .libs
@-rm -f $(TXTESTOUT)
@-rm -f $(MCSSWEEP2OUT)
@-rm -f $(TXTUNOUT)
distclean:
@-$(MAKE) clean
@-rm -f *~
@-rm cscope.out
@-rm -f $(DEPEND)
@-rm -f config.status
@-rm -f config.h
@-rm -f config.log
@-rm -f Makefile
dep:
@$(MAKE) depend
depend:
@$(MAKE) $(DEPEND)
$(DEPEND):
@-rm -f $(DEPEND)
@echo "Generating dependencies... "
@echo > $(DEPEND)
@$(CC) $(CFLAGS) -MM \
`echo $(LIBOBJ) | sed -e "s/\.lo/\.c/g"` >> $(DEPEND)
include $(DEPEND)
.c.o: $(DEPEND)
$(CC) $(CFLAGS) -c $*.c -o $@
.c.lo: $(DEPEND)
$(LTCOMPILE) -c $*.c -o $@
.SUFFIXES: .c .o .lo