Statistics
| Branch: | Revision:

streamers / Makefile @ e64fc7e5

History | View | Annotate | Download (657 Bytes)

1
CFLAGS = -Wall
2
CFLAGS += -Wdeclaration-after-statement
3
CFLAGS += -Wno-switch -Wpointer-arith -Wredundant-decls
4
CFLAGS += -Wno-pointer-sign 
5
CFLAGS += -g
6

    
7
CPPFLAGS = -I$(GRAPES)/include
8
CPPFLAGS += -I$(GRAPES)/som
9

    
10
ifdef DEBUG
11
CPPFLAGS += -DDEBUG
12
endif
13

    
14
LDFLAGS = -L$(GRAPES)/som/TopologyManager -L$(GRAPES)/som/ChunkTrading -L$(GRAPES)/som/ChunkBuffer
15
LDLIBS = -ltrading -lcb -ltopman
16

    
17
OBJS = dumbstreamer.o streaming.o output.o input.o net_helpers.o
18
ifdef THREADS
19
OBJS += loop-mt.o
20
CFLAGS += -pthread
21
LDFLAGS += -pthread
22
else
23
OBJS += loop.o
24
endif
25

    
26

    
27
all: dumbstreamer
28

    
29
dumbstreamer: $(OBJS) $(GRAPES)/som/net_helper.o
30

    
31
clean:
32
	rm -f dumbstreamer
33
	rm -f *.o