Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (19 sloc) 425 Bytes
CFLAGS ?= -Werror -Wextra -Wformat=2
libs = msg.c
objs = $(libs:.c=.o)
tests = $(wildcard *-test.c)
tobjs = $(tests:.c=.o)
all: hello
hello: hello.o $(objs)
.PHONY: check
check: ct/_ctcheck
ct/ct.o: ct/ct.h
$(tobjs): ct/ct.h
ct/_ctcheck: ct/_ctcheck.o ct/ct.o $(objs) $(tobjs)
ct/_ctcheck.c: $(tobjs) ct/gen
ct/gen $(tobjs) > $@.part
mv $@.part $@
.PHONY: clean
rm -f ct/_* *.o ct/*.o hello
Jump to Line
Something went wrong with that request. Please try again.