]>
Commit | Line | Data |
---|---|---|
1 | CC = gcc | |
2 | CFLAGS = -Wall -Wextra -pedantic -Wstrict-overflow | |
3 | ||
4 | all: reverse | |
5 | ||
6 | clean: | |
7 | -rm *.o reverse | |
8 | ||
9 | distclean: clean | |
10 | -rm deps.makefile deps.makefile.bak | |
11 | ||
12 | depend: *.c | |
13 | makedepend -f- $^ > deps.makefile | |
14 | ||
15 | .PHONY: clean distclean depend | |
16 | ||
17 | reverse: reverse.o reverse_lib.o | |
18 | $(CC) -o $@ $^ $(CFLAGS) | |
19 | ||
20 | %.o: %.c | |
21 | $(CC) -c -o $@ $< $(CFLAGS) | |
22 | ||
23 | -include deps.makefile |