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