## Makefile.static include ../../MakeIncl.ReactingFlows include ../MakeIncl.ChemSys .SUFFIXES: .cpp .o .so.o COMP_DIR = ../ccaComponent ########### change these names APPOBJ = reaction.o reaction_wrapper.o ThermoAnalysisMethods.o libstatic = libReaction.a ################# no changes required below this line # Application specific Flags C++APPFLAGS = -Wno-unused -O2 -DNDEBUG $(DIM_NONDIM_FLAG) # Application specific libraries like blas, lapack etc. APPLIB1 = -L../lib/chem -lchem -L../lib/therm -ltherm -L../lib/trpack -ltrpack \ -L../lib/chemkin -lchemkin APPLIB2 = -L../prep_tables/der_tables -ldertables -L../prep_tables/tables -ltables APPLIB = $(APPLIB1) $(APPLIB2) $(FTNLIBS) \ -L$(CCAFE_LIB_L_DIR) $(CCA_LD_SEARCH_FLAGS) $(CCAFE_LIB_L) # Grace and MPI specific includes INCLUDE1 = INCLUDE2 = $(CCAFE_MPI_INC) # CCA specific includes INCLUDE3 = $(CCA_INC) INCLUDE4 = -I $(PORTS_DIR) INCLUDE5 = -I $(CCAFE_pkgincludedir) INCLUDE6 = -I ../include/ INCLUDE = $(INCLUDE1) $(INCLUDE2) $(INCLUDE3) $(INCLUDE4) $(INCLUDE5) $(INCLUDE6) # system flag ECHO = echo default : static_library static_library : $(APPOBJ) $(RM) $(libstatic) ar ruv $(libstatic) $(APPOBJ) ranlib $(libstatic) cp $(libstatic) $(COMP_DIR) .cpp.o : @$(ECHO) @$(ECHO) "Compiling Source File --" $< @$(ECHO) "---------------------" $(CCA_CXX) $(C++APPFLAGS) $(FCNAME) -c $(INCLUDE) -o $@ $< @$(ECHO) clean: $(RM) *.o core* *.cp *.log ../include/*~ *~ *.a *.exe *.dat $(COMP_DIR)/$(libstatic) install: if test ! -d $(FINAL_INSTALL_DIR)/lib ; then mkdir -p $(FINAL_INSTALL_DIR)/lib ; \ chmod 755 $(FINAL_INSTALL_DIR)/lib ; fi 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