#
#  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: WEI XU, Trusted Information Systems, Inc.
#
# RcsId: "$Header: /usr/home/rick/fwtk2.0/fwtk/x-gw/RCS/Makefile,v 1.5 1997/03/05 04:19:46 rick Exp $"

include ../Makefile.config

CFLAGS= -I.. $(COPT) -I$(XINCLUDE)
TISLIB = ulib.a ../libfwall.a 

ULIB_OBJS = child.o fwd.o pmsg.o sig.o socket.o string.o sws.o \
	token.o dialog.o shell.o list.o
ULIB = ulib.a

all:	$(ULIB) x-gw

$(ULIB):$(ULIB_OBJS)
	ar rcv $@ $(ULIB_OBJS)
	$(RANLIB) $@

x-gw:	x-gw.o $(TISLIB)
	$(CC) $(XLDFL) -o $@ x-gw.o $(TISLIB) $(XLIBS) $(AUXLIB)

clean:
	rm -f x-gw *.o ulib.a

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