-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
69 lines (49 loc) · 1.83 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
# To build for Trinux, add '-static' to LDFLAGS
# and 'strip *sic' after they compile
PREFIX = @prefix@
CC = @CC@
DEFS = @DEFS@ `libnet-config --defines`
CFLAGS = @CFLAGS@ `libnet-config --cflags`
LIBS = @LIBS@ `libnet-config --libs`
LDFLAGS = @LDFLAGS@
INSTALL = @INSTALL@
VERSION = 0.07
DEFS += -DVERSION=\"$(VERSION)\"
BINS = isic tcpsic udpsic icmpsic esic multisic isic6 tcpsic6 udpsic6 icmpsic6
MAN = isic.1
all: $(BINS)
isic: isic.c isic.h
$(CC) -o isic isic.c -Wall -W $(CFLAGS) $(DEFS) $(LIBS) $(LDFLAGS)
tcpsic: tcpsic.c isic.h
$(CC) -o tcpsic tcpsic.c -Wall -W $(CFLAGS) $(DEFS) $(LIBS) $(LDFLAGS)
udpsic: udpsic.c isic.h
$(CC) -o udpsic udpsic.c -Wall -W $(CFLAGS) $(DEFS) $(LIBS) $(LDFLAGS)
icmpsic: icmpsic.c isic.h
$(CC) -o icmpsic icmpsic.c -Wall -W $(CFLAGS) $(DEFS) $(LIBS) $(LDFLAGS)
esic: esic.c isic.h
$(CC) -o esic esic.c -Wall -W $(CFLAGS) $(DEFS) $(LIBS) $(LDFLAGS)
multisic: multisic.c isic.h
$(CC) -o multisic multisic.c -Wall -W $(CFLAGS) $(DEFS) $(LIBS) $(LDFLAGS)
isic6: isic6.c isic.h
$(CC) -o isic6 isic6.c -Wall -W $(CFLAGS) $(DEFS) $(LIBS) $(LDFLAGS)
tcpsic6: tcpsic6.c isic.h
$(CC) -o tcpsic6 tcpsic6.c -Wall -W $(CFLAGS) $(DEFS) $(LIBS) $(LDFLAGS)
udpsic6: udpsic6.c isic.h
$(CC) -o udpsic6 udpsic6.c -Wall -W $(CFLAGS) $(DEFS) $(LIBS) $(LDFLAGS)
icmpsic6: icmpsic6.c isic.h
$(CC) -o icmpsic6 icmpsic6.c -Wall -W $(CFLAGS) $(DEFS) $(LIBS) $(LDFLAGS)
realclean: distclean
distclean: clean
rm -f config.cache config.log config.status
clean:
rm -f $(BINS)
package: distclean
rm -f Makefile
chmod 755 configure
( cd .. ; rm -f isic-$(VERSION).tgz ; \
tar -czvf isic-$(VERSION).tgz ./isic-$(VERSION)/* )
install: $(BINS) $(MAN)
$(INSTALL) -m 0755 -d $(PREFIX)/bin
$(INSTALL) -m 0755 -c $(BINS) $(PREFIX)/bin
$(INSTALL) -m 0755 -d $(PREFIX)/man/man1
${INSTALL} -m 0755 -c $(MAN) $(PREFIX)/man/man1