X-Git-Url: http://git.scottworley.com/tl-append/blobdiff_plain/c40c4889ef03ef1d6a81a71ffe0de7510d1e43df..7521e30b527409a49b129e344b20a87b7d5edf2b:/Makefile diff --git a/Makefile b/Makefile index 03bc6c5..f4db060 100644 --- a/Makefile +++ b/Makefile @@ -2,10 +2,13 @@ prefix = /usr/local bindir = $(prefix)/bin INSTALL = install -tl-append: +tl-append: common.o +tl-append-test: common.o +%.o: %.c + $(CC) -Wall -Wextra -pedantic -std=c99 -o $@ -c $^ %: %.c - $(CC) -Wall -Wextra -pedantic -o $@ $^ + $(CC) -Wall -Wextra -pedantic -std=c99 -o $@ $^ .PHONY: check check: tl-append tl-append-test @@ -18,4 +21,7 @@ install: tl-append .PHONY: clean clean: - -rm tl-append tl-append-test tl.log + -rm tl-append tl-append-test tl.log *.o + +tl-append.o: common.h +tl-append-test.o: common.h