#
# makefile - htp
#
# HTML pre-processor
# Copyright (c) 1995-1996 Jim Nelson.  All rights reserved.
#

#
# project name and memory model
#
MAIN = htp

#
# development tools
#
CC = cc
LINK = cc

#
# tool command-line options ... notice that these are geared towards GNU
#
CCOPT = -c -Wall -O2
LOPT = -lc

#
# object files used
# declare OBJ2 if another line is needed
#
OBJ1 = $(MAIN).o image.o html.o ver.o textfile.o varstore.o msg.o gif.o jpeg.o option.o suballoc.o

#
# explicit dependency: final executable
#
$(MAIN) : $(OBJ1) $(OBJ2)
	$(LINK) $(LOPT) -o $(MAIN) $(OBJ1) $(OBJ2)

#
# implicit dependencies for source code
#
.c.o :
	$(CC) $(CCOPT) $(DEFINES) -o $*.o $<

