-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (21 loc) · 814 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
31
32
33
34
include ./Makefile.inc
SRCS=arp.c attacks.c ext/chtbl.c ext/chksum.c getroutes.c ext/makepkt.c main.c misc.c ext/packet_slice.c payload.c ext/rbtree.c ext/xmalloc.c ochksum.c ext/xdelay.c
HDRS=$(SRCS:.c=.h) ext/packets.h
OBJS=$(SRCS:.c=.o)
OBJS += ext/gtod.o ext/tsc.o ext/sleep.o
PROGNAME=sockstress
CFLAGS += -DPROGNAME=\"$(PROGNAME)\"
LDFLAGS = -lpcap
all: $(PROGNAME)
$(PROGNAME): $(OBJS) $(HDRS) ext/patricia_trie/libpatricia.a
$(CC) $(CFLAGS) -o $(PROGNAME) $(OBJS) $(LDFLAGS) ext/patricia_trie/libpatricia.a
ext/patricia_trie/libpatricia.a:
make -C ext/patricia_trie
tests:
install:
@echo There is no install for this program
clean:
rm -f $(PROGNAME) $(OBJS) core
make -C ext/patricia_trie clean
distclean: clean
rm -rf configure autom4te.cache config.status config.log Makefile config.h