Add function for adding an entire suite at once
[ctestharness.git] / Makefile
blobf11f783e5aa604cd8363ad79677d5d5ea8a88af9
1 .POSIX:
3 .PHONY: all demo clean
5 include config.mk
7 SRCS != echo src/*.c
8 OBJS = ${SRCS:.c=.o}
10 all: ${PROG}
12 ${PROG}: ${OBJS}
13 ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LDLIBS}
15 ${PROG}.o: ${PROG}.c harness.h
17 harness.o: harness.c harness.h timeval_math.h
19 timeval_math.o: timeval_math.c timeval_math.h
21 demo: all
22 ./harness_demo
24 clean:
25 ${RM} -f ${OBJS} ${PROG}
27 .c.o:
28 $(CC) -c $(CFLAGS) -o $@ $<