Update README.md
[ctestharness.git] / Makefile
bloba9e84d6c104c1a9f0bc92faf4ce4e916fd2f3552
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
19 demo: all
20 ./harness_demo
22 clean:
23 ${RM} -f ${OBJS} ${PROG}
25 .c.o:
26 $(CC) -c $(CFLAGS) -o $@ $<