Statistics
| Branch: | Revision:

grapes / som / Tests / Makefile @ 5731f27d

History | View | Annotate | Download (1.45 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
        chunk_encoding_test \
18
        chunk_sending_test \
19
        chunkidset_test \
20
        cb_test
21

    
22
CPPFLAGS = -I$(BASE)/include
23
CPPFLAGS += -I..
24

    
25
LDFLAGS = -L../TopologyManager -L../ChunkTrading -L../ChunkBuffer -L../ChunkIDSet
26
#LDFLAGS += -static
27

    
28
all: $(TESTS)
29

    
30
topology_test: topology_test.o net_helpers.o
31
topology_test: ../net_helper.o
32
topology_test: LDLIBS += -ltopman
33

    
34
chunk_encoding_test: chunk_encoding_test.o
35
chunk_encoding_test: LDLIBS += -ltrading
36

    
37
cb_test: cb_test.o
38
cb_test: LDLIBS += -lcb
39

    
40
chunkidset_test: chunkidset_test.o
41
chunkidset_test: LDLIBS += -lsignalling
42

    
43
chunk_sending_test: chunk_sending_test.o net_helpers.o
44
chunk_sending_test: ../net_helper.o
45
chunk_sending_test: LDLIBS += -ltrading
46

    
47
libtopman:
48
	make -C ../TopologyManager
49
libtrading:
50
	make -C ../ChunkTrading
51

    
52
clean::
53
	rm -f $(TESTS)
54
	rm -f *.o
55

    
56
allclean: clean
57
	make -C ../TopologyManager clean
58
	make -C ../MsgLayer clean
59

    
60
include ../utils.mak