Statistics
| Branch: | Revision:

grapes / som / Tests / Makefile @ 8ae83f37

History | View | Annotate | Download (1.08 KB)

1
BASE = ../..
2
TESTS = topology_test chunk_encoding_test chunk_sending_test chunkidset_test config_test
3

    
4
CFLAGS = -Wall
5
CFLAGS += -Wdeclaration-after-statement
6
CFLAGS += -Wno-switch -Wpointer-arith -Wredundant-decls
7
CFLAGS += -Wno-pointer-sign 
8
CFLAGS += -g
9

    
10
CPPFLAGS = -I$(BASE)/include
11
CPPFLAGS += -I..
12

    
13
LDFLAGS = -L../TopologyManager -L../ChunkTrading -L../ChunkBuffer -L../ChunkIDSet
14
#LDFLAGS += -static
15

    
16
all: $(TESTS)
17

    
18
topology_test: topology_test.o net_helpers.o
19
topology_test: ../net_helper.o
20
topology_test: LDLIBS += -ltopman
21

    
22
chunk_encoding_test: chunk_encoding_test.o
23
chunk_encoding_test: LDLIBS += -ltrading
24

    
25
cb_test: cb_test.o
26
cb_test: LDLIBS += -lcb
27

    
28
chunkidset_test: chunkidset_test.o
29
chunkidset_test: LDLIBS += -lsignalling
30

    
31
chunk_sending_test: chunk_sending_test.o net_helpers.o
32
chunk_sending_test: ../net_helper.o
33
chunk_sending_test: LDLIBS += -ltrading
34

    
35
config_test: config_test.o ../ChunkBuffer/config.o
36

    
37
libtopman:
38
	make -C ../TopologyManager
39
libtrading:
40
	make -C ../ChunkTrading
41

    
42
clean:
43
	rm -f $(TESTS)
44
	rm -f *.o
45

    
46
allclean: clean
47
	make -C ../TopologyManager clean
48
	make -C ../MsgLayer clean