Statistics
| Branch: | Revision:

grapes / som / Tests / Makefile @ f9d6272b

History | View | Annotate | Download (1.07 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
        chunk_encoding_test \
18
        chunk_sending_test \
19
        chunkidset_test \
20
        cb_test
21

    
22
CPPFLAGS = -I$(BASE)/include
23
CPPFLAGS += -I..
24

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

    
29
all: $(TESTS)
30

    
31
topology_test: topology_test.o net_helpers.o
32
topology_test: ../net_helper.o
33

    
34
chunk_encoding_test: chunk_encoding_test.o
35

    
36
cb_test: cb_test.o
37

    
38
chunkidset_test: chunkidset_test.o
39

    
40
chunk_sending_test: chunk_sending_test.o net_helpers.o
41
chunk_sending_test: ../net_helper.o
42

    
43
clean::
44
	rm -f $(TESTS)
45

    
46
include ../utils.mak