### Oldham, Jeffrey D. ### 1999 Nov 22 ### programming ### ### Compile C++ Program WCFLAGS= -pedantic -Wall -W -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wcast-align -Wconversion -Wnested-externs -Wundef -Winline CFLAGS= -g -O3 $(WCFLAGS) # -DDEBUG # -DTIME -DSTATS CC= g++ CXXFLAGS= -DUSE_LIBGXX_INLINES $(CFLAGS) CXX= g++ LDFLAGS= #-lm CCSOURCES = financial.cc OBJECTS = $(CCSOURCES:%.cc=%.o) all: financial %: %.o $(CXX) $(CXXFLAGS) $^ $(LIBS) -o $@ $(LDFLAGS) clean: rm -f *.o header-dependencies: gcc -MM $(CFLAGS) $(CCSOURCES) $(CSOURCES) ## ADD header file dependencies ## Create them using "make -k header-dependencies". financial.o: financial.cc investment.h assetAllocation.h time.h \ types.h Rate.h date.h statistics.h