# # ####### FLAGS CC = g++ LIBS = -lm /usr/local/pgsql/lib/libpq++.so.3 BASE_DIR = . INCLUDES = -I$(BASE_DIR) -I/usr/local/pgsql/include # Optimizing flags, remove '#' to activate. #CFLAGS = -Wall -O6 -DNDEBUG $(INCLUDES) # Profiling flags, remove '#' to activate. #CFLAGS = -Wall -pg -O6 -DNDEBUG $(INCLUDES) # Debugging flags, insert '#' to deactivate. CFLAGS = -g $(INCLUDES) ####### Files # The name of the target file TARGET = run # All headers in the project. Add your new header files here. HEADERS = Base.h # All source files in the project. Add your new source files here. SOURCES = Base.cpp # All object files in the project. Add .o versions of all your # _untemplated_ .cpp files (probably no new files here for this project). OBJECTS = Base.o ####### Implicit rules .SUFFIXES: .SUFFIXES: .c .cc .cpp .o .c.o:; $(CC) -c $(CFLAGS) $< .cpp.o:; $(CC) -c $(CFLAGS) $< .cc.o:; $(CC) -c $(CFLAGS) $< ####### Build rules # No changes should be necessary in this section. all: $(TARGET) $(TARGET): $(OBJECTS) $(HEADERS) $(CC) $(CFLAGS) $(LIBS) -o $(TARGET) $(OBJECTS) purip: $(OBJECTS) purify $(CC) -o purip $(OBJECTS) $(CFLAGS) $(LIBS) $(OBJECTS): $(HEADERS) show: @echo $(SOURCES) $(HEADERS) clean: rm -f *.o *~ full_clean: clean rm -f $(TARGET)