-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.static
43 lines (30 loc) · 954 Bytes
/
Makefile.static
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
CC=gcc
CFLAGS=-Wall -march=native -O3
#CFLAGS=-Wall -O3
#CFLAGS=-Wall -march=native -O2 -pg
#CFLAGS=-Wall -march=native -O0 -g
# This sets the execap version string
CFLAGS += -DEXECAPVER='"0.8"'
LDLIBS=-lpcap -lssl -lcrypto -lpthread
# If you have an old version of libpcap (less than 1.0) then you probably
# need to set this to 1
CFLAGS += -DOLDPCAP=0
# This shouldn't be needed but if you have libpcap problems
# give it a try
#CFLAGS += -I/usr/include/pcap
#CFLAGS += -I/usr/libpcap1/include/
# If you are having trouble locating a library such as libpcap set this
#CFLAGS += -L/usr/lib64/ -L/usr/lib64/libpcap1/lib64/
main: execap
execap: execap.o findexe.o pavl.o
$(CC) $(CFLAGS) execap.o findexe.o pavl.o -o execap ${LDLIBS}
execap.o: execap.c execap.h
$(CC) $(CFLAGS) -c execap.c
findexe.o: findexe.c execap.h
$(CC) $(CFLAGS) -c findexe.c
pavl.o: pavl.c pavl.h
$(CC) $(CFLAGS) -c pavl.c
clean:
rm -f execap
rm -f *.o
rm -f *~