# 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 -I/usr/local/lib/pgplot # Define compiler parameters # If parameter is blank, nothing will be used. CC = gcc CXX = g++ CDEBUG = -g CWARNING = -Wall #COPTIMIZE = -O CXXFLAGS = $(CDEBUG) $(CWARNING) $(COPTIMIZE) -I$(includedir) CPPFLAGS = # Define linking options and libraries #LDFLAGS = LOADLIBS = -lcpgplot -lpgplot -lX11 -lf2c # 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 derivs.o RKtest.o RKintsubtest.o RKintBtest.o HEADERS = Nrutil.h RKtest.h RKinttest.h # General targets all: RKintBtest RKintBtest: $(OBJS) $(CXX) $(CDEBUG) $^ -o $@ $(LDFLAGS) $(LOADLIBS) # Object file targets (implicitly defined) Nrutil.o : Nrutil.h derivs.o : RKtest.h RKtest.o : Nrutil.h RKtest.h RKintsubtest.o: RKtest.h RKinttest.h RKintBtest.o : $(HEADERS) # Clean out object files and executable .PHONY : clean clean: rm -f $(OBJS) RKintBtest #### End of main part of makefile ####