# JS, 01/25/96

# Makefile for wpls2rtf 2.0
# Be sure to throw in an ANSI C compiler
CC=gcc
# Configure where you want things installed
DESTDIR=/usr/local/bin

# Choose one of the following two; simple installs without the
# wrapper script, complex installs the wrapper script to handle
# reliable location of the external translation configuration file
INSTALL=install-simple
#INSTALL=install-complex

all:	wpls2rtf

wpls2rtf:	../src/wpls2rtf.c ../src/wpls2rtf.h Makefile
	${CC} -O -s -o wpls2rtf ${LIBS} ../Universal/wpls2rtf.c


install:	${INSTALL}

install-simple:	all ../src/wpls2rtf.x
	cp wpls2rtf ${DESTDIR}
	chmod 755 ${DESTDIR}/wpls2rtf

install-complex:	all ../Universal/wpls2rtf.x
	cp wpls2rtf ${DESTDIR}/wpls2rtf.exec
	cp wpls2rtf.sh ${DESTDIR}/wpls2rtf
	cp ../Universal/wpls2rtf.x ${DESTDIR}
	chmod 755 ${DESTDIR}/wpls2rtf.exec ${DESTDIR}/wpls2rtf
	chmod 744 ${DESTDIR}/wpls2rtf.x

