Statistics
| Branch: | Revision:

grapes / src / Tests / Makefile @ 88f5c397

History | View | Annotate | Download (2.32 KB)

1 d97b1942 Luca Abeni
ifndef BASE
2 6d557f68 Luca Abeni
BASE = ../..
3 e91f1bd5 Luca Abeni
else
4
vpath %.c $(BASE)/src/$(notdir $(CURDIR))
5 d97b1942 Luca Abeni
endif
6
CFGDIR ?= ..
7
8 5731f27d Luca Abeni
TESTS = topology_test \
9 211a0bc9 Luca
        topology_test_attr \
10 5731f27d Luca Abeni
        chunk_encoding_test \
11
        chunk_sending_test \
12 b3dd32b0 Alessandro Russo
        chunk_signaling_test \
13 5731f27d Luca Abeni
        chunkidset_test \
14 b3dd32b0 Alessandro Russo
        chunkidset_test_bug \
15 2c424e37 Luca Abeni
        cb_test \
16 72b666da Luca Abeni
        config_test \
17 ad7e2977 Luca Abeni
        tman_test \
18 7342a625 Andrea Zito
        topology_test_th \
19 88f5c397 Andrea Zito
	cloud_test \
20
	cloudcast_topology_test \
21
	cloud_topology_monitor
22 7342a625 Andrea Zito
23
DEPENDENCIES = libfilecloud.so
24 480921a6 Luca Abeni
25
CPPFLAGS = -I$(BASE)/include
26
27 88f5c397 Andrea Zito
LDFLAGS += -L.. 
28
LDLIBS += -lgrapes -ldl
29 480921a6 Luca Abeni
#LDFLAGS += -static
30 ad7e2977 Luca Abeni
31
all: $(TESTS)
32
33
include $(BASE)/src/utils.mak
34
35 fe4f75fc Luca Abeni
ifeq ($(ARCH),win32)
36
LDLIBS += -lws2_32
37
endif
38 480921a6 Luca Abeni
39 211a0bc9 Luca
topology_test_attr: topology_test_attr.o net_helpers.o
40 7722f69e Luca Abeni
topology_test_attr: ../net_helper$(NH_INCARNATION).o
41 211a0bc9 Luca
42 480921a6 Luca Abeni
topology_test: topology_test.o net_helpers.o
43 7722f69e Luca Abeni
topology_test: ../net_helper$(NH_INCARNATION).o
44 480921a6 Luca Abeni
45 ccf0be64 luca
topology_test_th: topology_test_th.o net_helpers.o
46
topology_test_th: ../net_helper.o
47
topology_test_th: CFLAGS += -pthread
48
topology_test_th: LDFLAGS += -pthread
49
50 a9979f3b Luca Abeni
chunk_encoding_test: chunk_encoding_test.o
51
52 410fd7f8 Luca Abeni
cb_test: cb_test.o
53 a9979f3b Luca Abeni
54 f51823b9 Alessandro Russo
chunkidset_test: chunkidset_test.o chunkid_set_h.o
55 aab9cd09 Luca
56 b3dd32b0 Alessandro Russo
chunkidset_test_bug: chunkidset_test_bug.o chunkid_set_h.o
57
58 bfd2c457 Luca Abeni
chunk_sending_test: chunk_sending_test.o net_helpers.o
59 7722f69e Luca Abeni
chunk_sending_test: ../net_helper$(NH_INCARNATION).o
60 480921a6 Luca Abeni
61 d1d96863 Alessandro Russo
chunk_signaling_test: chunk_signaling_test.o net_helpers.o chunkid_set_h.o
62 7722f69e Luca Abeni
chunk_signaling_test: ../net_helper$(NH_INCARNATION).o
63 c9e5a919 Alessandro Russo
64 72b666da Luca Abeni
tman_test: tman_test.o topology.o peer.o net_helpers.o
65 7722f69e Luca Abeni
tman_test: ../net_helper$(NH_INCARNATION).o
66 72b666da Luca Abeni
67 7342a625 Andrea Zito
cloud_test: cloud_test.o net_helpers.o libfilecloud.so
68
cloud_test: ../net_helper$(NH_INCARNATION).o
69
cloud_test: LDFLAGS += -ldl
70
71
72 ef8002fd Andrea Zito
libfilecloud.so: net_helpers.o
73
libfilecloud.so: ../net_helper$(NH_INCARNATION).o
74 7342a625 Andrea Zito
libfilecloud.so: CFLAGS += -shared -pthread
75
libfilecloud.so: cloud_helper_delegate_file.o
76
	$(CC) $(CFLAGS) -o $@ $^
77
78
cloud_helper_delegate_file.o: CFLAGS += -fPIC
79
80 88f5c397 Andrea Zito
cloudcast_topology_test: cloudcast_topology_test.o net_helpers.o libfilecloud.so
81
cloudcast_topology_test: ../net_helper$(NH_INCARNATION).o
82
cloudcast_topology_test: LDFLAGS += -ldl
83
84
cloud_topology_monitor: cloud_topology_monitor.o net_helpers.o libfilecloud.so
85
cloud_topology_monitor: ../net_helper$(NH_INCARNATION).o
86
cloud_topology_monitor: LDFLAGS += -ldl
87
cloud_topology_monitor: CFLAGS += -I../TopologyManager
88
89 5618ba78 Luca Abeni
clean::
90 0188740e Luca Abeni
	rm -f $(TESTS)
91 7342a625 Andrea Zito
	rm -f $(DEPENDENCIES)