Statistics
| Branch: | Revision:

peerstreamer-src / Test / Makefile @ 9eb656e7

History | View | Annotate | Download (404 Bytes)

1
SRC=$(wildcard *.c)
2
OBJS=$(SRC:.c=.test)
3

    
4
TARGET_SRC += $(wildcard ../src/*.c) 
5
TARGET_OBJS=$(TARGET_SRC:.c=.o)
6

    
7
LIBS=-lm ../Libs/mongoose/mongoose.o
8
CFLAGS=-g -O0 -I../Libs/mongoose/  -I../src
9

    
10
all: mongoose $(TARGET_SRC) $(TARGET_OBJS) $(OBJS)
11

    
12
mongoose:
13
	make -C ../Libs/mongoose/
14

    
15
%.test: %.c $(TARGET_OBJS) 
16
	$(CC) -o $@ $< $(CFLAGS) $(TARGET_OBJS) $(LIBS)
17

    
18
clean:
19
	rm -f *.test
20

    
21
.PHONY: all clean
22