Makefile: wire up test/ directory for compilation
[c11tester.git] / test / Makefile
1 include ../common.mk
2
3 CPPFLAGS += -I.. -I../include
4 TESTS=userprog
5
6 SRCS = $(wildcard *.c)
7 OBJS = $(patsubst %.c,%.o,$(SRCS))
8
9 all: $(OBJS)
10
11 %.o: %.c
12         $(CC) -o $@ $< $(CPPFLAGS) -L.. -l$(LIB_NAME)
13
14 clean::
15         rm -f *.o $(TESTS)