# 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/rtf2LaTeX/Makefile
#
echo x - work/rtf2LaTeX/Makefile
sed 's/^X//' >work/rtf2LaTeX/Makefile << 'END-of-work/rtf2LaTeX/Makefile'
XSHELL=/bin/sh
XCP=cp
XLD=cc -s
X# if your compiler needs -o option for creating .o files uncomment this line:
X#OOPT = -o $@
X#
X# XCFLAGS holds a combination of -DNO_MALLOC_H -DSTDARG -DVARARGS -DSYSV.
X# -DSTDARG and -DVARARGS are mutually exclusive. -DNO_MALLOC_H is only
X# needed if you don't have a standard C compiler AND you don't have malloc.h
X# if you have a standard C compiler, it is automatically asumed you have stdarg
X# you can override this by specifying -DVARARGS. If you don't specify
X# any of -DSTDARG and -DVARARGS, an uggly replacement that works on most
X# K&R compilers will be used.
X# -DSYSV is currently used only for defining index to strchr. You may
X# want to specify this for ULTRIX - ULTRIX has both, strchr and index but
X# lacks prototypes for the latter.
X# 
X# uncomment this line and delete unneccesary flags if needed.
X#XCFLAGS=-DNO_MALLOC_H -DSTDARG -DVARARGS -DSYSV
X#XCFLAGS = -DSYSV
X
X# This is where executables, man-pages and support files are installed
XBINDIR = ${PREFIX}/bin
XMANDIR = ${PREFIX}/man/man1
XRTFDIR = ${PREFIX}/lib/rtf
X
X############### No configuration parameters below this line ###############
X
X# RTF-to-LaTeX translator
XCOMMONOBJS = reader.o
XLATEXOBJS = rtf2LaTeX.o $(COMMONOBJS)
XSOURCES = rtf.h Makefile.2LaTeX fonts.h rtf2LaTeX.c r2L_version.h \
X	rtf2LaTeX.h reader.c
XSUPPORT = mac.code ansi.code english.land german.land
XDOCFILS = Copyright interna.tex README.2LaTeX interna.rtf rtf2LaTeX.man \
X	INSTALL.2LaTeX
XMACFILES = getopt.c macintosh.h macintosh.c readme.mac
X
Xall:	rtf2LaTeX
X
Xrtf2LaTeX: $(LATEXOBJS)
X	$(LD) $(LDFLAGS) -o $@ $(LATEXOBJS)
Xinstall: rtf2LaTeX $(DOCFILS) $(SUPPORT)
X	$(CP) rtf2LaTeX $(BINDIR)
X	$(CP) rtf2LaTeX.man $(MANDIR)/rtf2LaTeX.1
X	-mkdir $(RTFDIR)
X	$(CP) ansi.code mac.code german.land english.land $(RTFDIR)
Xtags:
X	etags -et *.[ch]
Xclean::
X	-rm -f rtf2LaTeX *~ core *.o *.aux *.log *.dvi TAGS \
X	rtf2LaTeX.tar.z rtf2LaTeX.tar.gz
Xtest:
X	./rtf2LaTeX interna.rtf > interna.test
X	diff interna.test interna.tex
X	rm interna.test
X#
Xreader.o : rtf.h 
X	$(CC) $(CFLAGS) $(XCFLAGS) -c $(OOPT) reader.c
X
Xrtf2LaTeX.o : fonts.h r2L_version.h rtf2LaTeX.h rtf.h
X	$(CC) $(CFLAGS) $(XCFLAGS) -c -DRTFDIR=\"$(RTFDIR)\" $(OOPT) rtf2LaTeX.c
X
Xsources: $(SOURCES) $(DOCFILS) $(SUPPORT) $(MACFILES)
X
X$(SOURCES) $(DOCFILS) $(SUPPORT) $(MACFILES):
X	co $@
X
Xdist: sources
X	mkdir rtf2LaTeX
X	ln $(SOURCES) $(DOCFILS) $(SUPPORT) $(MACFILES) rtf2LaTeX
X	tar cf - rtf2LaTeX | gzip -best > rtf2LaTeX.tar.gz
X	rm -rf rtf2LaTeX
END-of-work/rtf2LaTeX/Makefile
exit

