Newer
Older
X11 = /usr/lpp/X11
WSMP_DIR = /home/beaumnt1/software/wsmp/lib/Power4
# for 32 bit compile
AR=ar
BITS=-q32
OPTIONS = -bmaxdata:0x80000000 -bhalt:0 -bnoquiet
PGPLOT = /home/beaumnt1/software/pgplot-5.2.2
WSMP_LIB = -L$(WSMP_DIR) -lpwsmp
# for 64 bit compile
# AR=ar -X 64
# BITS=-q64
# OPTIONS = -b 64 -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
# take -qextchk out for the final compile
FLAGS = -O2 -qmaxmem=-1 -qstrict -Q $(BITS) -qarch=pwr4 -qtune=pwr4 \
-qfloat=nomaf:nofold:norsqrt:strictnmaf \
-qflttrap=overflow:underflow:zerodivide:invalid:inexact:enable \
-qsigtrap \
# take -qextchk out for the final compile
CFLAGS = -O2 -qstrict -Q $(BITS) -qarch=pwr4 -qtune=pwr4 \
-qfloat=nomaf:nofold:norsqrt \
-qflttrap=overflow:underflow:zerodivide:invalid:inexact:enable \
LIBS = \
-LOCTREE -lOctree \
-LNN -lnn \
-LCASCADE -lcascade \
-LRESAMPLE -lresample \
.SUFFIXES:
.SUFFIXES: .o .c .f .f90
.f90.o:
@echo "--" >>$(COMPILE_OUT) 2>&1
@echo "$(F90) -qsuffix=f=f90 $(FFLAGS) $(INCLUDE) -c $<" >>$(COMPILE_OUT) 2>&1
$(F90) -qsuffix=f=f90 $(FLAGS) $(INCLUDE) -c $< >>$(COMPILE_OUT) 2>&1
@echo "$(F77) -qsuffix=f=f $(FFLAGS) -c $<" >>$(COMPILE_OUT) 2>&1
$(F77) -qsuffix=f=f $(FLAGS) -c $< >>$(COMPILE_OUT) 2>&1
@echo "--" >>$(COMPILE_OUT) 2>&1
@echo "cc is `which cc`" >>$(COMPILE_OUT) 2>&1