Statistics
| Branch: | Revision:

grapes / som / Tests / Makefile @ a0384990

History | View | Annotate | Download (1.41 KB)

1
include ../utils.mak
2

    
3
CFLAGS = -g -Wall
4
CFLAGS += $(call cc-option, -Wdeclaration-after-statement)
5
CFLAGS += $(call cc-option, -Wno-switch)
6
CFLAGS += $(call cc-option, -Wdisabled-optimization)
7
CFLAGS += $(call cc-option, -Wpointer-arith)
8
CFLAGS += $(call cc-option, -Wredundant-decls)
9
CFLAGS += $(call cc-option, -Wno-pointer-sign)
10
CFLAGS += $(call cc-option, -Wcast-qual)
11
CFLAGS += $(call cc-option, -Wwrite-strings)
12
CFLAGS += $(call cc-option, -Wtype-limits)
13
CFLAGS += $(call cc-option, -Wundef)
14

    
15
CFLAGS += $(call cc-option, -funit-at-a-time)
16

    
17
BASE = ../..
18
TESTS = topology_test chunk_encoding_test chunk_sending_test chunkidset_test
19

    
20
CPPFLAGS = -I$(BASE)/include
21
CPPFLAGS += -I..
22

    
23
LDFLAGS = -L../TopologyManager -L../ChunkTrading -L../ChunkBuffer -L../ChunkIDSet
24
#LDFLAGS += -static
25

    
26
all: $(TESTS)
27

    
28
topology_test: topology_test.o net_helpers.o
29
topology_test: ../net_helper.o
30
topology_test: LDLIBS += -ltopman
31

    
32
chunk_encoding_test: chunk_encoding_test.o
33
chunk_encoding_test: LDLIBS += -ltrading
34

    
35
cb_test: cb_test.o
36
cb_test: LDLIBS += -lcb
37

    
38
chunkidset_test: chunkidset_test.o
39
chunkidset_test: LDLIBS += -lsignalling
40

    
41
chunk_sending_test: chunk_sending_test.o net_helpers.o
42
chunk_sending_test: ../net_helper.o
43
chunk_sending_test: LDLIBS += -ltrading
44

    
45
libtopman:
46
	make -C ../TopologyManager
47
libtrading:
48
	make -C ../ChunkTrading
49

    
50
clean:
51
	rm -f $(TESTS)
52
	rm -f *.o
53

    
54
allclean: clean
55
	make -C ../TopologyManager clean
56
	make -C ../MsgLayer clean