]> git.scottworley.com Git - tl-append/blobdiff - Makefile
test: factor out verify_line()
[tl-append] / Makefile
index 03bc6c5a41f7516e60de4077837d49431ecb4c88..f4db060bfd077c526e0b0d9e3eb66086d6766a62 100644 (file)
--- 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