Statistics
| Branch: | Revision:

grapes / src / Tests / Makefile @ f67d6628

History | View | Annotate | Download (1.96 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 e8c1ddb2 Luca Abeni
19
ifneq ($(ARCH),win32)
20
  TESTS += topology_test_th \
21
           chunkiser_test
22
endif
23 7a3622a4 Luca Abeni
24 480921a6 Luca Abeni
CPPFLAGS = -I$(BASE)/include
25
26 f9d6272b Luca Abeni
LDFLAGS += -L..
27
LDLIBS += -lgrapes
28 480921a6 Luca Abeni
#LDFLAGS += -static
29 ad7e2977 Luca Abeni
30
all: $(TESTS)
31
32
include $(BASE)/src/utils.mak
33
34 fe4f75fc Luca Abeni
ifeq ($(ARCH),win32)
35
LDLIBS += -lws2_32
36
endif
37 480921a6 Luca Abeni
38 211a0bc9 Luca
topology_test_attr: topology_test_attr.o net_helpers.o
39 7722f69e Luca Abeni
topology_test_attr: ../net_helper$(NH_INCARNATION).o
40 211a0bc9 Luca
41 480921a6 Luca Abeni
topology_test: topology_test.o net_helpers.o
42 7722f69e Luca Abeni
topology_test: ../net_helper$(NH_INCARNATION).o
43 480921a6 Luca Abeni
44 ccf0be64 luca
topology_test_th: topology_test_th.o net_helpers.o
45 f67d6628 Csaba Kiraly
topology_test_th: ../net_helper$(NH_INCARNATION).o
46 ccf0be64 luca
topology_test_th: CFLAGS += -pthread
47
topology_test_th: LDFLAGS += -pthread
48
49 a9979f3b Luca Abeni
chunk_encoding_test: chunk_encoding_test.o
50
51 410fd7f8 Luca Abeni
cb_test: cb_test.o
52 a9979f3b Luca Abeni
53 f51823b9 Alessandro Russo
chunkidset_test: chunkidset_test.o chunkid_set_h.o
54 aab9cd09 Luca
55 b3dd32b0 Alessandro Russo
chunkidset_test_bug: chunkidset_test_bug.o chunkid_set_h.o
56
57 bfd2c457 Luca Abeni
chunk_sending_test: chunk_sending_test.o net_helpers.o
58 7722f69e Luca Abeni
chunk_sending_test: ../net_helper$(NH_INCARNATION).o
59 480921a6 Luca Abeni
60 d1d96863 Alessandro Russo
chunk_signaling_test: chunk_signaling_test.o net_helpers.o chunkid_set_h.o
61 7722f69e Luca Abeni
chunk_signaling_test: ../net_helper$(NH_INCARNATION).o
62 c9e5a919 Alessandro Russo
63 72b666da Luca Abeni
tman_test: tman_test.o topology.o peer.o net_helpers.o
64 7722f69e Luca Abeni
tman_test: ../net_helper$(NH_INCARNATION).o
65 72b666da Luca Abeni
66 7a3622a4 Luca Abeni
chunkiser_test: chunkiser_test.o
67 cb4f3c0a Luca Abeni
chunkiser_test: ../net_helper$(NH_INCARNATION).o
68 89aef955 Luca Abeni
ifdef FFDIR
69 7a3622a4 Luca Abeni
chunkiser_test: CFLAGS += -pthread
70
chunkiser_test: LDFLAGS += -pthread -L$(FFDIR)/libavutil -L$(FFDIR)/libavcore -L$(FFDIR)/libavcodec -L$(FFDIR)/libavformat
71 c06e5505 Luca Abeni
chunkiser_test: LDLIBS += -lm -lavformat -lavcodec -lavutil
72
chunkiser_test: LDLIBS += $(call ld-option, -lavcore)
73 7a3622a4 Luca Abeni
chunkiser_test: LDLIBS += $(call ld-option, -lz)
74
chunkiser_test: LDLIBS += $(call ld-option, -lbz2)
75 89aef955 Luca Abeni
endif
76 7a3622a4 Luca Abeni
77 5618ba78 Luca Abeni
clean::
78 0188740e Luca Abeni
	rm -f $(TESTS)