grapes / som / Tests / Makefile @ b3dd32b0
History | View | Annotate | Download (1.54 KB)
1 |
CFLAGS = -g -Wall |
---|---|
2 |
CFLAGS += $(call cc-option, -Wdeclaration-after-statement) |
3 |
CFLAGS += $(call cc-option, -Wno-switch) |
4 |
CFLAGS += $(call cc-option, -Wdisabled-optimization) |
5 |
CFLAGS += $(call cc-option, -Wpointer-arith) |
6 |
CFLAGS += $(call cc-option, -Wredundant-decls) |
7 |
CFLAGS += $(call cc-option, -Wno-pointer-sign) |
8 |
CFLAGS += $(call cc-option, -Wcast-qual) |
9 |
CFLAGS += $(call cc-option, -Wwrite-strings) |
10 |
CFLAGS += $(call cc-option, -Wtype-limits) |
11 |
CFLAGS += $(call cc-option, -Wundef) |
12 |
|
13 |
CFLAGS += $(call cc-option, -funit-at-a-time) |
14 |
|
15 |
BASE = ../.. |
16 |
TESTS = topology_test \ |
17 |
topology_test_attr \ |
18 |
chunk_encoding_test \ |
19 |
chunk_sending_test \ |
20 |
chunk_signaling_test \ |
21 |
chunkidset_test \ |
22 |
chunkidset_test_bug \ |
23 |
cb_test \ |
24 |
config_test \ |
25 |
tman_test |
26 |
|
27 |
CPPFLAGS = -I$(BASE)/include |
28 |
|
29 |
LDFLAGS += -L.. |
30 |
LDLIBS += -lgrapes |
31 |
#LDFLAGS += -static |
32 |
|
33 |
all: $(TESTS) |
34 |
|
35 |
topology_test_attr: topology_test_attr.o net_helpers.o |
36 |
topology_test_attr: ../net_helper.o |
37 |
|
38 |
topology_test: topology_test.o net_helpers.o |
39 |
topology_test: ../net_helper.o |
40 |
|
41 |
chunk_encoding_test: chunk_encoding_test.o |
42 |
|
43 |
cb_test: cb_test.o |
44 |
|
45 |
chunkidset_test: chunkidset_test.o chunkid_set_h.o |
46 |
|
47 |
chunkidset_test_bug: chunkidset_test_bug.o chunkid_set_h.o |
48 |
|
49 |
chunk_sending_test: chunk_sending_test.o net_helpers.o |
50 |
chunk_sending_test: ../net_helper.o |
51 |
|
52 |
chunk_signaling_test: chunk_signaling_test.o net_helpers.o chunkid_set_h.o |
53 |
chunk_signaling_test: ../net_helper.o |
54 |
|
55 |
tman_test: tman_test.o topology.o peer.o net_helpers.o |
56 |
tman_test: ../net_helper.o |
57 |
|
58 |
clean:: |
59 |
rm -f $(TESTS) |
60 |
|
61 |
include ../utils.mak |