]> git.scottworley.com Git - tl-append/blob - Makefile
appease clang-tidy: Don't do unnecessary size_t→int narrowing conversion
[tl-append] / Makefile
1 prefix = /usr/local
2 bindir = $(prefix)/bin
3 INSTALL = install
4
5 tl-append: common.o
6 tl-append-test: common.o
7
8 %.o: %.c
9 $(CC) -Wall -Wextra -pedantic -std=c99 -o $@ -c $^
10 %: %.c
11 $(CC) -Wall -Wextra -pedantic -std=c99 -o $@ $^
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)
21
22 .PHONY: clean
23 clean:
24 -rm tl-append tl-append-test tl.log *.o
25
26 tl-append.o: common.h
27 tl-append-test.o: common.h