# CHARMM makefile for HP-UX Itaniums 
ROOT = rootdir
SRC = $(ROOT)/source
FLX = $(ROOT)/tool/preflx
LIB = $(ROOT)/lib/hpitanium
EXEC = $(ROOT)/exec/hpitanium
FC = f90 +U77
CC = cc -Dhpitanium
# SRB Aug 2003. According to the web page compilation may require
# -D__HPLX -I/usr/local/hplx/include -L/usr/local/hplx/lib -lhplx.1 -lsec
# http://devrsrc1.external.hp.com/STKL/impacts/i21.htm
# We use the hplx library only to link setlinebuf.
LD = f90 +U77 -L/usr/local/hplx/lib/hpux32 -lhplx -lsec
GLIB = 
RANLIB = touch
QLIB =
.SUFFIXES: .fcm .src .o
VPATH = fcm
FC0 = $(FC) -c 
FC1 = $(FC) -c +Ofast
FC2 = $(FC) -c +Ofast
FC3 = $(FC) -c +Ofaster
FCR = $(FC) -c +Ofast
FCD = $(FC) -c -g
FCRD = $(FC) -c -g
LIBS = \
	$(LIB)/adumb.a \
	$(LIB)/cadint.a \
	$(LIB)/cff.a \
	$(LIB)/correl.a \
	$(LIB)/dimb.a \
	$(LIB)/dynamc.a \
	$(LIB)/energy.a \
	$(LIB)/gamint.a \
	$(LIB)/gener.a \
	$(LIB)/graphics.a \
	$(LIB)/gukint.a \
	$(LIB)/image.a \
	$(LIB)/io.a \
	$(LIB)/machdep.a \
	$(LIB)/manip.a \
	$(LIB)/mbond.a \
	$(LIB)/mc.a \
	$(LIB)/minmiz.a \
	$(LIB)/misc.a \
	$(LIB)/mmff.a \
	$(LIB)/moldyn.a \
	$(LIB)/molvib.a \
	$(LIB)/nbonds.a \
	$(LIB)/pert.a \
	$(LIB)/quantum.a \
	$(LIB)/rxncor.a \
	$(LIB)/shapes.a \
	$(LIB)/solvation.a \
	$(LIB)/util.a \
	$(LIB)/vibran.a

$(EXEC)/charmm : $(LIB)/stamp $(LIBS)
	$(LD) -o charmm.exe $(LIB)/*.o $(LIBS) $(LIBS) $(GLIB) $(QLIB)
