# makefile # Define shell SHELL = /bin/sh #### Start of system configuration section. #### # Define default search path VPATH = /home/kumon/crystal/nonlin/RK4/testBurg # Define source directory srcdir = /home/kumon/crystal/nonlin/RK4/testBurg # Define paths for include files includedir = /home/kumon/crystal/nonlin/RK4/testBurg # Define compiler parameters # If parameter is blank, nothing will be used. CC = gcc CXX = g++ #CDEBUG = -g -Wall COPTIMIZE = -O CXXFLAGS = $(CDEBUG) $(COPTIMIZE) -I$(includedir) CPPFLAGS = # Define linking options and libraries #LDFLAGS = #LOADLIBS = # Define installation parameters #INSTALL = /usr/local/bin/install -c #INSTALLDATA = /usr/local/bin/install -c -m 64 #Define generic directory prefix #prefix = /usr/local # Define directory for executables #bindir = $(prefix)/bin # The directory to install the info files in. #infodir = $(prefix)/info #### End of system configuration section. #### #### Start of main part of makefile #### # Define variables OBJS = Nrutil.o CalcB.o CalcMainB.o HEADERS = Nrutil.h Calc.h # General targets all: CalcMainB CalcMainB: $(OBJS) $(CXX) $^ -o $@ $(LDFLAGS) $(LOADLIBS) # Object file targets (implicitly defined) Nrutil.o : Nrutil.h CalcB.o : Nrutil.h Calc.h CalcMainB.o: $(HEADERS) # Clean out object files and executable .PHONY : clean clean: rm -f $(OBJS) CalcMainB #### End of main part of makefile ####