vasp.4.lib Makefile FOR HITACHI SR11000
Posted: Mon Jan 16, 2006 7:01 am
.SUFFIXES: .inc .f .F
#-----------------------------------------------------------------------
# Makefile for IBM RS6000
#-----------------------------------------------------------------------
# C-preprocessor
CPP = /usr/ccs/lib/cpp -P -C $*.F >$*.f
FC=f90
CFLAGS = -O -q64
FFLAGS = -Os -noparallel -nolimit -noscope
FREE = -free
DOBJ = preclib.o timing.o derrf.o dclock.o diolib.o dlexlib.o drdatab.o
#-----------------------------------------------------------------------
# general rules
#-----------------------------------------------------------------------
libdmy.a: $(DOBJ) lapack_double.o linpack_double.o
-rm libdmy.a
ar -X64 vq libdmy.a $(DOBJ)
# files which do not require autodouble
lapack_double.o: lapack_double.f
$(FC) $(FFLAGS) $(NOFREE) -c lapack_double.f
lapack_single.o: lapack_single.f
$(FC) $(FFLAGS) $(NOFREE) -c lapack_single.f
linpack_double.o: linpack_double.f
$(FC) $(FFLAGS) $(NOFREE) -c linpack_double.f
linpack_single.o: linpack_single.f
$(FC) $(FFLAGS) $(NOFREE) -c linpack_single.f
.c.o:
$(CC) $(CFLAGS) -c $*.c
.F.o:
$(CPP)
$(FC) $(FFLAGS) $(FREE) $(INCS) -c $*.f
.F.f:
$(CPP)
.f.o:
$(FC) $(FFLAGS) $(FREE) $(INCS) -c $*.f
#-----------------------------------------------------------------------
# Makefile for IBM RS6000
#-----------------------------------------------------------------------
# C-preprocessor
CPP = /usr/ccs/lib/cpp -P -C $*.F >$*.f
FC=f90
CFLAGS = -O -q64
FFLAGS = -Os -noparallel -nolimit -noscope
FREE = -free
DOBJ = preclib.o timing.o derrf.o dclock.o diolib.o dlexlib.o drdatab.o
#-----------------------------------------------------------------------
# general rules
#-----------------------------------------------------------------------
libdmy.a: $(DOBJ) lapack_double.o linpack_double.o
-rm libdmy.a
ar -X64 vq libdmy.a $(DOBJ)
# files which do not require autodouble
lapack_double.o: lapack_double.f
$(FC) $(FFLAGS) $(NOFREE) -c lapack_double.f
lapack_single.o: lapack_single.f
$(FC) $(FFLAGS) $(NOFREE) -c lapack_single.f
linpack_double.o: linpack_double.f
$(FC) $(FFLAGS) $(NOFREE) -c linpack_double.f
linpack_single.o: linpack_single.f
$(FC) $(FFLAGS) $(NOFREE) -c linpack_single.f
.c.o:
$(CC) $(CFLAGS) -c $*.c
.F.o:
$(CPP)
$(FC) $(FFLAGS) $(FREE) $(INCS) -c $*.f
.F.f:
$(CPP)
.f.o:
$(FC) $(FFLAGS) $(FREE) $(INCS) -c $*.f