-
Notifications
You must be signed in to change notification settings - Fork 35
/
Makefile.am
51 lines (39 loc) · 1.13 KB
/
Makefile.am
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
AUTOMAKE_OPTIONS=-Wall foreign
OFSRC=@openflowsrc@
CFLAGS+=-Wall -I$(OFSRC)/include \
-Wshadow `pkg-config --cflags libconfig` \
-D_GNU_SOURCE
LDFLAGS+=-L$(OFSRC)/lib `pkg-config --libs libconfig`
LDADD=-ldl -lpcap -lnetsnmp -loflops_test -lpthread
#LDADD+=-lefence
EXTRA_DIST=./doc
bin_PROGRAMS=oflops
lib_LTLIBRARIES=liboflops_test.la
liboflops_test_la_SOURCES= test_module.h test_module.c \
msgbuf.c msgbuf.h \
pcap_track.c pcap_track.h \
oflops_snmp.c oflops_snmp.h \
utils.h utils.c \
wc_event.h wc_event.c
liboflops_test_la_LIBADD=-lnetsnmp
oflops_SOURCES= \
channel_info.h channel_info.c \
context.h context.c \
control.h control.c \
module_run.h module_run.c \
module_default.h module_default.c \
oflops.c oflops.h \
oflops_pcap.h oflops_pcap.c \
timer_event.h timer_event.c \
msg.c msg.h \
log.c log.h \
traffic_generator.c traffic_generator.h \
usage.h usage.c
oflops_LDFLAGS=-static -Wl,-E
# lame; add "." before anything else to force dependencies
# to be built right
SUBDIRS = . example_modules cbench doc
docs:
$(MAKE) -C doc docs
count:
@wc -l `find . -name \*.c -o -name \*.h -o -name Makefile.am` | sort -n