# Makefile for Texinfo to nroff/troff translator (texi2roff)

CC = cc

# Flags:
# -DBSD controls use of string(s).h and strchr/index only (not needed for Sun)
# use -Dvoid=int for System III and V7

CFLAGS = -O 

OBJECTS = texi2roff.o table.o translate.o

texi2roff: $(OBJECTS)
	$(CC) -o $@ $(CFLAGS) $(OBJECTS)

texi2roff.o : texi2roff.h

translate.o : texi2roff.h

table.o : texi2roff.h tablems.h tablemm.h tableme.h

clean:
	-rm -f *.o core errs

bundle:
	bundle texi2roff.1 Readme copyright Makefile  *.h *.c >bundled
	ls -l bundled
