Blockstructured Adaptive Mesh Refinement in object-oriented C++
Example of src/src.config
SRC =$(AMROC)/src#
AMROCSRC=$(SRC)/amroc#
DAGHSRC =$(SRC)/dagh#
CLPSRC =$(SRC)/clawpack#OBJ =obj/$(DEBUG)# SRC2OBJ =../..# DEP =dep# SRC2DEP =..#INCLUDE =$(AMROC)/include# AMROCINCLUDE =$(INCLUDE)/amroc# DAGHINCLUDE =$(INCLUDE)/dagh# CLPINCLUDE =$(INCLUDE)/clawpack# HDFINCLUDE =$(INCLUDE)/HDF4# VISUAL3INCLUDE =$(INCLUDE)/visual3#.IGNORE: .i .SUFFIXES: .F .f .C .cSHELL = /bin/sh# Libraries generally required by application LIBS = -lmfhdf -ldf -lz -ljpeg# Compiler Options LDFLAGS = -L$(HDFLIBS) CFLAGS = CPPFLAGS = -I. -I$(INCLUDE) -I$(DAGHINCLUDE) -I$(HDFINCLUDE) CXXFLAGS = CXXREPOSITORY = notset CXXF90LIBS = F90FLAGS = F77FLAGS = ADD_OBJS =include $(SRC)/defs/$(ARCHPATH)/generic.$(COMP).defs ifneq (notset,$(PROJECT)) include $(SRC)/defs/$(ARCHPATH)/$(PROJECT).$(COMP).defs endif# Compiler Commands CC_CMP = $(CC) -c $(CFLAGS) $(CPPFLAGS) CXX_CMP = $(CXX) -c $(CXXFLAGS) $(CPPFLAGS) # Note that some linkers (RS6000) will need the CPPFLAGS CC_LNK = $(CCLNK) $(LDFLAGS) CC_PRE = $(CXX) -E $(CPPFLAGS) DEPCC_CMP = $(CC) $(DEPFLAGS) $(CFLAGS) $(CPPFLAGS) DEPCXX_CMP = $(CXX) $(DEPFLAGS) $(CXXFLAGS) $(CPPFLAGS)F90_CMP = $(F90) -c $(F90FLAGS) F77_CMP = $(F77) -c $(F77FLAGS)# Default rules for Fortran 77, Fortran 90, C and C++ source %.o : $(SRC2OBJ)/%.f $(F77_CMP) $< -o $@%.o : $(SRC2OBJ)/%.f90 $(F90_CMP) $< -o $@%.o : $(SRC2OBJ)/%.c $(CC_CMP) $< -o $@%.o : $(SRC2OBJ)/%.C $(CXX_CMP) $< -o $@%.d : $(SRC2DEP)/%.c $(AMROC)/bin/depend.$(COMP).sh "$(DEPCC_CMP)" $< $@ .c%.d : $(SRC2DEP)/%.C $(AMROC)/bin/depend.$(COMP).sh "$(DEPCXX_CMP)" $< $@ .C
Quickstart Users Guide Programmers Reference Installation Examples Download
AMROC Main Home Contactlast update: 11/4/04