#-----------------------------------------------------------------------
# Makefile for troff-to-TeX translator using AmigaDOS and Lattice-C
# Make targets:
#	(none)	same as tr2tex
#	tr2tex	build translator
#	clean	remove object and executable files
#
# Makefile by: Martin Hohl

CFLAGS = -v -ffs -DANSI -b0
CFILES = tr2tex.c tr.c subs.c

tr2tex:	tr2tex.o tr.o subs.o tr2tex.lnk
	BLink with tr2tex.lnk

tr2tex.o:	tr2tex.c setups.h
	LC $(CFLAGS) -O -c tr2tex.c

tr.o:	tr.c setups.h
	LC $(CFLAGS) -c tr.c

subs.o:	subs.c setups.h simil.h greek.h macros.h maths.h flip.h forbid.h
	LC $(CFLAGS) -c -O subs.c

clean:
	delete tr2tex.o
	delete tr.o
	delete subs.o
	delete tr2tex
