Revision a0384990

View differences:

som/ChunkBuffer/Makefile
1
BASE = ../..
1
include ../utils.mak
2

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

  
3
CFLAGS = -Wall
4
CFLAGS += -Wdeclaration-after-statement
5
CFLAGS += -Wno-switch -Wpointer-arith -Wredundant-decls
6
CFLAGS += -Wno-pointer-sign 
7
CFLAGS += -g
15
CFLAGS += $(call cc-option, -funit-at-a-time)
16

  
17
BASE = ../..
8 18

  
9 19
CPPFLAGS = -I$(BASE)/include
10 20

  
som/ChunkIDSet/Makefile
1
BASE = ../..
1
include ../utils.mak
2

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

  
3
CFLAGS = -Wall
4
CFLAGS += -Wdeclaration-after-statement
5
CFLAGS += -Wno-switch -Wpointer-arith -Wredundant-decls
6
CFLAGS += -Wno-pointer-sign 
7
CFLAGS += -g
15
CFLAGS += $(call cc-option, -funit-at-a-time)
16

  
17
BASE = ../..
8 18

  
9 19
CPPFLAGS = -I$(BASE)/include
10 20

  
som/ChunkTrading/Makefile
1
BASE = ../..
1
include ../utils.mak
2

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

  
3
CFLAGS = -Wall
4
CFLAGS += -Wdeclaration-after-statement
5
CFLAGS += -Wno-switch -Wpointer-arith -Wredundant-decls
6
CFLAGS += -Wno-pointer-sign 
7
CFLAGS += -g
15
CFLAGS += $(call cc-option, -funit-at-a-time)
16

  
17
BASE = ../..
8 18

  
9 19
CPPFLAGS = -I$(BASE)/include -I..
10 20

  
som/Tests/Makefile
1
include ../utils.mak
2

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

  
15
CFLAGS += $(call cc-option, -funit-at-a-time)
16

  
1 17
BASE = ../..
2 18
TESTS = topology_test chunk_encoding_test chunk_sending_test chunkidset_test
3 19

  
4
CFLAGS = -Wall
5
CFLAGS += -Wdeclaration-after-statement
6
CFLAGS += -Wno-switch -Wpointer-arith -Wredundant-decls
7
CFLAGS += -Wno-pointer-sign 
8
CFLAGS += -g
9

  
10 20
CPPFLAGS = -I$(BASE)/include
11 21
CPPFLAGS += -I..
12 22

  
som/TopologyManager/Makefile
1
BASE = ../..
1
include ../utils.mak
2

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

  
3
CFLAGS = -Wall
4
CFLAGS += -Wdeclaration-after-statement
5
CFLAGS += -Wno-switch -Wpointer-arith -Wredundant-decls
6
CFLAGS += -Wno-pointer-sign 
7
CFLAGS += -g
15
CFLAGS += $(call cc-option, -funit-at-a-time)
16

  
17
BASE = ../..
8 18

  
9 19
CPPFLAGS = -I$(BASE)/include -I..
10 20

  
som/utils.mak
1
cc-option = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null \
2
              > /dev/null 2>&1; then echo "$(1)"; fi ;)
3

  
4
ld-option = $(shell if echo "int main(){return 0;}" | \
5
		$(CC) $(CFLAGS) $(1) -o /dev/null -xc - \
6
		> /dev/null 2>&1; then echo "$(1)"; fi ;)

Also available in: Unified diff