# $Id$
#
# Imakefile for xvgr Release 2.0+
#

#include <XView.tmpl>

# you may wish to change these
##################################

LOCAL_LIBRARIES = -lxview -lolgx -lX11 -lm

#################################

####### Select hardcopy options ########
#
# Step 1.
#
# 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


# Step 2.
#
# 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
# in the drivers found in hp.c (7550 and HPGL in general),  
# ps.c (PostScript), and mif.c (Maker Interchange format).
# 
# For Postscript
# 
PS_PRSTR = -DPS_PRSTR='"lpr -h "'
# 
# For FrameMaker MIF format (really goes to a file)
# 
#MIF_PRSTR = -DMIF_PRSTR='"cat >xvgr.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)
#
#LEAF_PRSTR = -DLEAF_PRSTR='"cat >xvgr.leaf < "'

# Step 3.
#
# Xvgr 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

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

EXTRA_DEFINES = -DXVIEW $(INCLUDES) $(MAXARR) $(HARDCOPYDEV) \
	$(PS_PRSTR) $(MIF_PRSTR) $(HP_PRSTR1)

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

#define HasInfoFiles YES

INFOFILES = xvgr.info

SRCS =  main.c\
	xvgr.c\
	events.c\
	alerts.c\
	fileswin.c\
	blockwin.c\
	eblockwin.c\
	printwin.c\
	drawwin.c\
	propswin.c\
	pagewin.c\
	miscwin.c\
	parmsiowin.c\
	comwin.c\
	compwin.c\
	setwin.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\
	monwin.c\
	stubs.c\
	plotone.c\
	files.c\
	utils.c\
	drawticks.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\
	draw.c\
	ps.c\
	mif.c\
	hp.c\
	leaf.c\
	chersh.c\
	pars.c

OBJS =  main.o\
	xvgr.o\
	events.o\
	alerts.o\
	fileswin.o\
	blockwin.o\
	eblockwin.o\
	printwin.o\
	drawwin.o\
	propswin.o\
	pagewin.o\
	miscwin.o\
	parmsiowin.o\
	comwin.o\
	compwin.o\
	setwin.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\
	monwin.o\
	plotone.o\
	stubs.o\
	files.o\
	utils.o\
	drawticks.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\
	draw.o\
	ps.o\
	mif.o\
	hp.o\
	leaf.o\
	chersh.o\
	pars.o

AllTarget(xvgr)

pars.c pars.h:: pars.yacc
	bison -d -o pars.c pars.yacc

depend:: pars.c pars.h

ComplexProgramTarget(xvgr)

#include <XView.prog>
