-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.am
39 lines (28 loc) · 1.24 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
AUTOMAKE_OPTIONS = foreign -Wno-syntax subdir-objects
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = -I./src -I./vendor -L./vendor/loci -Wstrict-prototypes -Wall -Wextra -Werror -fPIC -pthread -lcfluid_base -loci
noinst_LIBRARIES =
noinst_LTLIBRARIES =
include vendor/patricia/automake.mk
include vendor/log/automake.mk
include vendor/json/automake.mk
include src/automake.mk
bin_PROGRAMS = horse
horse_SOURCES = src/horse.c
horse_LDADD = .libs/libhorse.a -lcfluid_base -loci
# Unit tests
TESTS = flow_table_test scheduler_test instruction_test netflow_test
unit_test_CFLAGS = -DUNIT_TESTING=1 -I./src -I./vendor
noinst_PROGRAMS = flow_table_test scheduler_test instruction_test netflow_test
flow_table_test_SOURCES = tests/flow_table_test.c
flow_table_test_CFLAGS = $(unit_test_CFLAGS)
flow_table_test_LDADD = -lcmockery .libs/libhorse.a
scheduler_test_SOURCES = tests/scheduler_test.c
scheduler_test_CFLAGS = $(unit_test_CFLAGS)
scheduler_test_LDADD = -lcmockery .libs/libhorse.a
instruction_test_SOURCES = tests/instruction_test.c
instruction_test_CFLAGS = $(unit_test_CFLAGS)
instruction_test_LDADD = -lcmockery .libs/libhorse.a
netflow_test_SOURCES = tests/netflow_test.c
netflow_test_CFLAGS = $(unit_test_CFLAGS)
netflow_test_LDADD = -lcmockery .libs/libhorse.a