]>
Commit | Line | Data |
---|---|---|
7ed3669a SW |
1 | CC = gcc |
2 | CFLAGS = -Wall -Wextra -pedantic -Wstrict-overflow | |
3 | ||
4 | all: reverse | |
5 | ||
6 | clean: | |
e8aa0cd3 | 7 | -rm *.o reverse reverse_test |
7ed3669a SW |
8 | |
9 | distclean: clean | |
10 | -rm deps.makefile deps.makefile.bak | |
11 | ||
12 | depend: *.c | |
13 | makedepend -f- $^ > deps.makefile | |
14 | ||
e8aa0cd3 SW |
15 | test: reverse_test |
16 | ./reverse_test | |
636e3e5b | 17 | ./overonion_test |
e8aa0cd3 SW |
18 | |
19 | .PHONY: clean distclean depend test | |
7ed3669a | 20 | |
2377b838 SW |
21 | reverse: reverse.o reverse_lib.o temp_file.o |
22 | reverse_test: reverse_test.o reverse_lib.o temp_file.o | |
7ed3669a SW |
23 | $(CC) -o $@ $^ $(CFLAGS) |
24 | ||
25 | %.o: %.c | |
26 | $(CC) -c -o $@ $< $(CFLAGS) | |
27 | ||
28 | -include deps.makefile |