Statistics
| Branch: | Revision:

grapes / som / Tests / Makefile @ becf44ff

History | View | Annotate | Download (1.01 KB)

1
BASE = ../..
2
TESTS = topology_test chunk_encoding_test chunk_sending_test chunkidset_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

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

    
15
all: $(TESTS)
16

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

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

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

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

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

    
34
libtopman:
35
	make -C ../TopologyManager
36
libtrading:
37
	make -C ../ChunkTrading
38

    
39
clean:
40
	rm -f $(TESTS)
41
	rm -f *.o
42

    
43
allclean: clean
44
	make -C ../TopologyManager clean
45
	make -C ../MsgLayer clean