#  @(#)Makeinclude.hp	8.6 AVS 93/02/04
#  		Copyright (c) 1991,1992 by
#  		Advanced Visual Systems Inc.
#  		All Rights Reserved
#  
#  This software comprises unpublished confidential information of
#  Stardent Computer Inc. and may not be used, copied or made
#  available to anyone, except in accordance with the license
#  under which it is furnished.
#  
#	
SHELL=/bin/sh
F77=fort77
FC=$(F77)

# Note: when compiling on HPUX 9.0 systems, you will have to change 
# XDIRECTORY to X11R5.  Just comment out the X11R4 line, and take the
# comment character out from in front of the X11R5 line.
#
#XDIRECTORY=X11R4
XDIRECTORY=X11R5

ALKFLAGS = -L/usr/lib/$(XDIRECTORY)
ACFLAGS= $(G) -O -I/usr/include/$(XDIRECTORY)
AOPTCFLAGS= $(G) -O -I/usr/include/$(XDIRECTORY)
ADBCFLAGS=-g 
ADBFFLAGS=-g 
#
# +E1 allows access to industry standard intrinsic routines (eg. exit)
# +ppu postpends an underscore on externally visible symbols
AFFLAGS= $(G) +E1 +ppu
AOPTFFLAGS= $(G) +E1 +ppu
AASFLAGS= 
CP=cp -p
PORT=hp
GLIB=phigs
GLIB2=phigs
AVSX=
AR= ar
RL=echo
F77_BIND_FLAGS=-name both -case lower -suffix _
F77_BIND_EXT=+external
SUBRARGS_FLAG=-DUNLIMITED_SUBRARGS -DCOROUT_VARARGS -DF77NAME_LOWER_
#
# Use this so exc_brick will link
STATICFLAG=-L/usr/lib/$(XDIRECTORY)
#
# AVS_X11LIBS should be used when linking an executable requiring the X11
#   libraries since the actual libraries needed vary from one port to another
#
AVS_X11LIBS=-L/usr/lib/$(XDIRECTORY) -lX11
#
# -lV3 is to link the SYSV libraries needed for signal handling
#
# Use old malloc library for AVS3 release
LICLIBS=
#Note: don't put lmalloc3x in LASTLIBS - see Makeinclude.gs
#LASTLIBS=-L/usr/old -lmalloc3x -L/usr/lib/$(XDIRECTORY) -lX11 -lV3
LASTLIBS=-L/usr/lib/$(XDIRECTORY) -lX11 -lV3
LASTFLIBS=$(LASTLIBS)
MODTARGET=multi
.c.ln:
	$(LINT) $(LINTFLAGS) $(AVS_INC) $<

# Sub directory containing machine optimized tracer code
TRACE_DIR= generic
F77PTRS=no