]>
Commit | Line | Data |
---|---|---|
b3d5ed96 SW |
1 | prefix = /usr/local |
2 | bindir = $(prefix)/bin | |
3 | INSTALL = install | |
4 | ||
d522116b SW |
5 | tl-append: common.o |
6 | tl-append-test: common.o | |
b3d5ed96 | 7 | |
d522116b SW |
8 | %.o: %.c |
9 | $(CC) -Wall -Wextra -pedantic -std=c99 -o $@ -c $^ | |
b3d5ed96 | 10 | %: %.c |
71a7e5c5 | 11 | $(CC) -Wall -Wextra -pedantic -std=c99 -o $@ $^ |
b3d5ed96 SW |
12 | |
13 | .PHONY: check | |
14 | check: tl-append tl-append-test | |
15 | ./tl-append-test | |
16 | ||
17 | .PHONY: install | |
18 | install: tl-append | |
19 | $(INSTALL) -d $(DESTDIR)$(bindir) | |
20 | $(INSTALL) -m 755 $^ $(DESTDIR)$(bindir) | |
c40c4889 SW |
21 | |
22 | .PHONY: clean | |
23 | clean: | |
d522116b SW |
24 | -rm tl-append tl-append-test tl.log *.o |
25 | ||
26 | tl-append.o: common.h | |
27 | tl-append-test.o: common.h |