Statistics
| Branch: | Revision:

grapes / src / Tests / Makefile @ 7722f69e

History | View | Annotate | Download (1.24 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
CPPFLAGS = -I$(BASE)/include
20

    
21
LDFLAGS += -L..
22
LDLIBS += -lgrapes
23
#LDFLAGS += -static
24
ifeq ($(ARCH),win32)
25
LDLIBS += -lws2_32
26
endif
27

    
28
all: $(TESTS)
29

    
30
topology_test_attr: topology_test_attr.o net_helpers.o
31
topology_test_attr: ../net_helper$(NH_INCARNATION).o
32

    
33
topology_test: topology_test.o net_helpers.o
34
topology_test: ../net_helper$(NH_INCARNATION).o
35

    
36
chunk_encoding_test: chunk_encoding_test.o
37

    
38
cb_test: cb_test.o
39

    
40
chunkidset_test: chunkidset_test.o chunkid_set_h.o
41

    
42
chunkidset_test_bug: chunkidset_test_bug.o chunkid_set_h.o
43

    
44
chunk_sending_test: chunk_sending_test.o net_helpers.o
45
chunk_sending_test: ../net_helper$(NH_INCARNATION).o
46

    
47
chunk_signaling_test: chunk_signaling_test.o net_helpers.o chunkid_set_h.o
48
chunk_signaling_test: ../net_helper$(NH_INCARNATION).o
49

    
50
tman_test: tman_test.o topology.o peer.o net_helpers.o
51
tman_test: ../net_helper$(NH_INCARNATION).o
52

    
53
clean::
54
	rm -f $(TESTS)
55

    
56
include $(BASE)/src/utils.mak