-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 764 Bytes
/
Makefile
File metadata and controls
25 lines (18 loc) · 764 Bytes
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
MFLAGS=-lm
CFLAGS=-Wall -Werror -ggdb -I. -Ilibtrafficker/
NIDSFLAGS=-lpcap -lnids
TARGETS=gmaps-profile gmaps-trafficker
all: libtrafficker/libtrafficker.a $(TARGETS)
.c.o:
$(CC) $(CFLAGS) -c $< -o $@
libtrafficker/libtrafficker.a:
$(MAKE) -C libtrafficker/
gmaps-trafficker: $(LIBTR) map.o list.o utils.o gmaps-utils.o gmaps-trafficker.c gmaps.h
$(CC) $(CFLAGS) gmaps-trafficker.c map.o list.o utils.o gmaps-utils.o libtrafficker/libtrafficker.a $(NIDSFLAGS) $(MFLAGS) -o $@
gmaps-profile: map.o list.o utils.o gmaps-utils.o gmaps-profile.c gmaps.h
$(CC) $(CFLAGS) gmaps-profile.c map.o list.o utils.o gmaps-utils.o $(MFLAGS) -o $@
clean:
$(RM) $(TARGETS) *.o
$(MAKE) -C libtrafficker clean
count:
find . -iname "*.[c|h]" -exec cat \{\} \; | wc -l