## Makefile for GrACEComponent. No need to hack this # Suck in the user-configuarble stuff & CCA specific compile flags include ../../MakeIncl.Meshes # Include architecture specific makefile. GrACE specific C++ flags are # sucked in by make.defn.$(SYSTEM) from GrACE/arch_makes/make.suffix include ../GrACE/make.defn .SUFFIXES: .c .cpp .o SRC_DIR = ../src OBJ_DIR = ../obj COMP_DIR = ../ccaComponent APPOBJ = GraceComponent.o GraceComp_time.o GraceComp_sync.o GraceComp_communicator.o\ GraceComp_setup.o GraceComp_refine.o GraceComp_query.o \ GraceComp_checkpoint.o GraceComp_VFV.o GraceComp_proc.o \ GraceComponent_wrapper.o VectorFieldVariable_JRImpl.o VFV_JR_time.o \ VFV_JR_sync.o VFV_JR_query.o VFV_JR_io.o VFV_JR_bc.o \ VFV_JR_adapt.o VFV_JR_lock.o VFV_JR_data.o GraceComponent_wrapper.o \ VFV_JR_stats.o VFV_JR_stats_level.o VFV_JR_stats_patch.o \ DefaultInterp.o DefaultBC.o DefaultTimeInterp.o UTILOBJ = Cluster1.o Cluster3.o libstatic = libGraceComp.a # Application specific Flags C++APPFLAGS = -DACE_IO -Wno-unused -O2 -DHDF4 -DNDEBUG CAPPFLAGS = $(OPTIMIZATION) F77APPFLAGS= $(FOPTIMIZATION) F90APPFLAGS = $(FOPTIMIZATION) # Application specific libraries like blas, lapack etc. APPLIB = -L$(CCAFE_LIB_L_DIR) -lccafeCore # LDLIBS is defined in GrACE/make.defn and is needless compicated. # redefining it to suit our purposes and making it simpler LDLIBS = $(LIBRARY) $(HDF_LIB) $(ARCHLIBS) # CCA specific includes INCLUDE1 = -I $(GrACE_HOME)/include INCLUDE2 = -I $(CCAFE_MPI_INC) INCLUDE3 = $(CCA_INC) INCLUDE4 = -I $(PORTS_DIR) INCLUDE5 = -I $(CCAFE_pkgincludedir) INCLUDE6 = -I ../include/ INCLUDE = $(INCLUDE1) $(INCLUDE2) $(INCLUDE3) $(INCLUDE4) $(INCLUDE5) $(INCLUDE6) default : static_library static_library : $(UTILOBJ) $(APPOBJ) $(RM) $(libstatic) ### this line changes to ar ... ar ruv $(libstatic) $(UTILOBJ) $(APPOBJ) $(COBJ) ranlib $(libstatic) cp $(libstatic) $(COMP_DIR) .cpp.o : @$(ECHO) @$(ECHO) "Compiling Source File --" $< @$(ECHO) "---------------------" $(CCA_CXX) $(C++FLAGS) -c $(INCLUDE) -o $@ $< @$(ECHO) clean: $(RM) *.o core* *.cp *.log install: if test ! -d $(FINAL_INSTALL_DIR)/lib ; then mkdir -p $(FINAL_INSTALL_DIR)/lib ; fi chmod 755 $(FINAL_INSTALL_DIR)/lib cp $(COMP_DIR)/$(libstatic) $(FINAL_INSTALL_DIR)/lib/$(libstatic) uninstall : if test -d $(FINAL_INSTALL_DIR)/lib ; then \ /bin/rm -f $(FINAL_INSTALL_DIR)/lib/$(libstatic) ; \ fi