]> git.scottworley.com Git - overonion/blob - Makefile
Test reverse
[overonion] / Makefile
1 CC = gcc
2 CFLAGS = -Wall -Wextra -pedantic -Wstrict-overflow
3
4 all: reverse
5
6 clean:
7 -rm *.o reverse reverse_test
8
9 distclean: clean
10 -rm deps.makefile deps.makefile.bak
11
12 depend: *.c
13 makedepend -f- $^ > deps.makefile
14
15 test: reverse_test
16 ./reverse_test
17
18 .PHONY: clean distclean depend test
19
20 reverse: reverse.o reverse_lib.o
21 reverse_test: reverse_test.o reverse_lib.o
22 $(CC) -o $@ $^ $(CFLAGS)
23
24 %.o: %.c
25 $(CC) -c -o $@ $< $(CFLAGS)
26
27 -include deps.makefile