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