Statistics
| Branch: | Revision:

grapes / src / Tests / Makefile @ f67d6628

History | View | Annotate | Download (1.96 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

    
19
ifneq ($(ARCH),win32)
20
  TESTS += topology_test_th \
21
           chunkiser_test
22
endif
23

    
24
CPPFLAGS = -I$(BASE)/include
25

    
26
LDFLAGS += -L..
27
LDLIBS += -lgrapes
28
#LDFLAGS += -static
29

    
30
all: $(TESTS)
31

    
32
include $(BASE)/src/utils.mak
33

    
34
ifeq ($(ARCH),win32)
35
LDLIBS += -lws2_32
36
endif
37

    
38
topology_test_attr: topology_test_attr.o net_helpers.o
39
topology_test_attr: ../net_helper$(NH_INCARNATION).o
40

    
41
topology_test: topology_test.o net_helpers.o
42
topology_test: ../net_helper$(NH_INCARNATION).o
43

    
44
topology_test_th: topology_test_th.o net_helpers.o
45
topology_test_th: ../net_helper$(NH_INCARNATION).o
46
topology_test_th: CFLAGS += -pthread
47
topology_test_th: LDFLAGS += -pthread
48

    
49
chunk_encoding_test: chunk_encoding_test.o
50

    
51
cb_test: cb_test.o
52

    
53
chunkidset_test: chunkidset_test.o chunkid_set_h.o
54

    
55
chunkidset_test_bug: chunkidset_test_bug.o chunkid_set_h.o
56

    
57
chunk_sending_test: chunk_sending_test.o net_helpers.o
58
chunk_sending_test: ../net_helper$(NH_INCARNATION).o
59

    
60
chunk_signaling_test: chunk_signaling_test.o net_helpers.o chunkid_set_h.o
61
chunk_signaling_test: ../net_helper$(NH_INCARNATION).o
62

    
63
tman_test: tman_test.o topology.o peer.o net_helpers.o
64
tman_test: ../net_helper$(NH_INCARNATION).o
65

    
66
chunkiser_test: chunkiser_test.o
67
chunkiser_test: ../net_helper$(NH_INCARNATION).o
68
ifdef FFDIR
69
chunkiser_test: CFLAGS += -pthread
70
chunkiser_test: LDFLAGS += -pthread -L$(FFDIR)/libavutil -L$(FFDIR)/libavcore -L$(FFDIR)/libavcodec -L$(FFDIR)/libavformat
71
chunkiser_test: LDLIBS += -lm -lavformat -lavcodec -lavutil
72
chunkiser_test: LDLIBS += $(call ld-option, -lavcore)
73
chunkiser_test: LDLIBS += $(call ld-option, -lz)
74
chunkiser_test: LDLIBS += $(call ld-option, -lbz2)
75
endif
76

    
77
clean::
78
	rm -f $(TESTS)