#Makefile for htimp
#Copyright 1993,1994 Globetrotter Software; see source files for full copyright.
#Jim McBeath (jimmc@globes.com)

PROGRAM = htimp
PROGRAMDBG = htimpdbg

CDEFINES =

CCOPTS = -g

CFLAGS = $(INCLUDES) $(CDEFINES) $(CCOPTS)

CC = gcc

LINKER = gcc

LIBS = -ldl -lsocket -lnsl

SRCS =  app.c \
	appconf.c \
	command.c \
	conf.c \
	gconf.c \
	htprint.c \
	htserv.c \
	main.c \
	master.c \
	sock.c \
	unescape.c \
	utils.c

OBJS = $(SRCS:.c=.o)

default:	all

all:	prog progdbg

prog: $(PROGRAM)

purify:;	$(MAKE) prog LINKER='purify $(LINKER)'

progdbg:	$(PROGRAMDBG)

$(PROGRAM): $(OBJS)
	$(LINKER) -o $(PROGRAM) $(OBJS) $(LIBS)

$(PROGRAMDBG):	$(PROGRAM)
	ln -s $(PROGRAM) $(PROGRAMDBG)

depend:;	makedepend $(SRCS)

clean:;	rm -f $(PROGRAM) *.o core

###
# DO NOT DELETE THIS LINE -- make depend depends on it.

conf.o: htimp.h /usr/include/stdio.h /usr/include/ctype.h
htserv.o: htimp.h
main.o: htimp.h
master.o: htimp.h /usr/include/sys/types.h /usr/include/sys/machtypes.h
master.o: /usr/include/sys/errno.h
sock.o: htimp.h
unescape.o: /usr/include/stdio.h
utils.o: /usr/include/varargs.h /usr/include/errno.h /usr/include/sys/errno.h
