# FLASH makefile definitions for the Cray SV1 PVP system running UNICOS # # sn3221 tajfun 10.0.1.1 roo.2 CRAY SV1 (Cray SV1ex) # Cray Fortran: Version 3.6.0.0 Mon Oct 06, 2003 04:51:38 # Cray Standard C Version 6.5.0.5 (u144c34143p42145g41124a20) 10/06/03 04:52:36 # mpt.2.1.0.0 # HDF5 1.4.3 # # Shared memory option for MPI (mpirun -nt) does not work (perhaps needs -ataskcommon)). #---------------------------------------------------------------------------- # Set the HDF/HDF5 library paths -- these need to be updated for your system #---------------------------------------------------------------------------- HDF4_PATH = HDF5_PATH = /pkg/hdf5/lib ZLIB_PATH = PAPI_PATH = PAPI_FLAGS = NCMPI_PATH = MPE_PATH = #---------------------------------------------------------------------------- # Compiler and linker commands # # We use the f90 compiler as the linker, so some C libraries may explicitly # need to be added into the link line. #---------------------------------------------------------------------------- FCOMP = ftn -dp CCOMP = cc CPPCOMP = CC LINK = ftn -dp # pre-processor flag PP = -D #---------------------------------------------------------------------------- # Compilation flags # # Three sets of compilation/linking flags are defined: one for optimized # code, one for testing, and one for debugging. The default is to use the # _OPT version. Specifying -debug to setup will pick the _DEBUG version, # these should enable bounds checking. Specifying -test is used for # flash_test, and is set for quick code generation, and (sometimes) # profiling. The Makefile generated by setup will assign the generic token # (ex. FFLAGS) to the proper set of flags (ex. FFLAGS_OPT). #---------------------------------------------------------------------------- #FFLAGS_OPT = -c -F -O0 -Onopattern,msgs #FFLAGS_OPT = -c -F -Oscalar3,vector3,task0,nopattern,aggress,inline5,msgs -m0 -r6 FFLAGS_OPT = -c -F -Oscalar3,vector3,task0,nopattern,aggress,inline5 FFLAGS_DEBUG = -c -F -eD FFLAGS_TEST = -c -F -Oscalar1,vector1,task0,nopattern,noaggress,inline0 CFLAGS_OPT = -c -DCRAY_PVP -DUPCASE -h scalar2,vector2,task0,inline0 CFLAGS_DEBUG = -c -DCRAY_PVP -DUPCASE -G n CFLAGS_TEST = -c -DCRAY_PVP -DUPCASE -h scalar2,vector2,task0,inline0 # if we are using HDF5, we need to specify the path to the include files CFLAGS_HDF5 = -I $(HDF5_PATH)/include #---------------------------------------------------------------------------- # Linker flags # # There is a seperate version of the linker flags for each of the _OPT, # _DEBUG, and _TEST cases. #---------------------------------------------------------------------------- LFLAGS_OPT = -o LFLAGS_DEBUG = -o LFLAGS_TEST = -o #---------------------------------------------------------------------------- # Library specific linking # # If a FLASH module has a 'LIBRARY xxx' line in its Config file, we need to # create a macro in this Makefile.h for LIB_xxx, which will be added to the # link line when FLASH is built. This allows us to switch between different # (incompatible) libraries. We also create a _OPT, _DEBUG, and _TEST # library macro to add any performance-minded libraries (like fast math), # depending on how FLASH was setup. #---------------------------------------------------------------------------- LIB_HDF4 = #-L$(HDF4_PATH)/lib -lmfhdf -ldf -lz -ljpeg LIB_HDF5 = #-L $(HDF5_PATH)/lib -lhdf5 -lz LIB_OPT = LIB_DEBUG = LIB_TEST = LIB_PNG = -lpng LIB_NCMPI = LIB_MPE = #---------------------------------------------------------------------------- # Additional machine-dependent object files # # Add any machine specific files here -- they will be compiled and linked # when FLASH is built. #---------------------------------------------------------------------------- MACHOBJ = #---------------------------------------------------------------------------- # Additional commands #---------------------------------------------------------------------------- MV = mv -f AR = ar -r RM = rm -f CD = cd RL = ranlib ECHO = echo