]> git.scottworley.com Git - overonion/blame_incremental - Makefile
Test reverse
[overonion] / Makefile
... / ...
CommitLineData
1CC = gcc
2CFLAGS = -Wall -Wextra -pedantic -Wstrict-overflow
3
4all: reverse
5
6clean:
7 -rm *.o reverse reverse_test
8
9distclean: clean
10 -rm deps.makefile deps.makefile.bak
11
12depend: *.c
13 makedepend -f- $^ > deps.makefile
14
15test: reverse_test
16 ./reverse_test
17
18.PHONY: clean distclean depend test
19
20reverse: reverse.o reverse_lib.o
21reverse_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