############################################################################### # System Dependant Configuration File for the # Wind-US Compilation System ############################################################################### # Specify the location of the C pre-processor (usually /lib/cpp). CPP= /lib/cpp -C -traditional # Specify the 'awk' utility to use when compiling Wind-US AWK= awk # Define archiver (for creating libraries) AR= ar ARFLAGS= rs # Uncomment for program performance data #PROFILE= -G #------------------------------------------------------ # Set machine architecture flags # This is for the Intel compilers # For Wind-US and most tools ABI= -Zp8 -pc80 -fp-model strict -fno-alias -heap-arrays -fpic -traceback # For thplt utility #ABI= -Zp8 -pc80 -fp-model strict -fno-alias -heap-arrays -mcmodel medium -traceback # This is for the GNU compilers #ABI= -malign-double -falign-functions=4 -fschedule-insns2 \ # -fomit-frame-pointer -march=pentium4 -mcpu=pentium4 -msse2 # This is for the Portland Group compilers #ABI= -tp p7 #------------------------------------------------------ # Set 'specify include path' compiler switch (prefix) INCCMD= -I #------------------------------------------------------ # Set up the Fortran 77 compiler # This is for the Intel compilers FC= ifort #FC= mpif90 FCOMP= $(FC) $(ABI) -pad -ip -DINTEL FFHOP= -O3 -axAVX -xSSE4.2 FFOPT= -O3 -axAVX -xSSE4.2 FFLOW= -O1 FFNOP= -O0 # This is for the Lahey/Fujitsu compiler #FC= lf95 #FCOMP= $(FC) --tp4 --sse2 #FFHOP= -O #FFOPT= -O #FFLOW= -O #FFNOP= # This is for the Portland Group compilers #FC= pgf90 #FCOMP= $(FC) $(ABI) #FFHOP= -O1 -Mscalarsse -Mlre #FFOPT= -O1 -Mscalarsse -Mlre #FFLOW= -O1 #FFNOP= # This is for the G95 compiler #FC= g95 #FCOMP= $(FC) $(ABI) -fno-second-underscore -I/usr/local/include #FFHOP= -O #FFOPT= -O #FFLOW= -O #FFNOP= #------------------------------------------------------ # Set up the Fortran 90 compiler # This is for the Intel compiler F90= ifort $(ABI) -pad -ip -DINTEL #F90= mpif90 $(ABI) -pad -ip -DINTEL F90FHOP= -O3 -axAVX -xSSE4.2 F90FOPT= -O3 -axAVX -xSSE4.2 F90FLOW= -O1 F90FNOP= -O0 # This is for the Lahey/Fujitsu compiler #F90= lf95 --tp4 --sse2 #F90FHOP= -O #F90FOPT= -O #F90FLOW= -O #F90FNOP= # This is for the Portland Group compilers #F90= pgf90 $(ABI) #F90FHOP= -O1 -Mscalarsse -Mlre #F90FOPT= -O1 -Mscalarsse -Mlre #F90FLOW= -O1 #F90FNOP= # This is for the G95 compiler #F90= g95 $(ABI) -fno-second-underscore -I/usr/local/include #F90FHOP= -O #F90FOPT= -O #F90FLOW= -O #F90FNOP= #------------------------------------------------------ # Set up the C compiler # This is for the Intel compilers CC= icc CCOMP= $(CC) $(ABI) ANSI= -ansi POSIX= -D_POSIX_SOURCE CFOPT= -O2 -axAVX -xSSE4.2 # This is for the GNU compilers #CC= gcc #CCOMP= $(CC) $(ABI) #ANSI= -ansi #POSIX= -D_POSIX_SOURCE #CFOPT= -O3 -fexpensive-optimizations -funroll-loops # This is for the Portland Group compilers #CC= pgcc -I$PGI/linux86/include #CCOMP= $(CC) $(ABI) #ANSI= -Xa #POSIX= -D_POSIX_SOURCE #CFOPT= -O1 -Mscalarsse -Mlre #------------------------------------------------------ # Set up the C++ compiler # This is for the Intel compilers CCP= icpc $(ABI) CPFOPT= -O2 -axAVX -xSSE4.2 # This is for the GNU compilers #CCP= c++ #CPFOPT # This is for the Portland Group compilers #CCP= pgCC #CPFOPT= -Mscalarsse -Mlre #------------------------------------------------------ # Set loader # This is for the Intel compilers #STATLIB= -static LD= ifort $(ABI) -O3 -ip -pad -axAVX -xSSE4.2 #LD= mpif90 $(ABI) -O3 -ip -pad -axAVX -xSSE4.2 # This is for the Lahey/Fujitsu compiler ##STATLIB= --staticlink #LD= lf95 --tp4 --sse2 # This is for the Portland Group compilers ##STATLIB= -Bstatic #LD= pgf90 $(ABI) -g77libs # This is for the G95 compiler ##STATLIB= -static #LD= g95 $(ABI) -fno-second-underscore -I/usr/local/include ############################################################################### # ADF directory special rules ############################################################################### # Special flags for the ADF library compilations ADFDEFS= ############################################################################### # Common File directory special rules ############################################################################### # Special flags for the Common File library compilations # This is for Intel compilers CFDEFS= -DNO_FLUSH -DFRECBYTES # This is for Lahey compilers #CFDEFS= # This is for Portland Group compilers #CFDEFS= -DFRECBYTES # Machine specific sources are defined here for use in machine.lib Makefile f_MCHNSRCS=\ linux_cfhost.f \ linux_utflsh.f \ linux_utopen.f \ linux_utrenm.f \ fake_utfpec.f \ fake_utsfa.f c_MCHNSRCS=\ linux_memget.c # Define machine specific extra objects which may be needed by the link. EXTRA_OBJECTS= # Specify any special builds here cfunit.o: cp $*.f $(VPATH)/$*.F cd $(VPATH) ; $(CPP) -P $*.F > $*.f ; \ $(FCOMP) $(PROFILE) -g -c $*.f /bin/rm -f $(VPATH)/$*.F $(VPATH)/$*.f ############################################################################### # Wind-US source directory special rules ############################################################################### # Special flags for Wind-US library compilations WINDDEFS= -DLINUX $(PRECISION) -DEXE64 -DPS_MPI_MONITOR # Specify which libraries to link for PVM (if it is being used) PVMLIBS= -lfpvm3 -lpvm3 # Specify which libraries to link for MPI (if it is being used) #MPILIBS= -L/opt/scali/lib -lmpi -lfmpi #MPILIBS= -L/usr/local/lib -lmpich -lfmpich -lPEPCF90 #MPILIBS= -L/sw/sdev/intel/mpi/3.1.038/x86_64/lib/ \ # -lmpich -lmpiif MPILIBS= -L/nasa/sgi/mpt/2.11r13/lib -lmpi # Specify any additional libraries to link in # This is for Intel compilers EXTRALIBS= -lpthread # This is for non-Intel compilers #EXTRALIBS= # 'bc' subdirectory special rules # 'chem' subdirectory special rules # 'chien' subdirectory special rules # 'dummy' subdirectory special rules # 'em' subdirectory special rules # 'inflow' subdirectory special rules # 'main' subdirectory special rules # 'modules' subdirectory special rules # 'mphase' subdirectory special rules # 'overflow' subdirectory special rules # 'pssubs' subdirectory special rules # 'struct' subdirectory special rules rcimsc.o: tdimsc.f90 cp tdimsc.f90 $(VPATH)/rcimsc.F90 cd $(VPATH) ; $(CPP) -P $(F90DEFINES) -DNOIREAL3 rcimsc.F90 > rcimsc.f90 ; \ $(F90) $(F90FLAGS) -c rcimsc.f90 /bin/rm -f $(VPATH)/rcimsc.F90 $(VPATH)/rcimsc.f90 rcutaa.o: tdutaa.f90 cp tdutaa.f90 $(VPATH)/rcutaa.F90 cd $(VPATH) ; $(CPP) -P $(F90DEFINES) -DNOIREAL3 rcutaa.F90 > rcutaa.f90 ; \ $(F90) $(F90FLAGS) -c rcutaa.f90 /bin/rm -f $(VPATH)/rcutaa.F90 $(VPATH)/rcutaa.f90 rcutv1.o: tdutv1.f90 cp tdutv1.f90 $(VPATH)/rcutv1.F90 cd $(VPATH) ; $(CPP) -P $(F90DEFINES) -DNOIREAL3 rcutv1.F90 > rcutv1.f90 ; \ $(F90) $(F90FLAGS) -c rcutv1.f90 /bin/rm -f $(VPATH)/rcutv1.F90 $(VPATH)/rcutv1.f90 tdimsc.o: tdimsc.f90 cp $*.f90 $(VPATH)/$*.F90 cd $(VPATH) ; $(CPP) -P $(F90DEFINES) -DRCMASTER tdimsc.F90 > tdimsc.f90 ; \ $(F90) $(F90FLAGS) -c tdimsc.f90 /bin/rm -f $(VPATH)/tdimsc.F90 $(VPATH)/tdimsc.f90 tdutaa.o: tdutaa.f90 cp $*.f90 $(VPATH)/$*.F90 cd $(VPATH) ; $(CPP) -P $(F90DEFINES) -DRCMASTER tdutaa.F90 > tdutaa.f90 ; \ $(F90) $(F90FLAGS) -c tdutaa.f90 /bin/rm -f $(VPATH)/tdutaa.F90 $(VPATH)/tdutaa.f90 tdutv1.o: tdutv1.f90 cp $*.f90 $(VPATH)/$*.F90 cd $(VPATH) ; $(CPP) -P $(F90DEFINES) -DRCMASTER tdutv1.F90 > tdutv1.f90 ; \ $(F90) $(F90FLAGS) -c tdutv1.f90 /bin/rm -f $(VPATH)/tdutv1.F90 $(VPATH)/tdutv1.f90 # The following may be needed for near3d with some versions of the # Portland compiler, to prevent a compilation error by compiling without # optimization #near3d.o: near3d.f90 # cp $*.f90 $(VPATH)/$*.F90 # cd $(VPATH) ; $(CPP) -P $(F90DEFINES) -DRCMASTER near3d.F90 > near3d.f90 ; \ # $(F90) $(F90FLAGS_NOOPT) -c near3d.f90 # /bin/rm -f $(VPATH)/near3d.F90 $(VPATH)/near3d.f90 # 'turb' subdirectory special rules # 'unstruct' subdirectory special rules ############################################################################# #Additional defines for building the NPARC suite of utility codes ############################################################################# #STRIP= -s #DEBUG= -g #TOOLS_PROFILE= -P #------------------------------------------------------ # Define link libraries for the program TOOLS_LIBPATH= -L$(LIBDIR) TOOLS_PRGLIBS= TOOLS_CFDLIBS= -lcfd -ladf TOOLS_GRLIBS= -L/usr/X11R6/lib64 -L/usr/lib64 -lXm -lXmu -lXt -lXext -lSM -lICE -lX11 -ldl TOOLS_OGLLIBS= -L/usr/X11R6/lib64 -L/usr/lib64 -lGL -lX11 -lXext -lXft -ldl -lXxf86vm TOOLS_CFCLIBS= -lcfc TOOLS_CLIBS= -L/usr/lib64 -lc -lm TOOLS_TCLLIBS= -L/usr/lib64 -ltcl8.5 TOOLS_LUALIBS= -L$(HOME)/WINDUS/lua-4.0.1/lib -llua -llualib TOOLS_CGNSLIBS= -L$(HOME)/WINDUS/cgnslib_2.5/lib -lcgns TCL_INCLUDE= $(INCCMD)/usr/include LUA_INCLUDE= $(INCCMD)$(HOME)/WINDUS/lua-4.0.1/include CGNS_INCLUDE= $(INCCMD)$(HOME)/WINDUS/cgnslib_2.5/include X11_INCLUDE= $(INCCMD)/usr/X11R6/include # This is for the Intel compilers TOOLS_OSLIBS= -L/nasa/intel/Compiler/2013.5.192/lib/intel64 -lifcore -lirc -limf -lpthread TOOLS_OLIBS2= TOOLS_CPPLIBS= -L/nasa/intel/Compiler/2013.5.192/lib/intel64 -lifcore -lirc -limf #TOOLS_STATLIB= -static #TOOLS_SHARLIB= -shared TOOLS_NOFORMAIN=-nofor_main MADCAP_OSLIBS= -L/nasa/intel/Compiler/2013.5.192/lib/intel64 -lcxa -lunwind -lifcore -lpthread -lstdc++ LD2= ifort $(ABI) -nofor_main #LD2= mpif90 $(ABI) -nofor_main TOOLS_LFLAGS= $(STRIP) $(DEBUG) $(TOOLS_PROFILE) $(TOOLS_STATLIB) # Define linker for libcfc CFC_AR= ar CFC_ARFLAGS= rs