# -----------------------------------------------------------------------
# $Id: Makefile,v 1.1 1994/09/06 01:57:53 mjl Exp $
#
# Maurice LeBrun
# IFS, University of Texas at Austin
# 14-Jul-1994
#
# Basic make assignments for PLplot under Unix (driven by "configure").
# These are used in both the library and demo Makefiles.
# -----------------------------------------------------------------------

# Utilities

CC		= sc
LDC		= slink 
LIBC		= lib:sc.lib lib:amiga.lib
M4		= m4
LN		= copy

# Uncomment this for debugging
# DEBUG_FLAG_C	= dbg=symbol

# Uncomment this for optimization
# OPT_FLAG_C	= optimize

# Need to fill these in correctly if ever use f2c as a fortran compiler

F77		= f77
F77_FLAGS	= -c
LDF		= $(F77)
LDF_FLAGS	= 

# Flags and other miscellanea

LDC_FLAGS	= 
STARTUP 	= lib:c.o
TO		= to
O		= .o
E		=

# Install directories

LIB_DIR		= plplot:lib
DOC_DIR		= plplot:doc
BIN_DIR		= plplot:bin
INFO_DIR	= plplot:info
INCLUDE_DIR	= plplot:include
DEMOS_DIR	= plplot:demos

# Distribution directories

PLINC_DIR = /include
PLLIB_DIR = /lib
PLFNT_DIR = /lib
PLLIB_PATH = $(PLLIB_DIR)/
PLFNT_PATH = $(PLFNT_DIR)/

# Math settings

MATHFLAGS	= math=ieee
LIBM		= lib:scmieee.lib
PLLIB		= $(PLLIB_PATH)plplotf.lib

# -----------------------------------------------------------------------
# $Id: Makefile,v 1.1 1994/09/06 01:57:53 mjl Exp $
#
# Maurice LeBrun
# IFS, University of Texas at Austin
# 22-Jul-1994
#
# PLplot source and object file lists.
# -----------------------------------------------------------------------

# The default target -- a convenient forward reference

default: everything

# Core library files.

CORE_C = \
	pdfutils.c \
	plargs.c \
	plbox.c \
	plcont.c \
	plcore.c \
	plctrl.c \
	plcvt.c \
	pldtik.c \
	plfill.c \
	plfont.c \
	plhist.c \
	plline.c \
	plmap.c \
	plot3d.c \
	plpage.c \
	plsdef.c \
	plshade.c \
	plstream.c \
	plstring.c \
	plsym.c \
	pltick.c \
	plvpor.c \
	plwind.c 

CORE_OBJ = \
	pdfutils$O \
	plargs$O \
	plbox$O \
	plcont$O \
	plcore$O \
	plctrl$O \
	plcvt$O \
	pldtik$O \
	plfill$O \
	plfont$O \
	plhist$O \
	plline$O \
	plmap$O \
	plot3d$O \
	plpage$O \
	plsdef$O \
	plshade$O \
	plstream$O \
	plstring$O \
	plsym$O \
	pltick$O \
	plvpor$O \
	plwind$O 

# Support files for font generators.

FONT_OBJ = \
	font01$O \
	font02$O \
	font03$O \
	font04$O \
	font05$O \
	font06$O \
	font07$O \
	font08$O \
	font09$O \
	font10$O \
	font11$O

# Drivers

DRIVERS_C = \
	dg300.c \
	hpgl.c \
	impress.c \
	ljiip.c \
	ljii.c \
	next.c \
	null.c \
	plbuf.c \
	plmeta.c \
	ps.c \
	tek.c \
	xfig.c \
	xwin.c

DRIVERS_OBJ = \
	dg300$O \
	hpgl$O \
	impress$O \
	ljiip$O \
	ljii$O \
	next$O \
	null$O \
	plbuf$O \
	plmeta$O \
	ps$O \
	tek$O \
	xfig$O \
	xwin$O

# Utilities

UTIL_C = \
	plrender.c \
	plserver.c \
	pltcl.c 

# Fortran language stubs for linking Plplot to Fortran.
# I keep these dependencies here because (a) they use an implicit build
# rule, and (b) can't easily be autogenerated.

strutil$O:	strutil.f
sfstubs$O:	sfstubs.f
sfstubs.f:	sfstubs.fm4 fmacs.m4

# -----------------------------------------------------------------------
# $Id: Makefile,v 1.1 1994/09/06 01:57:53 mjl Exp $
#
# Maurice LeBrun
# IFS, University of Texas at Austin
# 24-Jul-1994
#
# Initializations for building PLplot library.
# -----------------------------------------------------------------------

# Compiler flags

CC_FLAGS	= $(MATHFLAGS) $(DBL_FLAG_C) nover $(DEBUG_FLAG_C) \
		  idir=$(PLINC_DIR) $(OPT_FLAG_C) gst=plplot.gst \
		  ign=84,88,89,147,161 

CC_FLAGS_DEMOS	= $(CC_FLAGS)

# Default is to build library(s) and utils.

everything: libs plrender$E $(TCL_EXE) 

# Clear the suffix list to prevent problems.

.SUFFIXES:
.SUFFIXES: $O .cc .c .f .h .fm4

# Inference rules, not specific to archive or shared libraries.

.fm4.f:
	$(M4) $(M4_FLAGS) $< >$*.f

# -----------------------------------------------------------------------
# Amiga-specific files
# -----------------------------------------------------------------------

AMIGA_OBJ = \
	pla_wn.o \
	pla_pr.o \
	pla_iff.o \
	pla_menu.o \
	plsupport.o 

# -----------------------------------------------------------------------
# Amiga-specific dependencies
# -----------------------------------------------------------------------

pla_pr.o:	plplotP.h plplot.h drivers.h pdf.h plstream.h plamiga.h \
		pla_pr.c
pla_iff.o:	plplotP.h plplot.h drivers.h pdf.h plstream.h plamiga.h \
		pla_iff.c
pla_menu.o:	plplotP.h plplot.h plamiga.h pla_menu.c
plsupport.o:	plplotP.h plplot.h plamiga.h plsupport.c
pla_wn.o:	plplotP.h plplot.h drivers.h pdf.h plstream.h plamiga.h \
		pla_wn.c

# -----------------------------------------------------------------------
# This builds a SAS/C 6.x global symbol table to speed up compilation.
# -----------------------------------------------------------------------

plplot.gst:	plplotP.h plplot.h plamiga.h
	gst unload plplot.gst
	$(CC) makegst plplot.gst $(CC_FLAGS) pla_gstskel.c

# -----------------------------------------------------------------------
# $Id: Makefile,v 1.1 1994/09/06 01:57:53 mjl Exp $
#
# Maurice LeBrun
# IFS, University of Texas at Austin
# 14-Jul-1994
#
# PLplot build rule for library under SAS/C 6.x on the Amiga.
# -----------------------------------------------------------------------

# -----------------------------------------------------------------------
# Set up inference rules appropriate for building library.
# -----------------------------------------------------------------------

.c$O:
	$(CC) $(CC_FLAGS) $*.c

.f$O:
	$(F77) $(F77_FLAGS) $*.f

# -----------------------------------------------------------------------
# Library dependency list and targets
# -----------------------------------------------------------------------

PLLIB_LDC	= lib $(PLLIB) $(LIBM) $(LIBC) lib:reqtools.lib 

libs:	$(PLLIB)

$(PLLIB):	plplot.gst $(CORE_OBJ) $(DRIVERS_OBJ) $(AMIGA_OBJ)
	-sksh_join $(CORE_OBJ)    t:plcore.lib
	-sksh_join $(DRIVERS_OBJ) t:pldrivers.lib
	-sksh_join $(AMIGA_OBJ)   t:plamiga.lib
	-sksh_join t:pldrivers.lib t:plcore.lib t:plamiga.lib $(PLLIB)
	-delete t:plcore.lib t:pldrivers.lib t:plamiga.lib

# -----------------------------------------------------------------------
# $Id: Makefile,v 1.1 1994/09/06 01:57:53 mjl Exp $
#
# Maurice LeBrun
# IFS, University of Texas at Austin
# 19-Jul-1994
#
# PLplot program file dependencies and targets.
# 
# Targets supported here include: 
#
#	plrender	Metafile viewer
#	plserver	Renderer for Tk/DP driver 
#	pltcl		PLplot tcl interpreter
#	pltek		Renderer for tek files
#	fonts		font generators and font files
#
# All but "fonts" are in the default build rule.
# -----------------------------------------------------------------------

# Utility programs.

pltek$O:	pltek.c
	$(CC) $(CC_FLAGS) pltek.c

pltek$E:	pltek$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) pltek$O $(TO) $@ \
		$(LDC_LIBS)

plrender$O:	$(PLLIBS) plrender.c
	$(CC) $(CC_FLAGS) plrender.c

plrender$E:	$(PLLIBS) plrender$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) plrender$O $(PLLIB_LDC) $(TO) $@ \
		$(LDC_LIBS)

plserver$O:	$(PLLIBS) plserver.c
	$(CC) $(CC_FLAGS) plserver.c

plserver$E:	$(PLLIBS) plserver$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) plserver$O $(PLLIB_LDC) $(TO) $@ \
		$(LDC_LIBS)

pltcl$O:	$(PLLIBS) pltcl.c
	$(CC) $(CC_FLAGS) pltcl.c

pltcl$E:	$(PLLIBS) pltcl$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) pltcl$O $(PLLIB_LDC) $(TO) $@ \
		$(LDC_LIBS)

# -----------------------------------------------------------------------
# Font files.
# Note it is no longer necessary to actually make these since as of
# PLPLOT 4.99a the font files are portable.
#
# sfont - standard font
# xfont - extended fonts

fonts:	sfont xfont

sfont:	$(PLFNT_PATH)plstnd5.fnt
xfont:	$(PLFNT_PATH)plxtnd5.fnt

$(PLFNT_PATH)plstnd5.fnt: stndfont$E pdfutils$O $(FONT_OBJ)
	-./stndfont$E
	-mv *.fnt $(PLFNT_DIR)

$(PLFNT_PATH)plxtnd5.fnt: xtndfont$E pdfutils$O $(FONT_OBJ)
	-./xtndfont$E
	-mv *.fnt $(PLFNT_DIR)

stndfont$E:	$(PLLIBS) stndfont$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) stndfont$O $(FONT_OBJ) \
 		$(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

xtndfont$E:	$(PLLIBS) xtndfont$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) xtndfont$O $(FONT_OBJ) \
 		$(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

# -----------------------------------------------------------------------
# $Id: Makefile,v 1.1 1994/09/06 01:57:53 mjl Exp $
#
# Maurice LeBrun
# IFS, University of Texas at Austin
# 22-Jul-1994
#
# PLplot demo file dependencies and targets.
# 
# Targets supported here include: 
#
#	cdemos		All the C demos
#	fdemos		All the Fortran demos
#	tkdemos		All the extended wish (TK) demos
#	x??[cf]		Demo number ??, C or fortran versions
#	xtk??		Demo number ??, extended wish versions
# -----------------------------------------------------------------------

# -----------------------------------------------------------------------
# Example programs, in C.

CDEMOS= x01c$E x02c$E x03c$E x04c$E x05c$E x06c$E x07c$E x08c$E x09c$E \
	x10c$E x11c$E x12c$E x13c$E x14c$E x15c$E x16c$E x17c$E x18c$E \
	x19c$E tutor$E

cdemos:	$(CDEMOS)

x01c$O:	x01c.c
	$(CC) $(CC_FLAGS_DEMOS) x01c.c

x01c$E:	$(PLLIBS) x01c$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) x01c$O \
	       $(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

x02c$O:	x02c.c
	$(CC) $(CC_FLAGS_DEMOS) x02c.c

x02c$E:	$(PLLIBS) x02c$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) x02c$O \
	       $(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

x03c$O:	x03c.c
	$(CC) $(CC_FLAGS_DEMOS) x03c.c

x03c$E:	$(PLLIBS) x03c$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) x03c$O \
	       $(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

x04c$O:	x04c.c
	$(CC) $(CC_FLAGS_DEMOS) x04c.c

x04c$E:	$(PLLIBS) x04c$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) x04c$O \
	       $(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

x05c$O:	x05c.c
	$(CC) $(CC_FLAGS_DEMOS) x05c.c

x05c$E:	$(PLLIBS) x05c$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) x05c$O \
	       $(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

x06c$O:	x06c.c
	$(CC) $(CC_FLAGS_DEMOS) x06c.c

x06c$E:	$(PLLIBS) x06c$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) x06c$O \
	       $(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

x07c$O:	x07c.c
	$(CC) $(CC_FLAGS_DEMOS) x07c.c

x07c$E:	$(PLLIBS) x07c$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) x07c$O \
	       $(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

x08c$O:	x08c.c
	$(CC) $(CC_FLAGS_DEMOS) x08c.c

x08c$E:	$(PLLIBS) x08c$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) x08c$O \
	       $(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

x09c$O:	x09c.c
	$(CC) $(CC_FLAGS_DEMOS) x09c.c

x09c$E:	$(PLLIBS) x09c$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) x09c$O \
	       $(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

x10c$O:	x10c.c
	$(CC) $(CC_FLAGS_DEMOS) x10c.c

x10c$E:	$(PLLIBS) x10c$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) x10c$O \
	       $(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

x11c$O:	x11c.c
	$(CC) $(CC_FLAGS_DEMOS) x11c.c

x11c$E:	$(PLLIBS) x11c$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) x11c$O \
	       $(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

x12c$O:	x12c.c
	$(CC) $(CC_FLAGS_DEMOS) x12c.c

x12c$E:	$(PLLIBS) x12c$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) x12c$O \
	       $(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

x13c$O:	x13c.c
	$(CC) $(CC_FLAGS_DEMOS) x13c.c

x13c$E:	$(PLLIBS) x13c$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) x13c$O \
	       $(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

x14c$O:	x14c.c
	$(CC) $(CC_FLAGS_DEMOS) x14c.c

x14c$E:	$(PLLIBS) x14c$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) x14c$O \
	       $(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

x15c$O:	x15c.c
	$(CC) $(CC_FLAGS_DEMOS) x15c.c

x15c$E:	$(PLLIBS) x15c$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) x15c$O \
	       $(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

x16c$O:	x16c.c
	$(CC) $(CC_FLAGS_DEMOS) x16c.c

x16c$E:	$(PLLIBS) x16c$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) x16c$O \
	       $(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

x17c$O:	x17c.c
	$(CC) $(CC_FLAGS_DEMOS) x17c.c

x17c$E:	$(PLLIBS) x17c$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) x17c$O \
	       $(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

x18c$O:	x18c.c
	$(CC) $(CC_FLAGS_DEMOS) x18c.c

x18c$E:	$(PLLIBS) x18c$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) x18c$O \
	       $(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

x19c$O:	x19c.c
	$(CC) $(CC_FLAGS_DEMOS) x19c.c

x19c$E:	$(PLLIBS) x19c$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) x19c$O \
	       $(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

tutor$O:	tutor.c
	$(CC) $(CC_FLAGS_DEMOS) tutor.c

tutor$E:	$(PLLIBS) tutor$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) tutor$O \
	       $(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

# -----------------------------------------------------------------------
# Example programs, in Fortran.

FDEMOS= x01f$E x02f$E x03f$E x04f$E x05f$E x06f$E x07f$E x08f$E x09f$E \
	x10f$E x11f$E x12f$E x13f$E x16f$E

fdemos:	$(FDEMOS)

x01f$O:	x01f.f
	$(F77) $(LDF_FLAGS) x01f.f

x01f$E:	$(PLLIBS) x01f$O
	$(LDF) $(LDF_FLAGS) x01f$O \
	       $(PLLIB_LDF) $(TO) $@ $(LDF_PATH) $(LDF_LIBS)

x02f$O:	x02f.f
	$(F77) $(LDF_FLAGS) x02f.f

x02f$E:	$(PLLIBS) x02f$O
	$(LDF) $(LDF_FLAGS) x02f$O \
	       $(PLLIB_LDF) $(TO) $@ $(LDF_PATH) $(LDF_LIBS)

x03f$O:	x03f.f
	$(F77) $(LDF_FLAGS) x03f.f

x03f$E:	$(PLLIBS) x03f$O
	$(LDF) $(LDF_FLAGS) x03f$O \
	       $(PLLIB_LDF) $(TO) $@ $(LDF_PATH) $(LDF_LIBS)

x04f$O:	x04f.f
	$(F77) $(LDF_FLAGS) x04f.f

x04f$E:	$(PLLIBS) x04f$O
	$(LDF) $(LDF_FLAGS) x04f$O \
	       $(PLLIB_LDF) $(TO) $@ $(LDF_PATH) $(LDF_LIBS)

x05f$O:	x05f.f
	$(F77) $(LDF_FLAGS) x05f.f

x05f$E:	$(PLLIBS) x05f$O
	$(LDF) $(LDF_FLAGS) x05f$O \
	       $(PLLIB_LDF) $(TO) $@ $(LDF_PATH) $(LDF_LIBS)

x06f$O:	x06f.f
	$(F77) $(LDF_FLAGS) x06f.f

x06f$E:	$(PLLIBS) x06f$O
	$(LDF) $(LDF_FLAGS) x06f$O \
	       $(PLLIB_LDF) $(TO) $@ $(LDF_PATH) $(LDF_LIBS)

x07f$O:	x07f.f
	$(F77) $(LDF_FLAGS) x07f.f

x07f$E:	$(PLLIBS) x07f$O
	$(LDF) $(LDF_FLAGS) x07f$O \
	       $(PLLIB_LDF) $(TO) $@ $(LDF_PATH) $(LDF_LIBS)

x08f$O:	x08f.f
	$(F77) $(LDF_FLAGS) x08f.f

x08f$E:	$(PLLIBS) x08f$O
	$(LDF) $(LDF_FLAGS) x08f$O \
	       $(PLLIB_LDF) $(TO) $@ $(LDF_PATH) $(LDF_LIBS)

x09f$O:	x09f.f
	$(F77) $(LDF_FLAGS) x09f.f

x09f$E:	$(PLLIBS) x09f$O
	$(LDF) $(LDF_FLAGS) x09f$O \
	       $(PLLIB_LDF) $(TO) $@ $(LDF_PATH) $(LDF_LIBS)

x10f$O:	x10f.f
	$(F77) $(LDF_FLAGS) x10f.f

x10f$E:	$(PLLIBS) x10f$O
	$(LDF) $(LDF_FLAGS) x10f$O \
	       $(PLLIB_LDF) $(TO) $@ $(LDF_PATH) $(LDF_LIBS)

x11f$O:	x11f.f
	$(F77) $(LDF_FLAGS) x11f.f

x11f$E:	$(PLLIBS) x11f$O
	$(LDF) $(LDF_FLAGS) x11f$O \
	       $(PLLIB_LDF) $(TO) $@ $(LDF_PATH) $(LDF_LIBS)

x12f$O:	x12f.f
	$(F77) $(LDF_FLAGS) x12f.f

x12f$E:	$(PLLIBS) x12f$O
	$(LDF) $(LDF_FLAGS) x12f$O \
	       $(PLLIB_LDF) $(TO) $@ $(LDF_PATH) $(LDF_LIBS)

x13f$O:	x13f.f
	$(F77) $(LDF_FLAGS) x13f.f

x13f$E:	$(PLLIBS) x13f$O
	$(LDF) $(LDF_FLAGS) x13f$O \
	       $(PLLIB_LDF) $(TO) $@ $(LDF_PATH) $(LDF_LIBS)

x16f$O:	x16f.f
	$(F77) $(LDF_FLAGS) x16f.f

x16f$E:	$(PLLIBS) x16f$O
	$(LDF) $(LDF_FLAGS) x16f$O \
	       $(PLLIB_LDF) $(TO) $@ $(LDF_PATH) $(LDF_LIBS)

# -----------------------------------------------------------------------
# TK example programs.

TKDEMOS = xtk01$E xtk02$E

tkdemos: $(TKDEMOS)

xtk01$E:  $(PLLIBS) xtk01$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) xtk01$O \
	       $(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

xtk02$E:  $(PLLIBS) xtk02$O
	$(LDC) $(LDC_FLAGS) $(STARTUP) xtk02$O \
	       $(PLLIB_LDC) $(TO) $@ $(LDC_LIBS)

# -----------------------------------------------------------------------
# $Id: Makefile,v 1.1 1994/09/06 01:57:53 mjl Exp $
#
# Maurice LeBrun
# IFS, University of Texas at Austin
# 14-Jul-1994
#
# Make assignments and targets for installation on the Amiga.
#
# Under Unix I typically put plplot in
# /usr/local/plplot, or $HOME/local/plplot if I cannot get a directory in
# /usr/local assigned to me.
#
# On the Amiga, to keep things simple I also give PLplot it's own distribution
# directory. This way everything stays together, but unfortunately you have
# to modify your path and other settings to use it.  It'd be simple enough
# to have it both ways if the Amiga OS /really/ supported softlinks, sigh.
#
# -----------------------------------------------------------------------

install: install_lib install_utils $(TCL_INSTALL) install_demos

install_lib:
	-makedir $(INCLUDE_DIR) >NIL:
	-makedir $(LIB_DIR) >NIL:
	-makedir $(DOC_DIR) >NIL:
	-makedir $(BIN_DIR) >NIL:
	-makedir $(INFO_DIR) >NIL:
	-copy /lib/#?		$(LIB_DIR)
	-copy /README		$(DOC_DIR)
	-copy /README.1st	$(DOC_DIR)
	-copy /Changes.log	$(DOC_DIR)
	-copy /COPYRIGHTS	$(DOC_DIR)
	-copy /FAQ		$(DOC_DIR)
	-copy /ToDo		$(DOC_DIR)
	-copy /doc/#?.info	$(INFO_DIR)
	-copy /include/#?.h	$(INCLUDE_DIR)

install_demos:
	-makedir $(DEMOS_DIR) >NIL:
	-makedir $(DEMOS_DIR)/C >NIL:
	-copy Makedemo $(DEMOS_DIR)/C/Makefile
	-copy /examples/C/#? $(DEMOS_DIR)/C

install_utils:
	-copy plrender$E $(BIN_DIR)

install_tcl:
	$(LDC) $(LDC_FLAGS) pltcl$O $(LIB_INSTALL) \
		$(TO) pltcl$E $(LDC_LIBS)
	-copy pltcl$E $(BIN_DIR)

# -----------------------------------------------------------------------
# $Id: Makefile,v 1.1 1994/09/06 01:57:53 mjl Exp $
#
# Maurice LeBrun
# IFS, University of Texas at Austin
# 22-Jul-1994
#
# Miscellaneous targets.
# -----------------------------------------------------------------------

# Cleanup

clean:
	-delete #? /lib/#?.lib

# -----------------------------------------------------------------------
# Auto-generated dependency list follows (warning: it's ugly).

sc3d$O : sc3d.c plstubs.h plplotP.h plConfig.h plplot.h pdf.h plstream.h 
sccont$O : sccont.c plstubs.h plplotP.h plConfig.h plplot.h pdf.h plstream.h 
scstubs$O : scstubs.c plstubs.h plplotP.h plConfig.h plplot.h pdf.h plstream.h 
tclAPI$O : tclAPI.c plplotP.h plConfig.h plplot.h pdf.h plstream.h pltcl.h tclMatrix.h 
tclMain$O : tclMain.c 
tclMatrix$O : tclMatrix.c tclMatrix.h 
tk$O : tk.c plDevs.h plplotP.h plConfig.h plplot.h pdf.h plstream.h plplotTK.h \
  plplotX.h pltcl.h tclMatrix.h drivers.h metadefs.h plevent.h 
tkshell$O : tkshell.c plserver.h plplotP.h plConfig.h plplot.h pdf.h plstream.h \
  pltcl.h tclMatrix.h plplotTK.h plDevs.h 
tcpip$O : tcpip.c plDevs.h plplotP.h plConfig.h plplot.h pdf.h plstream.h 
plframe$O : plframe.c plserver.h plplotP.h plConfig.h plplot.h pdf.h plstream.h \
  pltcl.h tclMatrix.h plplotTK.h plDevs.h plplotX.h 
tkMain$O : tkMain.c 
plr$O : plr.c plserver.h plplotP.h plConfig.h plplot.h pdf.h plstream.h pltcl.h \
  tclMatrix.h plplotTK.h plDevs.h plevent.h metadefs.h 
pdfutils$O : pdfutils.c plplotP.h plConfig.h plplot.h pdf.h plstream.h 
plargs$O : plargs.c plplotP.h plConfig.h plplot.h pdf.h plstream.h 
plbox$O : plbox.c plplotP.h plConfig.h plplot.h pdf.h plstream.h 
plcont$O : plcont.c plplotP.h plConfig.h plplot.h pdf.h plstream.h 
plcore$O : plcore.c plcore.h plplotP.h plConfig.h plplot.h pdf.h plstream.h \
  drivers.h plDevs.h 
plctrl$O : plctrl.c plplotP.h plConfig.h plplot.h pdf.h plstream.h 
plcvt$O : plcvt.c plplotP.h plConfig.h plplot.h pdf.h plstream.h 
pldtik$O : pldtik.c plplotP.h plConfig.h plplot.h pdf.h plstream.h 
plfill$O : plfill.c plplotP.h plConfig.h plplot.h pdf.h plstream.h 
plfont$O : plfont.c plplotP.h plConfig.h plplot.h pdf.h plstream.h 
plhist$O : plhist.c plplotP.h plConfig.h plplot.h pdf.h plstream.h 
plline$O : plline.c plplotP.h plConfig.h plplot.h pdf.h plstream.h 
plot3d$O : plot3d.c plplotP.h plConfig.h plplot.h pdf.h plstream.h 
plpage$O : plpage.c plplotP.h plConfig.h plplot.h pdf.h plstream.h 
plsdef$O : plsdef.c plplotP.h plConfig.h plplot.h pdf.h plstream.h 
plshade$O : plshade.c plplotP.h plConfig.h plplot.h pdf.h plstream.h 
plstream$O : plstream.c plplotP.h plConfig.h plplot.h pdf.h plstream.h 
plstring$O : plstring.c plplotP.h plConfig.h plplot.h pdf.h plstream.h 
plsym$O : plsym.c plplotP.h plConfig.h plplot.h pdf.h plstream.h 
pltick$O : pltick.c plplotP.h plConfig.h plplot.h pdf.h plstream.h 
plvpor$O : plvpor.c plplotP.h plConfig.h plplot.h pdf.h plstream.h 
plwind$O : plwind.c plplotP.h plConfig.h plplot.h pdf.h plstream.h 
dg300$O : dg300.c plDevs.h 
hpgl$O : hpgl.c plDevs.h 
impress$O : impress.c plDevs.h 
ljiip$O : ljiip.c plDevs.h plplotP.h plConfig.h plplot.h pdf.h plstream.h drivers.h 
ljii$O : ljii.c plDevs.h plplotP.h plConfig.h plplot.h pdf.h plstream.h drivers.h 
next$O : next.c plDevs.h 
null$O : null.c plDevs.h plplotP.h plConfig.h plplot.h pdf.h plstream.h drivers.h 
plbuf$O : plbuf.c plplotP.h plConfig.h plplot.h pdf.h plstream.h drivers.h metadefs.h 
plmeta$O : plmeta.c plDevs.h plplotP.h plConfig.h plplot.h pdf.h plstream.h \
  drivers.h metadefs.h 
ps$O : ps.c plDevs.h plplotP.h plConfig.h plplot.h pdf.h plstream.h drivers.h 
tek$O : tek.c plDevs.h plplotP.h plConfig.h plplot.h pdf.h plstream.h drivers.h \
  plevent.h 
xfig$O : xfig.c plDevs.h plplotP.h plConfig.h plplot.h pdf.h plstream.h drivers.h 
xwin$O : xwin.c plDevs.h plplotP.h plConfig.h plplot.h pdf.h plstream.h plplotX.h \
  drivers.h plevent.h 
plrender$O : plrender.c plplotP.h plConfig.h plplot.h pdf.h plstream.h plevent.h \
  metadefs.h 
plserver$O : plserver.c plserver.h plplotP.h plConfig.h plplot.h pdf.h plstream.h \
  pltcl.h tclMatrix.h plplotTK.h plDevs.h 
pltcl$O : pltcl.c plplotP.h plConfig.h plplot.h pdf.h plstream.h pltcl.h tclMatrix.h 
