Newer
Older
#
# I would like to add -u here, but Wow! Just try it.
# FFLAGS = -O3 -qstrict -Q -qarch=auto -qtune=auto -qfloat=nomaf:nofold
# Trouble on the p690; time to get serious.
FFLAGS = -O2 -qmaxmem=-1 -qstrict -Q -q64 -b64 -qarch=pwr4 -qtune=pwr4 \
-qfloat=nomaf:nofold:norsqrt:strictnmaf \
-qflttrap=overflow:underflow:zerodivide:invalid:inexact:enable \
-qsigtrap \
-qhalt=e \
-qextchk
# Define C compiler flags
CFLAGS = -O2 -qstrict -Q -q64 -qarch=pwr4 -qtune=pwr4 \
-qfloat=nomaf:nofold:norsqrt \
-qflttrap=overflow:underflow:zerodivide:invalid:inexact:enable \
-qsigtrap \
-qhalt=e \
-qextchk
# define pgplot
# pgplot - 32bit
# PGPLOT = /home/beaumnt1/software/pgplot-5.2.2
# pgplot - 64bit
PGPLOT = /home/beaumnt1/software/pgplot-5.2.2-q64
# define X11
# define wsmp
WSMP_DIR = /home/beaumnt1/software/wsmp/lib/Power4
# wsmp - 32bit
# WSMP_LIB = -L$(WSMP_DIR) -lpwsmp
# wsmp - 64bit
WSMP_LIB = -L$(WSMP_DIR) -lpwsmp64
LIBS = \
-LOCTREE -lOctree \
-LNN -lnn \
-LCASCADE -lcascade \
-LRESAMPLE -lresample \
OPTIONS = -bmaxdata:0x80000000 -bhalt:0 -bnoquiet
# compile rules
#
COMPILE_OUT=$(NAME).compile
.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 $(FFLAGS) $(INCLUDE) -c $< >>$(COMPILE_OUT) 2>&1
.f.o:
@echo "--" >>$(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
.c.o:
@echo "--" >>$(COMPILE_OUT) 2>&1
@echo "$(CC) $(CFLAGS) -c $<" >>$(COMPILE_OUT) 2>&1
$(CC) $(CFLAGS) -c $< >>$(COMPILE_OUT) 2>&1