Statistics
| Branch: | Revision:

grapes / src / Tests / Makefile @ ccf0be64

History | View | Annotate | Download (1.72 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
        topology_test_th \
19
        chunk_encoding_test \
20
        chunk_sending_test \
21
        chunk_signaling_test \
22
        chunkidset_test \
23
        chunkidset_test_bug \
24
        cb_test \
25
        config_test \
26
        tman_test
27

    
28
CPPFLAGS = -I$(BASE)/include
29

    
30
LDFLAGS += -L..
31
LDLIBS += -lgrapes
32
#LDFLAGS += -static
33

    
34
all: $(TESTS)
35

    
36
topology_test_attr: topology_test_attr.o net_helpers.o
37
topology_test_attr: ../net_helper.o
38

    
39
topology_test: topology_test.o net_helpers.o
40
topology_test: ../net_helper.o
41

    
42
topology_test_th: topology_test_th.o net_helpers.o
43
topology_test_th: ../net_helper.o
44
topology_test_th: CFLAGS += -pthread
45
topology_test_th: LDFLAGS += -pthread
46

    
47
chunk_encoding_test: chunk_encoding_test.o
48

    
49
cb_test: cb_test.o
50

    
51
chunkidset_test: chunkidset_test.o chunkid_set_h.o
52

    
53
chunkidset_test_bug: chunkidset_test_bug.o chunkid_set_h.o
54

    
55
chunk_sending_test: chunk_sending_test.o net_helpers.o
56
chunk_sending_test: ../net_helper.o
57

    
58
chunk_signaling_test: chunk_signaling_test.o net_helpers.o chunkid_set_h.o
59
chunk_signaling_test: ../net_helper.o
60

    
61
tman_test: tman_test.o topology.o peer.o net_helpers.o
62
tman_test: ../net_helper.o
63

    
64
clean::
65
	rm -f $(TESTS)
66

    
67
include ../utils.mak