#
#  Copyright (c) 1993, Trusted Information Systems, Incorporated
#  All rights reserved.
# 
#  Redistribution and use are governed by the terms detailed in the
#  license document ("LICENSE") included with the toolkit.
#

#
#	Author: Marcus J. Ranum, Trusted Information Systems, Inc.
#
# RcsId: "$Header: /usr/home/rick/fwtk2.0/fwtk/http-gw/RCS/Makefile,v 1.3 1996/09/13 18:25:40 rick Exp $"
include ../Makefile.config

CFLAGS= -I.. $(COPT)
#CFLAGS= -I.. $(COPT) -DDODEBUG -DCANPLUG

all:	http-gw 

http-gw: hmain.o http-gw.o ftp.o gof2html.o auth.o gio.o noproxy.o\
		error.o internal.h icons.o ver.o ../libfwall.a ../libauth.a
	$(CC) $(CFLAGS) $(LDFL) -o $@ hmain.o http-gw.o ftp.o gof2html.o \
		auth.o error.o icons.o gio.o ver.o noproxy.o \
		../libfwall.a ../libauth.a $(AUXLIB)

auth.o: auth.c http-gw.h
error.o: error.c http-gw.h
ftp.o: ftp.c http-gw.h
gio.o:	gio.h http-gw.h gio.c
gof2html.o: gof2html.c http-gw.h ict.h
http-gw.o: http-gw.c http-gw.h ict.h
hmain.o: hmain.c http-gw.h 
icons.o: icons.c internal.h
noproxy.o: noproxy.c http-gw.h

clean:
	rm -f http-gw *.o


install:	all
	if [ -f $(DEST)/http-gw ]; then \
		mv $(DEST)/http-gw $(DEST)/http-gw.old; \
	fi
	cp http-gw $(DEST)
	chmod 755 $(DEST)/http-gw

