# Imakefile
# RasMol2 Molecular Graphics
# Roger Sayle, December 1998
# Version 2.6.4

# DEPTHDEF = -DTHIRTYTWOBIT
# DEPTHDEF = -DSIXTEENBIT
DEPTHDEF = -DEIGHTBIT

# RasMol's on-line help direcory
#   e.g. /usr/local/lib/rasmol/rasmol.hlp
RASMOLDIR = $(USRLIBDIR)/rasmol/



DEFINES = -DRASMOLDIR=\"$(RASMOLDIR)\" $(DEPTHDEF)

SRCS = rasmol.c rasmol.h molecule.c molecule.h abstree.c abstree.h \
       cmndline.c cmndline.h command.c command.h tokens.h transfor.c \
       transfor.h render.c render.h x11win.c graphics.h pixutils.c \
       pixutils.h font.h outfile.c outfile.h scripts.c scripts.h infile.c \
       infile.h repres.c repres.h tokens.c

OBJS = rasmol.o molecule.o abstree.o cmndline.o command.o transfor.o \
       render.o repres.o x11win.o pixutils.o outfile.o scripts.o \
       infile.o tokens.o

# Previous Risc/Os definition
# LDLIBS = -lm -lXinput $(XLIB)

# Additional RS6000 AIX MITSHM Library
# LDLIBS = -lm -lXi -lXextSam $(XLIB)

LDLIBS = -lm -lXi $(XLIB) $(EXTRA_LIBRARIES)


#
# Architecture Specific Rules
#

#ifdef HPArchitecture
CCOPTIONS = -Ae
CDEBUGFLAGS = +O2 +Onolimit
#endif


ComplexProgramTarget(rasmol)
MakeDirectories(install,$(RASMOLDIR))
InstallNonExec(rasmol.hlp,$(RASMOLDIR))
InstallNonExec(data/1crn.pdb,$(RASMOLDIR))
InstallNonExec(data/3cro.pdb,$(RASMOLDIR))

rasmol.man::	doc/rasmol.1
		ln -s doc/rasmol.1 rasmol.man

