# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	work/tr2latex/Makefile
#
echo x - work/tr2latex/Makefile
sed 's/^X//' >work/tr2latex/Makefile << 'END-of-work/tr2latex/Makefile'
X# Makefile for tr2latex on *NIX machines
X# $Id: configure,v 1.1.1.1 1995/05/02 08:28:16 asami Exp $
X
X# CC chooses the compiler
X
X# choose compiling options in CFLAGS:
X# The -O flag causes long compilation time but experience has shown that it is
X# unnecessary for this package; time saved in running time is extremely small
X# in the computers I used.
X# The -g flag produces symbolic information for debugging.
X# Add -DUCB if you're running under Berkley UNIX.
X# Add -systype bsd43 on MIPS M/2000, running RISCos
X#     (recommended by David Osborne, cczdao@mips.ccc.nottingham.ac.uk).
X# Add -Dtops20 to CFLAGS if you're running it under tops20.
X# Add -DDEBUG for some additional debugging code.
XCFLAGS += -DDEBUG
X
XLINTFLAGS = -abchnpux
XCFILES = tr2latex.c tr.c subs.c version.c
XHFILES = protos.h setups.h simil.h greek.h macros.h maths.h flip.h forbid.h
XSTYFILES = troffman.sty troffms.sty
XOTHERS = Makefile.msc Makefile.unix Makefile.tc Makefile.vms Makefile.mms \
X         make_tr2latex.com README diffs.tex testfile \
X         tr2latex.man tr2latex.hlp vaxcrtl.opt
XSOURCES = $(CFILES) $(HFILES) $(STYFILES) $(OTHERS)
XDISTRIB = $(SOURCES) tr2latex.man.tex-orig testfile.tex-orig History
X
X# BINDIR gives the path where the executable should be placed after
X# installation.
XBINDIR = ${PREFIX}/bin
X
X# TEXDIR gives the path where the tex library resides (fonts, macros ...)
XTEXDIR = ${PREFIX}/lib/texmf/tex/misc
X
X# MANSECTION gives the section number of the online manual pages where to
X# place the tr2latex manual page.
X# MANDIR gives the path of your online manual pages.
X# If you have a directory for local manual pages, for instance /usr/local/man,
X# then set MANDIR to this path and MANSECTION to 1. Otherwise you should
X# place the manual page into the local section by giving MANSECTION as
X# l (``ell'') and setting MANDIR to /usr/man
XMANSECTION = 1
XMANDIR = ${PREFIX}/man
X
Xall:	tr2latex
X
Xtr2latex: tr2latex.o tr.o subs.o version.o
X	$(CC) $(CFLAGS) tr2latex.o tr.o subs.o version.o -o tr2latex
X
Xtr2latex.o: tr2latex.c setups.h protos.h
Xtr.o: tr.c setups.h protos.h
Xsubs.o: subs.c $(HFILES)
Xversion.o: version.c
X
X
Xlint:
X	lint $(LINTFLAGS) $(CFILES) > lint.lst
X
Xinstall: tr2latex
X	mkdir -p ${BINDIR} ${MANDIR} ${TEXDIR}
X	install -c -s -m 0755 tr2latex $(BINDIR)/tr2latex
X	install -c -m 0444 tr2latex.man \
X			$(MANDIR)/man$(MANSECTION)/tr2latex.$(MANSECTION)
X	install -c -m 0444 troffman.sty troffms.sty $(TEXDIR)
X
Xclean:
X	\rm -f *.o core *junk* tr2latex lint.lst *~ TAGS tags
Xrm:
X	\rm -f *.o core *junk* tr2latex lint.lst *~ \
X	       *.c* *.h Makefile.* *.sty* README* *.tex testfile* *man*
END-of-work/tr2latex/Makefile
exit

