X-Git-Url: http://git.scottworley.com/tl-append/blobdiff_plain/c40c4889ef03ef1d6a81a71ffe0de7510d1e43df..bab98a3a230bcc2161254e5796ec97e1391b4907:/Makefile?ds=inline 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