Debian Codegraph @

doc/examples/makefile.example

raw
1 # Path where Blitz++ is installed
2 BZDIR = /usr/local/blitz
3
4 CXX = g++
5
6 # Flags for optimized executables
7 # CXXFLAGS = -O2 -I$(BZDIR) -ftemplate-depth-30
8
9 # Flags for debugging
10 CXXFLAGS = -ftemplate-depth-30 -g -DBZ_DEBUG -I$(BZDIR)
11
12 LDFLAGS =
13 LIBS = -L$(BZDIR)/lib -lblitz -lm
14
15 TARGETS = myprogram1 myprogram2
16
17 .SUFFIXES: .o .cpp
18
19 .cpp.o:
20 $(CXX) $(CXXFLAGS) -c $*.cpp
21
22 $(TARGETS):
23 $(CXX) $(LDFLAGS) $@@.o -o $@@ $(LIBS)
24
25 all:
26 $(TARGETS)
27
28 myprogram1: myprogram1.o
29 myprogram2: myprogram2.o
30
31 clean:
32 -rm -f *.o $(TARGETS)