Statistics
| Branch: | Revision:

grapes / som / Tests / Makefile @ a0384990

History | View | Annotate | Download (1.41 KB)

1 a0384990 Luca Abeni
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 6d557f68 Luca Abeni
BASE = ../..
18 aab9cd09 Luca
TESTS = topology_test chunk_encoding_test chunk_sending_test chunkidset_test
19 480921a6 Luca Abeni
20
CPPFLAGS = -I$(BASE)/include
21 48e3960d luca
CPPFLAGS += -I..
22 480921a6 Luca Abeni
23 aab9cd09 Luca
LDFLAGS = -L../TopologyManager -L../ChunkTrading -L../ChunkBuffer -L../ChunkIDSet
24 480921a6 Luca Abeni
#LDFLAGS += -static
25
26 0188740e Luca Abeni
all: $(TESTS)
27 a9979f3b Luca Abeni
28 480921a6 Luca Abeni
topology_test: topology_test.o net_helpers.o
29 48e3960d luca
topology_test: ../net_helper.o
30
topology_test: LDLIBS += -ltopman
31 480921a6 Luca Abeni
32 a9979f3b Luca Abeni
chunk_encoding_test: chunk_encoding_test.o
33 48e3960d luca
chunk_encoding_test: LDLIBS += -ltrading
34 a9979f3b Luca Abeni
35 410fd7f8 Luca Abeni
cb_test: cb_test.o
36
cb_test: LDLIBS += -lcb
37 a9979f3b Luca Abeni
38 c22e4acd Luca Abeni
chunkidset_test: chunkidset_test.o
39 aab9cd09 Luca
chunkidset_test: LDLIBS += -lsignalling
40
41 bfd2c457 Luca Abeni
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 0188740e Luca Abeni
libtopman:
46 480921a6 Luca Abeni
	make -C ../TopologyManager
47 0188740e Luca Abeni
libtrading:
48 a9979f3b Luca Abeni
	make -C ../ChunkTrading
49 480921a6 Luca Abeni
50
clean:
51 0188740e Luca Abeni
	rm -f $(TESTS)
52 480921a6 Luca Abeni
	rm -f *.o
53 155319cd Luca Abeni
54 480921a6 Luca Abeni
allclean: clean
55
	make -C ../TopologyManager clean
56
	make -C ../MsgLayer clean