Statistics
| Branch: | Revision:

pstreamer / test / Makefile @ ffebdf87

History | View | Annotate | Download (521 Bytes)

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

    
4
GRAPES ?= ../../GRAPES
5

    
6
TARGET=../src/libpstreamer.a
7
TARGET_SRC=$(wildcard ../src/*.c)
8
GRAPESLIB=$(GRAPES)/src/libgrapes.a
9

    
10
CFLAGS += -g -W -Wall -I ../include -I../src -I$(GRAPES)/include
11
LDFLAGS += -l pstreamer -L ../src -lgrapes -L $(GRAPES)/src
12

    
13
all: $(OBJS)
14

    
15
$(TARGET): $(TARGET_SRC)
16
	DEBUG=1 $(MAKE) -C ../
17

    
18
$(GRAPESLIB):
19
	$(MAKE) -C $(GRAPES)
20

    
21
%.test: %.c $(TARGET) $(GRAPESLIB) $(TARGET_SRC)
22
	$(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
23

    
24
clean:
25
	rm -f *.test
26

    
27
.PHONY: all clean
28