Statistics
| Branch: | Revision:

grapes / src / Tests / Makefile @ 5ceafcf3

History | View | Annotate | Download (2.62 KB)

1
ifndef BASE
2
BASE = ../..
3
else
4
vpath %.c $(BASE)/src/$(notdir $(CURDIR))
5
endif
6
CFGDIR ?= ..
7

    
8
TESTS = topology_test \
9
        topology_test_attr \
10
        chunk_encoding_test \
11
        chunk_sending_test \
12
        chunk_signaling_test \
13
        chunkidset_test \
14
        chunkidset_test_bug \
15
        cb_test \
16
        config_test \
17
        tman_test \
18
        topo_msg_size_test \
19
	cloud_test \
20
	cloudcast_topology_test \
21
	cloud_topology_monitor \
22
	test_queue
23

    
24
ifneq ($(ARCH),win32)
25
  TESTS += topology_test_th \
26
           chunkiser_test
27
endif
28

    
29
CPPFLAGS = -I$(BASE)/include
30

    
31
LDFLAGS += -L..
32
LDLIBS += -lgrapes -ldl
33
#LDFLAGS += -static
34

    
35
all: $(TESTS)
36

    
37
include $(BASE)/src/utils.mak
38

    
39
ifeq ($(ARCH),win32)
40
LDLIBS += -lws2_32
41
endif
42

    
43
topo_msg_size_test: ../net_helper$(NH_INCARNATION).o
44

    
45
topology_test_attr: topology_test_attr.o net_helpers.o
46
topology_test_attr: ../net_helper$(NH_INCARNATION).o
47

    
48
topology_test: topology_test.o net_helpers.o
49
topology_test: ../net_helper$(NH_INCARNATION).o
50

    
51
topology_test_th: topology_test_th.o net_helpers.o
52
topology_test_th: ../net_helper.o
53
topology_test_th: CFLAGS += -pthread
54
topology_test_th: LDFLAGS += -pthread
55

    
56
chunk_encoding_test: chunk_encoding_test.o
57

    
58
cb_test: cb_test.o
59

    
60
chunkidset_test: chunkidset_test.o chunkid_set_h.o
61

    
62
chunkidset_test_bug: chunkidset_test_bug.o chunkid_set_h.o
63

    
64
chunk_sending_test: chunk_sending_test.o net_helpers.o
65
chunk_sending_test: ../net_helper$(NH_INCARNATION).o
66

    
67
chunk_signaling_test: chunk_signaling_test.o net_helpers.o chunkid_set_h.o
68
chunk_signaling_test: ../net_helper$(NH_INCARNATION).o
69

    
70
tman_test: tman_test.o topology.o peer.o net_helpers.o
71
tman_test: ../net_helper$(NH_INCARNATION).o
72

    
73
chunkiser_test: chunkiser_test.o
74
chunkiser_test: ../net_helper$(NH_INCARNATION).o
75
ifdef FFDIR
76
chunkiser_test: CFLAGS += -pthread
77
chunkiser_test: LDFLAGS += -pthread -L$(FFDIR)/libavutil -L$(FFDIR)/libavcore -L$(FFDIR)/libavcodec -L$(FFDIR)/libavformat
78
chunkiser_test: LDLIBS += -lm -lavformat -lavcodec -lavutil
79
chunkiser_test: LDLIBS += $(call ld-option, -lavcore)
80
chunkiser_test: LDLIBS += $(call ld-option, -lz)
81
chunkiser_test: LDLIBS += $(call ld-option, -lbz2)
82
endif
83

    
84
cloud_test: cloud_test.o net_helpers.o
85
cloud_test: ../net_helper$(NH_INCARNATION).o
86
cloud_test: LDFLAGS += -ldl
87

    
88
cloudcast_topology_test: cloudcast_topology_test.o net_helpers.o
89
cloudcast_topology_test: ../net_helper$(NH_INCARNATION).o
90
cloudcast_topology_test: LDFLAGS += -ldl
91

    
92
cloud_topology_monitor: cloud_topology_monitor.o net_helpers.o
93
cloud_topology_monitor: ../net_helper$(NH_INCARNATION).o
94
cloud_topology_monitor: LDFLAGS += -ldl
95

    
96
test_queue: test_queue.o
97
test_queue: CFLAGS += -I../Utils
98

    
99
clean::
100
	rm -f $(TESTS)
101
	rm -f $(DEPENDENCIES)