X-Git-Url: http://git.scottworley.com/tl-append/blobdiff_plain/b3d5ed960aa9a43df2b48894867ec3481cee77fc..90df84eb2e05926351cc7df661712c97779c9163:/Makefile

diff --git a/Makefile b/Makefile
index 8209ef8..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
@@ -15,3 +18,10 @@ check: tl-append tl-append-test
 install: tl-append
 	$(INSTALL) -d $(DESTDIR)$(bindir)
 	$(INSTALL) -m 755 $^ $(DESTDIR)$(bindir)
+
+.PHONY: clean
+clean:
+	-rm tl-append tl-append-test tl.log *.o
+
+tl-append.o: common.h
+tl-append-test.o: common.h