#
# makefile ---	builds forth online help utilities.
#		Please change the compiler options for your system.
#

CC = gcc

CFLAGS = -O2 -fomit-frame-pointer -Wall -ansi -pedantic
LDFLAGS = -s

CFLAGS = -g -Wall -ansi -pedantic
LDFLAGS = -g

OBJECTS =	showhelp.o helpindex.o helpsubr.o

all:		showhelp index

helpindex:	helpindex.o helpsubr.o
		$(CC) $(LDFLAGS) helpindex.o helpsubr.o -o helpindex

showhelp:	showhelp.o helpsubr.o
		$(CC) $(LDFLAGS) showhelp.o helpsubr.o -o showhelp

index:		helpindex *.hlp
		helpindex -o index *.hlp

$(OBJECTS):	help.h

clean:	;	rm -f *.o core showhelp helpindex index
new:		clean all
