Debian Codegraph @

data/0.12-dev/impl/Makefile

raw
1 CC = g++
2 CPPFLAGS = -Wall
3 LIBS =
4
5 # Erase all suffixes and set our own
6 .SUFFIXES:
7 .SUFFIXES: .o .cpp .h
8
9 # $@ = .o file
10 # $^ = all listed dependancies
11 .cpp.o:
12 $(CC) $(CPPFLAGS) -c $<
13 .o:
14 $(CC) $(CPPFLAGS) -o $@ $^ $(LIBS)
15
16 all: fake_all
17
18 include MakeTargets
19 include MakeDepend
20
21 fake_all: $(TARGETS)
22
23 MakeDepend: *.cpp *.h
24 @echo "Generating dependency information..."
25 @g++ -MM *.cpp > MakeDepend
26 @echo "Dependency information created."
27
28 clean:
29 rm -f *.o $(TARGETS) MakeDepend