#--------------------------------------------------------------------------- # Parallel Fortran: # # For CG, EP, FT, MG, LU, SP and BT, which are in Fortran, the following must # be defined: # # F77 - Fortran compiler # FFLAGS - Fortran compilation arguments # F_INC - any -I arguments required for compiling Fortran # FLINK - Fortran linker # FLINKFLAGS - Fortran linker arguments # F_LIB - any -L and -l arguments required for linking Fortran # # compilations are done with $(F77) $(F_INC) $(FFLAGS) or # $(F77) $(FFLAGS) # linking is done with $(FLINK) $(F_LIB) $(FLINKFLAGS) #--------------------------------------------------------------------------- #--------------------------------------------------------------------------- # This is the fortran compiler used for MPI programs #--------------------------------------------------------------------------- F77 = f77 # This links MPI fortran programs; usually the same as ${F77} FLINK = f77 #--------------------------------------------------------------------------- # These macros are passed to the linker #--------------------------------------------------------------------------- F_LIB = #--------------------------------------------------------------------------- # These macros are passed to the compiler #--------------------------------------------------------------------------- F_INC = #--------------------------------------------------------------------------- # Global *compile time* flags for Fortran programs #--------------------------------------------------------------------------- FFLAGS = -O3 # FFLAGS = -g #--------------------------------------------------------------------------- # Global *link time* flags. Flags for increasing maximum executable # size usually go here. #--------------------------------------------------------------------------- FLINKFLAGS = #--------------------------------------------------------------------------- # Parallel C: # # For IS, which is in C, the following must be defined: # # CC - C compiler # CFLAGS - C compilation arguments # C_INC - any -I arguments required for compiling C # CLINK - C linker # CLINKFLAGS - C linker flags # C_LIB - any -L and -l arguments required for linking C # # compilations are done with $(CC) $(C_INC) $(CFLAGS) or # $(CC) $(CFLAGS) # linking is done with $(CLINK) $(C_LIB) $(CLINKFLAGS) #--------------------------------------------------------------------------- # Compilation flags for using monotonic clocks. ifdef USE_MONOTONIC_CLOCK CFLAG_MONOTONIC=-DUSE_MONOTONIC_CLOCK CLINKFLAG_MONOTONIC=-lrt else CFLAG_MONOTONIC= CLINKFLAG_MONOTONIC= endif #--------------------------------------------------------------------------- # This is the UPC compiler used for UPC programs #--------------------------------------------------------------------------- UPCC = upcc CC = $(UPCC) # This links C programs; usually the same as ${CC} CLINK = $(UPCC) #--------------------------------------------------------------------------- # These macros are passed to the linker #--------------------------------------------------------------------------- C_LIB = #--------------------------------------------------------------------------- # These macros are passed to the compiler #--------------------------------------------------------------------------- C_INC = -I../common #--------------------------------------------------------------------------- # Global *compile time* flags for C programs #--------------------------------------------------------------------------- UPCC_STAT_THREADS = -T CFLAGS = $(UPCC_STAT_THREADS)${NP} $(CFLAG_MONOTONIC) #--------------------------------------------------------------------------- # Global *link time* flags. Flags for increasing maximum executable # size usually go here. #--------------------------------------------------------------------------- CLINKFLAGS = $(CFLAGS) #--------------------------------------------------------------------------- # Utilities C: # # This is the C compiler used to compile C utilities. Flags required by # this compiler go here also; typically there are few flags required; hence # there are no separate macros provided for such flags. #--------------------------------------------------------------------------- UCC = gcc -O