Statistics
| Branch: | Revision:

grapes / src / Tests / Makefile @ ad7e2977

History | View | Annotate | Download (1.43 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
        topology_test_th
19

    
20
CPPFLAGS = -I$(BASE)/include
21

    
22
LDFLAGS += -L..
23
LDLIBS += -lgrapes
24
#LDFLAGS += -static
25

    
26
all: $(TESTS)
27

    
28
include $(BASE)/src/utils.mak
29

    
30
ifeq ($(ARCH),win32)
31
LDLIBS += -lws2_32
32
endif
33

    
34
topology_test_attr: topology_test_attr.o net_helpers.o
35
topology_test_attr: ../net_helper$(NH_INCARNATION).o
36

    
37
topology_test: topology_test.o net_helpers.o
38
topology_test: ../net_helper$(NH_INCARNATION).o
39

    
40
topology_test_th: topology_test_th.o net_helpers.o
41
topology_test_th: ../net_helper.o
42
topology_test_th: CFLAGS += -pthread
43
topology_test_th: LDFLAGS += -pthread
44

    
45
chunk_encoding_test: chunk_encoding_test.o
46

    
47
cb_test: cb_test.o
48

    
49
chunkidset_test: chunkidset_test.o chunkid_set_h.o
50

    
51
chunkidset_test_bug: chunkidset_test_bug.o chunkid_set_h.o
52

    
53
chunk_sending_test: chunk_sending_test.o net_helpers.o
54
chunk_sending_test: ../net_helper$(NH_INCARNATION).o
55

    
56
chunk_signaling_test: chunk_signaling_test.o net_helpers.o chunkid_set_h.o
57
chunk_signaling_test: ../net_helper$(NH_INCARNATION).o
58

    
59
tman_test: tman_test.o topology.o peer.o net_helpers.o
60
tman_test: ../net_helper$(NH_INCARNATION).o
61

    
62
clean::
63
	rm -f $(TESTS)