git.ucc.asn.au
/
progcomp2012.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
06068b3fec7fec39a2248b2ab6a31add424fe6c2
[progcomp2012.git]
/
Makefile
1
2
OBJ = main.o ai.o db.o
3
BIN = ../ramen
4
5
CFLAGS = -Wall -Wextra -g -std=gnu99
6
LINKFLAGS = -g -lm
7
8
DEPFILES = $(OBJ:%=%.dep)
9
10
.PHONY: all clean
11
12
all: $(BIN)
13
14
clean:
15
$(RM) $(BIN) $(OBJ) $(DEPFILES)
16
17
$(BIN): $(OBJ)
18
$(CC) -o $@ $(OBJ) $(LINKFLAGS)
19
20
%.o: %.c
21
$(CC) -o $@ -c $< $(CFLAGS) $(CPPFLAGS)
22
$(CPP) $(CPPFLAGS) $< -MM -o
[email protected]
23
24
-include $(DEPFILES)
25
UCC
git Repository :: git.ucc.asn.au