#
# telnet makefile
#
# Copyright (C) 1995 Be Inc.  All Rights Reserved
#

POSIX		= 1

TARGET		= telnet
#APP_VERSION = $(SYSTEM_VERSION)

INCLUDES	:= -i- -I. -I../netcommon

VPATH 	    +=  ../netcommon
BOGUS		=	beport.c  select.c
SRCS=	authenc.c commands.c main.c network.c ring.c sys_bsd.c telnet.c \
	terminal.c tn3270.c utilities.c genget.c $(BOGUS)


OBJS 		:= beport.o select.o authenc.o commands.o main.o network.o ring.o \
               sys_bsd.o telnet.o terminal.o tn3270.o utilities.o genget.o

TERMCAP_LIB := ../src/termcap/libtermcap.a
CFLAGS += -Dunix -DSYSV_TERMIO -DNOT43  -DTERMCAP $(INCLUDES)

$(TARGET):	$(OBJS) $(TERMCAP_LIB)
		$(LD) -o $@ $(OBJS) $(LDFLAGS) $(TERMCAP_LIB)

clean::
	-rm -rf $(OBJS) $(TARGET)
	(cd $(dir $(TERMCAP_LIB)); $(MAKE) $@)

$(TERMCAP_LIB):	FORCE
	(cd $(dir $(TERMCAP_LIB)); $(MAKE) )

FORCE:

