|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: M T
Length: 6061 (0x17ad)
Types: TextFile
Names: »Makefile«
└─⟦a05ed705a⟧ Bits:30007078 DKUUG GNU 2/12/89
└─⟦148e64aa4⟧ »./plot2ps.tar.Z«
└─⟦ff7617d1d⟧
└─⟦this⟧ »Makefile«
#
# This is the makefile for plot2ps, a plot file to postscript converter.
#
# HOW TO INSTALL PLOT2PS:
#
# 1) Edit the COMPILERS AND OPTIONS section and type `make plot2ps'.
#
# 2) Type `make test' to test plot2ps. The response should be `PASSED'.
# Ignore FAILED, if only the roundoff error in the last digits differ.
#
# 3) Edit the INSTALLATION section and type `make install' to install plot2ps.
#
# 4) Type `make clean' to clean up.
#
##############################################################################
#
# Uncomment DEF if you need verbose debugging information embeded in
# the postscript comments in the output file. You should still be
# able to both print the output on a postscript device or view it using
# idraw.
#
##############################################################################
#
#DEF = -DDEBUG
#
##############################################################################
#
# COMPILERS AND OPTIONS: select a pair according to your machine type.
#
##############################################################################
#
# SUN3:
#
# You don't have to uncomment anything for the sun compiler. However,
# you can uncomment the following line to use the optimizer and 68881 chip.
#
#CFLAGS = -O -f68881 $(DEF)
#
# Uncomment these two lines to use the GNU C compiler on the sun3.
# There are no gcc options which have caused bugs so far, so you
# should feel free to use any other options you like. Note that the
# roundoff in printing the last digit of some numbers may cause
# the regression test to fail, which should be ignored.
#
#CC = gcc
#CFLAGS = -g -O $(DEF)
#
#
# SEQUENT:
#
# You don't have to uncomment anything for the sequent.
# Use the default definition of CC and CFLAGS.
#
#
# MIPS:
#
# You don't have to uncomment anything for the mips.
# Use the default definition of CC and CFLAGS.
#
#
# Hewlett-Packard 9000:
#
# You don't have to uncomment anything for the HP9000.
# Use the default definition of CC and CFLAGS.
#
##############################################################################
#
# INSTALLATION: Select the path and file names for installing plot2ps and
# the manual page.
#
##############################################################################
#
# BINDIR = the directory where you want the executable to be placed.
# MANDIR = the directory where you want the man page to be placed.
# MANEXT = the extenxion to the manual page file name.
BINDIR = /usr/local
MANDIR = /usr/man/manl
MANEXT = l
##############################################################################
#
# You should not have to edit the rest of the makefile.
#
##############################################################################
#
# Type `make plot2ps' to compile plot2ps.
#
plot2ps : plot.o libps.a
$(CC) $(CFLAGS) -o plot2ps plot.o libps.a -lm
#
# Type `make test' to test plot2ps. It will respond `PASSED' if
# plot2ps passes a simple regression test.
#
# You should have a copy of spline.pl and spline.ps from the distriburion.
#
# Ignore FAILED, if only the roundoff error in the last digits differ.
#
test : plot2ps
-./plot2ps <spline.pl >test.ps
@echo The regression test of plot2ps
-@diff spline.ps test.ps >diff && echo PASSED. || echo FAILED.
cat diff
#
# Type `make install' to install plot2ps.
#
install : plot2ps
install -c plot2ps $(BINDIR)
install -c plot2ps.man $(MANDIR)/plot2ps.$(MANEXT)
#
# This is how spline.pl and spline.ps were originally created.
# You should already have a copy of both spline.pl and spline.ps
# from the distribution.
#
spline.pl :
echo 0 0 1 1 2 0|spline|graph> spline.pl
spline.ps : spline.pl
plot2ps <spline.pl>spline.ps
@echo try printing or previewing spline.ps
#
# Type `make plot2ps.ps' to create a postscript copy of the docuementation
# if it is not already provided.
#
plot2ps.ps : plot2ps.dvi
dvi2ps plot2ps.dvi >plot2ps.ps
#
# we run tex twice to get the cross references on the second pass.
#
plot2ps.dvi : plot2ps.texinfo
echo X|tex plot2ps.texinfo
echo X|tex plot2ps.texinfo
#
# Type `make libps.a' to creaate the plot compatible library of
# functions for postscript output.
#
LSRC = open.c close.c space.c rotate.c dot.c point.c \
linemod.c line.c label.c alabel.c erase.c color.c move.c cont.c \
arc.c circle.c drawline.c header.c setfont.c fontsize.c fill.c
LOBJ = open.o close.o space.o rotate.o dot.o point.o \
linemod.o line.o label.o alabel.o erase.o color.o move.o cont.o \
arc.o circle.o drawline.o header.o setfont.o fontsize.o fill.o
libps.a : $(LOBJ)
ar ru libps.a $?
ranlib libps.a
#
# Type `make TAGS' to update the TAGS file for use with GNU emacs.
#
TAGS : plot.c $(LSRC) plot3.h plot2ps.texinfo
etags plot.c $(LSRC) plot3.h plot2ps.texinfo
DIST= COPYING README plot2ps.texinfo plot.c plot3.h \
Makefile $(LSRC) .gdbinit texinfo.tex plot2ps.ps plot2ps.man \
spline.pl spline.ps
CHECKSUMS : $(DIST)
sum $(DIST) >CHECKSUMS
shar : $(DIST) CHECKSUMS
shar $(DIST) CHECKSUMS >../plot2ps.shar
#
# Type `make tar' to create the distributed, compressed tar file.
#
tar : $(DIST) CHECKSUMS
tar cfz ../plot2ps.tar.Z $(DIST) CHECKSUMS
#
# Type `make clean' to clean up after compilation.
#
clean:
-rm -f *.o *~ \#* plot2ps core test.* \
plot2ps.aux plot2ps.log plot2ps.cp plot2ps.pg plot2ps.toc \
plot2ps.dvi plot2ps.tp plot2ps.fn plot2ps.vr plot2ps.ky
#
# Dependencies generated by gcc -MM *.c *.h:
#
alabel.o : alabel.c plot3.h
arc.o : arc.c plot3.h
box.o : box.c plot3.h
circle.o : circle.c plot3.h
close.o : close.c plot3.h
color.o : color.c plot3.h
cont.o : cont.c plot3.h
dot.o : dot.c plot3.h
drawline.o : drawline.c plot3.h
erase.o : erase.c plot3.h
header.o : header.c
label.o : label.c plot3.h
line.o : line.c plot3.h
linemod.o : linemod.c plot3.h
move.o : move.c plot3.h
open.o : open.c plot3.h
plot.o : plot.c plot3.h
point.o : point.c plot3.h
ppoint.o : ppoint.c plot3.h
rotate.o : rotate.c plot3.h
space.o : space.c plot3.h