diff --git a/src/Makefile.org b/src/Makefile.org new file mode 100644 index 0000000000000000000000000000000000000000..8b5d66466f738355f2d06e6d5815813686f58812 --- /dev/null +++ b/src/Makefile.org @@ -0,0 +1,114 @@ +# Alejandro Luque Estepa, 2006 +# Margreet Nool 2013 + +TOPDIR := .. + +include $(TOPDIR)/Makefile.config +include $(TOPDIR)/Makefile.inc + +.PHONY: example2 all clean + +all: + @echo + @echo "#################################" + @echo "### BUILDING arcos executable ###" + @echo "#################################" + @echo + make arcos + mv arcos .. + +# --------------------------------------------------------------------------- +DEBUG_LEVEL = 1 + +all: arcos +OBJ = cdr.o poisson.o rz_array.o interpol2.o misc.o \ + cstream.o dft.o grid.o reaction.o mapper.o \ + photo.o main.o sprites.o react_table.o rt.o configuration.o + +LIBDIR1 = $(TOPDIR)/fish90/lib +LIBDIR2 = $(TOPDIR)/arcos_f90/lib +LIBDIR3 = /ufs/greta/libconfig/libconfig-1.4.9/lib +LIBDIRS = $(LIBDIR1) $(LIBDIR2) +LIBS = -L./$(LIBDIR1) -L./$(LIBDIR2) -lfish90 -larcos -lm -lfftw3 /ufs/greta/libconfig/libconfig-1.4.9/lib/.libs/libconfig.so +LIBS_new = -L./$(LIBDIR1) -L./$(LIBDIR2) -lfish90 -lm -lfftw3 /ufs/greta/libconfig/libconfig-1.4.9/lib/.libs/libconfig.so +INCDIRS1 = ../include +INCDIRS2 = $(TOPDIR)/fish90/include + +$(OBJ) : $(LIBDIR1)/libfish90.a $(LIBDIR1)/fish.mod \ + $(LIBDIR2)/libarcos.a + + +%.o: %.c + $(CC) $(CFLAGS) $(DFLAGS) $(INCLUDES) -o $@ -c $< + +example2.o : $(INCDIRS1)/libconfig.h $(INCDIRS1)/configuration.h + +example2: configuration.o example2.o + $(CC) $(CCFLAGS) example2.o configuration.o -o $@ $(LIBS_new) + +cdr.o : $(INCDIRS1)/cdr.h $(INCDIRS1)/cstream.h \ + $(INCDIRS1)/grid.h $(INCDIRS1)/interpol2.h \ + $(INCDIRS1)/mapper.h $(INCDIRS1)/parameters.h \ + $(INCDIRS1)/poisson.h $(INCDIRS1)/proto.h \ + $(INCDIRS1)/react_table.h $(INCDIRS1)/rz_array.h \ + $(INCDIRS1)/species.h $(INCDIRS1)/tree.h + +cstream.o : $(INCDIRS1)/parameters.h $(INCDIRS1)/proto.h \ + $(INCDIRS1)/species.h + +dft.o : $(INCDIRS1)/cdr.h $(INCDIRS1)/cstream.h \ + $(INCDIRS1)/grid.h $(INCDIRS1)/parameters.h \ + $(INCDIRS1)/proto.h $(INCDIRS1)/rz_array.h \ + $(INCDIRS1)/species.h + +grid.o : $(INCDIRS1)/grid.h $(INCDIRS1)/parameters.h \ + $(INCDIRS1)/proto.h $(INCDIRS1)/species.h + +interpol2.o : $(INCDIRS1)/grid.h $(INCDIRS1)/interpol2.h \ + $(INCDIRS1)/parameters.h $(INCDIRS1)/proto.h \ + $(INCDIRS1)/rz_array.h $(INCDIRS1)/species.h + +main.o : $(INCDIRS1)/cdr.h $(INCDIRS1)/cstream.h \ + $(INCDIRS1)/grid.h $(INCDIRS1)/parameters.h \ + $(INCDIRS1)/proto.h $(INCDIRS1)/species.h \ + $(INCDIRS1)/configuration.h + +mapper.o : $(INCDIRS1)/cstream.h $(INCDIRS1)/grid.h \ + $(INCDIRS1)/interpol2.h $(INCDIRS1)/mapper.h \ + $(INCDIRS1)/proto.h $(INCDIRS1)/species.h + +photo.o : $(INCDIRS1)/cdr.h $(INCDIRS1)/interpol2.h \ + $(INCDIRS1)/mapper.h $(INCDIRS1)/parameters.h \ + $(INCDIRS1)/photo.h $(INCDIRS1)/poisson.h \ + $(INCDIRS1)/proto.h $(INCDIRS1)/rz_array.h \ + $(INCDIRS1)/species.h + +poisson.o : $(INCDIRS1)/cdr.h $(INCDIRS1)/cstream.h \ + $(INCDIRS1)/grid.h $(INCDIRS1)/interpol2.h \ + $(INCDIRS1)/mapper.h $(INCDIRS1)/parameters.h \ + $(INCDIRS1)/poisson.h $(INCDIRS1)/proto.h \ + $(INCDIRS1)/rz_array.h $(INCDIRS1)/species.h \ + $(INCDIRS2)/fishpack.h + +reaction.o : $(INCDIRS1)/cdr.h $(INCDIRS1)/grid.h \ + $(INCDIRS1)/parameters.h $(INCDIRS1)/photo.h \ + $(INCDIRS1)/proto.h $(INCDIRS1)/react_table.h \ + $(INCDIRS1)/species.h + +react_table.o : $(INCDIRS1)/react_table.h + +rt.o : $(INCDIRS1)/parameters.h $(INCDIRS1)/proto.h \ + $(INCDIRS1)/species.h + +rz_array.o : $(INCDIRS1)/parameters.h $(INCDIRS1)/proto.h \ + $(INCDIRS1)/rz_array.h $(INCDIRS1)/species.h + +sprites.o : $(INCDIRS1)/cdr.h $(INCDIRS1)/parameters.h \ + $(INCDIRS1)/photo.h $(INCDIRS1)/poisson.h \ + $(INCDIRS1)/rz_array.h $(INCDIRS1)/species.h + +arcos: $(OBJ) + $(F90) $(F90FLAGS) $(OBJ) -o $@ $(LIBS) + +clean: + rm -f *.o *~ arcos 2> /dev/null