X-Git-Url: http://git.scottworley.com/tl-append/blobdiff_plain/71a7e5c5f2fa792715f1c4c9491ad8cc7e718388..d19cfb47a757887f104a3b2a659ee288083d88af:/Makefile

diff --git a/Makefile b/Makefile
index f5e1548..f4db060 100644
--- a/Makefile
+++ b/Makefile
@@ -2,8 +2,11 @@ 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 -std=c99 -o $@ $^
 
@@ -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