# makefile include for DARWIN SHELL = /bin/sh #------------------------------------------------------------------------ # ADFDIR = adf for building with ADF # = adfh for building with HDF5 #------------------------------------------------------------------------ ADFDIR = adfh #------------------------------------------------------------------------ # these should only be set if building with HDF5 # HDF5INC - path to HDF5 header files # HDF5LIB - HDF5 library # SZIPLIB - szip library (if needed) # ZLIBLIB - zlib library (if needed) #------------------------------------------------------------------------ HDF5INC = -I/usr/local/include HDF5LIB = /usr/local/lib/libhdf5.a SZIPLIB = ZLIBLIB = -lz #------------------------------------------------------------------------ # SPACE - used to force a space in the compiler executable output flag # O - object file extension (typicaly o) # A - library file extension (typically a) # EXE - executable extension (typically blank) # LIBCGNS - CGNS library name #------------------------------------------------------------------------ SPACE = O = o A = so EXE = LIBCGNS = DARWIN/libcgns.so #------------------------------------------------------------------------ # CC - C compiler # CFLAGS - compiler flags # COOUT - flag to name the object output (typically -o). # CEOUT - flag to name the output executable (typically -o). # CLIBS - any additional libraries needed to link a CGNS application #------------------------------------------------------------------------ CC = cc CFLAGS = -fno-common COOUT = -o $(SPACE) CEOUT = -o $(SPACE) CLIBS = -lm $(PTHREAD_LIBS) #------------------------------------------------------------------------ # F2CFLAGS defines the type of Fortran to C interface. # -DUSE_ADF_MACROS causes the ADF Fortran to C interface to use # the old ADF macros instead of the same macros as the CGNS library. # The Fortran module name for Cray, VMS and Windows are set internally, # everything else is handled by setting F2CFLAGS to one of: # -DUPPERCASE : names are uppercase # -DUPPERCASE_ : names are uppercase followed by underscore # -DUPPERCASE__ : names are uppercase followed by 2 underscores # -DLOWERCASE : names are lowercase # -DLOWERCASE_ : names are lowercase followed by underscore # -DLOWERCASE__ : names are lowercase followed by 2 underscores # If not specified, LOWERCASE_ is assumed. # # CFGFLAGS defines any additional compiler options needed to build # the CGNS library. This is typically set by the configure script. #------------------------------------------------------------------------ F2CFLAGS = -DLOWERCASE_ CFGFLAGS = -fPIC #------------------------------------------------------------------------ # strip command for executables - set to true if not used #------------------------------------------------------------------------ STRIP = strip #------------------------------------------------------------------------ # library archiver and ranlib # AROUT may be used to set a library output flag as: # $(AR) $(AROUT)library_name objects # Set RANLIB to true if not used #------------------------------------------------------------------------ AR = $(CC) -shared -Wl,-rpath,/mnt/gmirror/ports/science/cgnslib/work/cgnslib_2.5/$(SYSTEM) AROUT = -o $(SPACE) RANLIB = $(STRIP) #------------------------------------------------------------------------ # commands for removing files and creating/deleting directory #------------------------------------------------------------------------ RM = /bin/rm -f RMDIR = /bin/rm -rf MKDIR = mkdir #------------------------------------------------------------------------ # installation library name and directories # # INSTALL - install command # INSTALL_PROG - install executable # INSTALL_DATA - install data # LIBDIR - installation directory for CGNS library # INCLUDEDIR - installation directory for CGNS headers #------------------------------------------------------------------------ INSTALL = /usr/bin/install -c -o root -g wheel INSTALL_PROG = install -s -o root -g wheel -m 555 INSTALL_DATA = install -o root -g wheel -m 444 LIBDIR = /usr/local/lib INCLUDEDIR = /usr/local/include #------------------------------------------------------------------------ # These are not used to build the CGNS library. # Fortran compiler (F77) and options (FFLAGS). # FEOUT is the flag to name the output executable (typically -o). # FLIBS lists any additional libraries needed to link a CGNS application #------------------------------------------------------------------------ F77 = gfortran42 FFLAGS = FEOUT = -o $(SPACE) FLIBS = $(PTHREAD_LIBS)