Statistics
| Branch: | Revision:

grapes / src / Tests / Makefile @ fe4f75fc

History | View | Annotate | Download (1.58 KB)

1
CFLAGS = -g -Wall
2
CFLAGS += $(call cc-option, -Wdeclaration-after-statement)
3
CFLAGS += $(call cc-option, -Wno-switch)
4
CFLAGS += $(call cc-option, -Wdisabled-optimization)
5
CFLAGS += $(call cc-option, -Wpointer-arith)
6
CFLAGS += $(call cc-option, -Wredundant-decls)
7
CFLAGS += $(call cc-option, -Wno-pointer-sign)
8
CFLAGS += $(call cc-option, -Wcast-qual)
9
CFLAGS += $(call cc-option, -Wwrite-strings)
10
CFLAGS += $(call cc-option, -Wtype-limits)
11
CFLAGS += $(call cc-option, -Wundef)
12

    
13
CFLAGS += $(call cc-option, -funit-at-a-time)
14

    
15
BASE = ../..
16
TESTS = topology_test \
17
        topology_test_attr \
18
        chunk_encoding_test \
19
        chunk_sending_test \
20
        chunk_signaling_test \
21
        chunkidset_test \
22
        chunkidset_test_bug \
23
        cb_test \
24
        config_test \
25
        tman_test
26

    
27
CPPFLAGS = -I$(BASE)/include
28

    
29
LDFLAGS += -L..
30
LDLIBS += -lgrapes
31
#LDFLAGS += -static
32
ifeq ($(ARCH),win32)
33
LDLIBS += -lws2_32
34
endif
35

    
36
all: $(TESTS)
37

    
38
topology_test_attr: topology_test_attr.o net_helpers.o
39
topology_test_attr: ../net_helper.o
40

    
41
topology_test: topology_test.o net_helpers.o
42
topology_test: ../net_helper.o
43

    
44
chunk_encoding_test: chunk_encoding_test.o
45

    
46
cb_test: cb_test.o
47

    
48
chunkidset_test: chunkidset_test.o chunkid_set_h.o
49

    
50
chunkidset_test_bug: chunkidset_test_bug.o chunkid_set_h.o
51

    
52
chunk_sending_test: chunk_sending_test.o net_helpers.o
53
chunk_sending_test: ../net_helper.o
54

    
55
chunk_signaling_test: chunk_signaling_test.o net_helpers.o chunkid_set_h.o
56
chunk_signaling_test: ../net_helper.o
57

    
58
tman_test: tman_test.o topology.o peer.o net_helpers.o
59
tman_test: ../net_helper.o
60

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

    
64
include ../utils.mak