#
#  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: Makefile,v 1.3 94/11/01 11:55:45 mjr rel $"

.include	"../Makefile.config"

CFLAGS= -I.. $(COPT)

all: socks-gw

socks-gw: socks-gw.o socks5.o socks4.o ../libfwall.a
	$(CC) $(LDFL) -o $@ socks-gw.o socks5.o socks4.o ../libfwall.a $(AUXLIB)

clean:
	rm -f socks-gw socks-gw.o socks5.o socks4.o core

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