projects
/
tl-append
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Write timestamps
[tl-append]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 03bc6c5a41f7516e60de4077837d49431ecb4c88..f4db060bfd077c526e0b0d9e3eb66086d6766a62 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-2,10
+2,13
@@
prefix = /usr/local
bindir = $(prefix)/bin
INSTALL = install
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
%: %.c
- $(CC) -Wall -Wextra -pedantic -o $@ $^
+ $(CC) -Wall -Wextra -pedantic -
std=c99 -
o $@ $^
.PHONY: check
check: tl-append tl-append-test
.PHONY: check
check: tl-append tl-append-test
@@
-18,4
+21,7
@@
install: tl-append
.PHONY: clean
clean:
.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