Statistics
| Branch: | Revision:

peerstreamer-src / Makefile @ 9eb656e7

History | View | Annotate | Download (602 Bytes)

1 9eb656e7 Luca Baldesi
SRC=$(wildcard src/*.c)
2
OBJS=$(SRC:.c=.o)
3
4
EXE=peerstreamer-ng
5
6
CFLAGS+=-Isrc/ -I Libs/mongoose/
7
ifdef DEBUG
8
CFLAGS+=-g -W -Wall -Wno-unused-function -Wno-unused-parameter 
9
else
10
CFLAGS+=-O6
11
endif
12
13
LIBS+=Libs/mongoose/mongoose.o
14
LDFLAGS+=-lm
15
16
all: $(EXE)
17
18
$(EXE): mongoose $(OBJS) peerstreamer-ng.c
19
	$(CC) peerstreamer-ng.c -o peerstreamer-ng $(OBJS) $(CFLAGS) $(LIBS) $(LDFLAGS)
20
21
%.o: %.c 
22
	$(CC) $< -o $@ -c $(CFLAGS) 
23
24
mongoose:
25
	make -C Libs/mongoose/
26
27
tests:
28
	make -C Test/
29
	Test/run_tests.sh
30
31
clean:
32
	make -C Test/ clean
33
	make -C Libs/mongoose/ clean
34
	rm -f *.o $(EXE) $(OBJS)
35
36
.PHONY: all clean