Statistics
| Branch: | Tag: | Revision:

sssimulator / Test / Makefile @ f1158e5c

History | View | Annotate | Download (454 Bytes)

1
SRC=$(wildcard *_test.c)
2
OBJS=$(SRC:.c=.test)
3
TARGET_SRC = ../overlay.c ../sched.c ../graph.c ../stats.c wrappers.c
4
TARGET_OBJS=$(TARGET_SRC:.c=.o)
5
WRAPPERS=-Wl,-wrap,needs
6

    
7
LIBS=../Matrix/libmatrix.a -lm $(LDFLAGS) -L$(LD_LIBRARY_PATH)
8
CFLAGS+=-g -O0 -I../ -I../Matrix/ 
9

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

    
12
%.test: %.c $(TARGET_OBJS) 
13
	$(CC) -o $@ $< $(WRAPPERS) $(CFLAGS) $(TARGET_OBJS) $(LIBS)
14

    
15
clean:
16
	rm -f *.test *.edges
17

    
18
.PHONY: all clean