# $Id: Imakefile,v 1.2 1994/05/30 19:06:50 pturner Exp pturner $
#
# Imakefile for xmgr Release 2.0
#

# you may wish to change these
##################################
XLIB = -lX11
LOCAL_LIBRARIES = -lXm -lXt -lPW
LDLIBS = $(XLIB) -lm
DEPLIBS = 
#################################

#################################
# Select a default hardcopy device
#
# The default is PostScript landscape using "lpr -h" to spool
#
#
# To install the default hardcopy device uncomment ONE of the
# following (HARDCOPYDEV lines), the hardcopy device can also 
# be set using environment variables, and on the command line:
#
# PostScript landscape [device number 1]
HARDCOPYDEV = -DHDEV=GR_PS_L 
#
# PostScript portrait [device number 2]
#HARDCOPYDEV = -DHDEV=GR_PS_P 
#
# FrameMaker MIF landscape [device number 3]
#HARDCOPYDEV = -DHDEV=GR_MIF_L 
#
# FrameMaker MIF landscape [device number 4]
#HARDCOPYDEV = -DHDEV=GR_MIF_P 
#
#  HP 8.5x11 landscape [device number 5]
#HARDCOPYDEV = -DHDEV=GR_HPGL_L
#
#  HP 8.5x11 Portrait [device number 6]
#HARDCOPYDEV = -DHDEV=GR_HPGL_P
#
# InterLeaf landscape [device number 7]
#HARDCOPYDEV = -DHDEV=GR_LEAF_L
#
# InterLeaf portrait [device number 8]
#HARDCOPYDEV = -DHDEV=GR_LEAF_P

#######################################################
#
# Install a printer
#
# To install the printer for the hardcopy devices above
# set the following to the appropriate values for your site.
# These can also be set by environment variables. The current
# definitions of these variables are the same as the definitions
# found in ps.c (PostScript), and mif.c (Maker Interchange format).
#
# NOTE: if you use lp (as on Solaris 2.x, IRIX, and other System V systems),
#       add the -c option or xmgr will erase the temporary file
#       before lp can spool it -> "lp -c "
# 
# For Postscript
# 
PS_PRSTR = -DPS_PRSTR='"lpr -h "'
#PS_PRSTR = -DPS_PRSTR='"lp -c "'
# 
# For FrameMaker MIF format (really goes to a file)
# 
#MIF_PRSTR = -DMIF_PRSTR='"cat >xmgr.mif < "'
# 
#
# For HPGL
# The driver will work for most (probably all) HPGL devices
#
#HP_PRSTR1 = -DHP_PRSTR1='"/usr/ucb/lpr -Php -h"'
#
# For InterLeaf format (really goes to a file)
#
#MIF_PRSTR = -DMIF_PRSTR='"cat >xmgr.leaf < "'

################################
#
# scratch array size
#
# Xmgr uses 4 scratch arrays, designated in the function that
# interprets expressions as a, b, c, and d. MAXARR is the amount
# of memory that will be allocated for these arrays and at present
# there is no provision for dynamically extending the length of these 
# arrays. This sets a limit on the length of a set inasmuch
# as no operation between sets and the scratch arrays should exceed 
# this amount. MAXARR does NOT set a limit on the size of a set, on our 
# Sun4 (32Mb) we run MAXARR = 60000, I've plotted data sets in excess 
# of 700k points.
#
MAXARR = -DMAXARR=20480

#
# Set directory for the installation of online help. To use this
# feature, it is required to have NCSA's XMosaic. This can also be set
# using the environment variable GR_HELP
#
HELPFILE = -DGR_HELPFILE='"ACEgr.html"'

###############################
# End installation parameters #
###############################

CCOPTIONS = -O $(INCLUDES) $(MAXARR) $(HARDCOPYDEV) $(PS_PRSTR) $(MIF_PRSTR) $(HP_PRSTR1) $(LEAF_PRSTR) $(HELPFILE)

# pars.c is now built outside this Makefile
# YFLAGS = -yt

SRCS =  main.c\
	xmgr.c\
	events.c\
	malerts.c\
	fileswin.c\
	blockwin.c\
	eblockwin.c\
	printwin.c\
	drawwin.c\
	comwin.c\
	compwin.c\
	setwin.c\
	hotwin.c\
	ptswin.c\
	editpwin.c\
	regionwin.c\
	statuswin.c\
	symwin.c\
	tickwin.c\
	graphwin.c\
	worldwin.c\
	strwin.c\
	labelwin.c\
	locatewin.c\
	framewin.c\
	pagewin.c\
	monwin.c\
	helpwin.c\
	nonlwin.c\
	miscwin.c\
	stubs.c\
	plotone.c\
	files.c\
	utils.c\
	drawticks.c\
	lmdif1.c\
	fit.c\
	fourier.c\
	io.c\
	graphutils.c\
	graphutils2.c\
	setutils.c\
	setprops.c\
	regionutils.c\
	objutils.c\
	computils.c\
	defaults.c\
	checkon.c\
	params.c\
	getparms.c\
	compute.c\
	xvlib.c\
	image_f_io.c\
	draw.c\
	ps.c\
	mif.c\
	leaf.c\
	hp.c\
	chersh.c\
	pars.c\
	motifutils.c

OBJS =  main.o\
	xmgr.o\
	events.o\
	malerts.o\
	fileswin.o\
	blockwin.o\
	eblockwin.o\
	printwin.o\
	drawwin.o\
	comwin.o\
	compwin.o\
	setwin.o\
	hotwin.o\
	ptswin.o\
	editpwin.o\
	regionwin.o\
	statuswin.o\
	symwin.o\
	tickwin.o\
	graphwin.o\
	worldwin.o\
	strwin.o\
	labelwin.o\
	locatewin.o\
	framewin.o\
	pagewin.o\
	monwin.o\
	helpwin.o\
	nonlwin.o\
	miscwin.o\
	stubs.o\
	plotone.o\
	files.o\
	utils.o\
	drawticks.o\
	lmdif1.o\
	fit.o\
	fourier.o\
	io.o\
	graphutils.o\
	graphutils2.o\
	setutils.o\
	setprops.o\
	regionutils.o\
	objutils.o\
	computils.o\
	defaults.o\
	checkon.o\
	params.o\
	getparms.o\
	compute.o\
	xvlib.o\
	image_f_io.o\
	draw.o\
	ps.o\
	mif.o\
	leaf.o\
	hp.o\
	chersh.o\
	pars.o\
	motifutils.o

# for printing and making a distribution
#
INCS = defines.h externs.h globals.h pars.h xmgr_icon.h symdefs.h\
	 f2c.h bitmaps.h patterns.h patchlevel.h
HERSHINCS = hersh.h symdef.h special.h
DISTDIR = xmgr-3.00beta

ComplexProgramTarget(xmgr)

#
# pars.c is built outside this makefile
# use bison or byacc if the supplied yacc is unable to
# handle the grammar in pars.yacc
pars.o: pars.c

xmgr.o: defines.h globals.h
main.o: defines.h globals.h
calc.o: defines.h globals.h
compute.o: defines.h globals.h
fit.o: defines.h
files.o: defines.h globals.h
io.o: defines.h

params.o: defines.h globals.h 
getparams.o: defines.h globals.h 

plotone.o: defines.h globals.h symdefs.h
drawticks.o: defines.h globals.h 

utils.o: defines.h globals.h
setutils.o: defines.h globals.h
regionutils.o: defines.h globals.h
graphutils.o: defines.h globals.h
graphutils2.o: defines.h globals.h
objutils.o: defines.h globals.h 
stubs.o: defines.h globals.h

checkon.o: defines.h globals.h 

#
# user interface
#
graphwin.o: defines.h globals.h
compwin.o: defines.h globals.h
setwin.o: defines.h globals.h
framewin.o: defines.h globals.h
strwin.o: defines.h globals.h
worldwin.o: defines.h globals.h
symwin.o: defines.h globals.h
ptswin.o: defines.h globals.h
editpwin.o: defines.h globals.h
drawwin.o: defines.h globals.h
statuswin.o: defines.h globals.h
printwin.o: defines.h globals.h
labelwin.o: defines.h globals.h
locatewin.o: defines.h globals.h
fileswin.o: defines.h globals.h
comwin.o: defines.h globals.h

defaults.o: defines.h globals.h

#
# graphics drivers
#
chersh.o: hersh.h special.h
draw.o: symdefs.h
mif.o: externs.h
ps.o: externs.h
xvlib.o: externs.h

globals.h: pars.h
