Newer
Older
# The Makefiles look at compile output with this
PAGER=more
# AR=ar
# BITS=-q32
# OPTIONS = -bmaxdata:0x80000000 -bhalt:0 -bnoquiet
# PGPLOT = /home/beaumnt1/software/pgplot-5.2.2
# WSMP_LIB = -L$(WSMP_DIR) -lpwsmp
# FLG64=
OPTIONS = -b64 -bmaxdata:0x80000000 -bhalt:0 -bnoquiet
PGPLOT = /home/beaumnt1/software/pgplot-5.2.2-q64
WSMP_LIB = -L$(WSMP_DIR) -lpwsmp64
# FLAGS = -O3 -qstrict -Q -qarch=auto -qtune=auto -qfloat=nomaf:nofold
# douar bombs quickly; removing qflttrap=inexact
# -qport options might be worth looking at later
# -qwarn64 casues interesting messages in NN
#
# for xlf 8.1
# -qflttrap=overflow:underflow:zerodivide:invalid:enable
# for xlf 10.1
# -qflttrap=overflow:underflow:zerodivide:invalid:NANQ:enable
# Need -qhalt=s, else the compiler stops on the multiple errors from MPI calls.
# For no optimzation, use "-O0" and remove "-qstrict"
FFLAGS = -g -O2 -qstrict -Q $(BITS) $(FLG64) -qarch=auto -qtune=auto \
-qmaxmem=-1 \
-qcheck -qwarn64 \
-qfloat=nomaf:nofold:norsqrt:strictnmaf \
-qflttrap=overflow:underflow:zerodivide:invalid:NANQ:enable \
# For no optimzation, remove the "-O" option and remove "-qstrict"
CFLAGS = -g -O2 -qstrict -Q $(BITS) $(FLG64) -qarch=auto -qtune=auto \
-qcheck -qwarn64 \
-qfloat=nomaf:nofold:norsqrt \
-qflttrap=overflow:underflow:zerodivide:invalid:enable \
-qhalt=e -qextchk
# full speed ahead and damn the torpedos..................
#
# FFLAGS = -O2 -qstrict -Q $(BITS) $(FLG64) -qarch=auto -qtune=auto \
# -qmaxmem=-1 \
# -qfloat=nomaf:nofold:norsqrt:strictnmaf \
# -qhalt=e
# CFLAGS = -O2 -qstrict -Q $(BITS) $(FLG64) -qarch=auto -qtune=auto \
# -qfloat=nomaf:nofold:norsqrt \
# -qhalt=e
@echo "--" >>$(COMPILE_OUT) 2>&1
@echo "OBJECT_MODE should be 64, is ${OBJECT_MODE}" >>$(COMPILE_OUT) 2>&1
@echo "xlf is `which xlf`" >>$(COMPILE_OUT) 2>&1
@echo "$(F90) -qsuffix=f=f90 $(FFLAGS) -c $<" >>$(COMPILE_OUT) 2>&1
$(F90) -qsuffix=f=f90 $(FFLAGS) -c $< >>$(COMPILE_OUT) 2>&1
@echo "--" >>$(COMPILE_OUT) 2>&1
@echo "OBJECT_MODE should be 64, is ${OBJECT_MODE}" >>$(COMPILE_OUT) 2>&1
@echo "xlf is `which xlf`" >>$(COMPILE_OUT) 2>&1
@echo "$(F77) -qsuffix=f=f $(FFLAGS) -c $<" >>$(COMPILE_OUT) 2>&1
$(F77) -qsuffix=f=f $(FFLAGS) -c $< >>$(COMPILE_OUT) 2>&1
@echo "--" >>$(COMPILE_OUT) 2>&1
@echo "OBJECT_MODE should be 64, is ${OBJECT_MODE}" >>$(COMPILE_OUT) 2>&1
@echo "$(CC) $(CFLAGS) -c $<" >>$(COMPILE_OUT) 2>&1
$(CC) $(CFLAGS) -c $< >>$(COMPILE_OUT) 2>&1
# Libraries................
#
# libs removed on p690...
# -lacml
LIBS = \
-LOCTREE -lOctree$(BITS) \
-LNN -lnn_f$(BITS) \
-LNN -lnn_c$(BITS) \
-LCASCADE -lcascade$(BITS) \
-L$(PGPLOT) -lpgplot \
-L/usr/lpp/X11 -lX11 \
$(WSMP_LIB) \
-LRESAMPLE -lresample$(BITS) \
-lpthread -lhm -lhu -lm_r