Revision b87dc7a2 Makefile

View differences:

Makefile
3 3

  
4 4
EXE=peerstreamer-ng
5 5

  
6
CFLAGS+=-Isrc/ -ILibs/mongoose/
6
CFLAGS+=-Isrc/ -ILibs/mongoose/ -ILibs/pstreamer/include -ILibs/GRAPES/include -LLibs/GRAPES/src  -LLibs/pstreamer/src 
7 7
ifdef DEBUG
8 8
CFLAGS+=-g -W -Wall -Wno-unused-function -Wno-unused-parameter -O0
9 9
else
......
12 12

  
13 13
LIBS+=Libs/mongoose/mongoose.o Libs/GRAPES/src/libgrapes.a Libs/pstreamer/src/libpstreamer.a
14 14
MONGOOSE_OPTS+=-DMG_DISABLE_MQTT -DMG_DISABLE_JSON_RPC -DMG_DISABLE_SOCKETPAIR  -DMG_DISABLE_CGI # -DMG_DISABLE_HTTP_WEBSOCKET
15
LDFLAGS+=-lm
15
LDFLAGS+=-lpstreamer -lgrapes -lm
16 16

  
17 17
all: $(EXE)
18 18

  
19 19
$(EXE): $(LIBS) $(OBJS) peerstreamer-ng.c
20
	$(CC) peerstreamer-ng.c -o peerstreamer-ng $(OBJS) $(CFLAGS) $(LIBS) $(LDFLAGS)
20
	$(CC) -o peerstreamer-ng  peerstreamer-ng.c $(OBJS) Libs/mongoose/mongoose.o $(CFLAGS) $(LDFLAGS)
21 21

  
22 22
%.o: %.c 
23 23
	$(CC) $< -o $@ -c $(CFLAGS) 

Also available in: Unified diff