# To use this Makefile save it to your sourcecode directory as Makefile # and then edit it. You will have to: # # 1) edit the OBJECTS line. You should list each of the fortran or # c/c++ source files which will get compiled into an # object (.o) file # 2) edit the CFLAGS line. During the initial builds you will # probably want to include debug info so that you # can use a debugger. Once you are ready to run the # program with real data you will want to change the "-g" # to "-O2". # 3) you can either type 'make main_one_c/cpp/f' at the commandline # or you can commentout the lines for the types of # source you do not have # # specify C compiler to use; depending on the machine you # are using, other compilers include acc, gcc cc = cc # specify the C++ compiler to use C++ = CC # specify F77 compiler to use; depending on the machine you # are using, other compiler compilers include g77 F77 = f77 # specify object files OBJECTS = boilerplate.o # specify additional compiler options CFLAGS = -g FFLAGS = -g # specify libraries to link in LDFLAGS = -lm main_one_cpp: ${OBJECTS} ${C++} ${OBJECTS} ${CFLAGS} ${LDFLAGS} -o main_one_cpp main_one_c: ${OBJECTS} ${cc} ${OBJECTS} ${CFLAGS} ${LDFLAGS} -o main_one_c main_one_f: ${OBJECTS} ${F77} ${OBJECTS} ${FFLAGS} ${LDFLAGS} -o main_one_f clean: rm *.o