Statistics
| Branch: | Revision:

grapes / som / Tests / Makefile @ 410fd7f8

History | View | Annotate | Download (1013 Bytes)

1
BASE = ../..
2

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

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

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

    
15
all: topology_test chunk_encoding_test cb_test
16

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

    
22
chunk_encoding_test: chunk_encoding_test.o
23
chunk_encoding_test: ../ChunkTrading/libtrading.a
24
chunk_encoding_test: LDLIBS += -ltrading
25

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

    
29
../TopologyManager/net_helper.o:
30
../TopologyManager/libtopman.a:
31
	make -C ../TopologyManager
32
../ChunkTrading/libtrading.a:
33
	make -C ../ChunkTrading
34

    
35
clean:
36
	rm -f topology_test chunk_encoding_test cb_test
37
	rm -f *.o
38

    
39
allclean: clean
40
	make -C ../TopologyManager clean
41
	make -C ../MsgLayer clean