#
# telnetd makefile
#
# Copyright (C) 1996 Be Inc.  All Rights Reserved
#

TARGET		= telnetd

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

VPATH += ../netcommon


SRCS=	global.c slc.c state.c sys_term.c telnetd.c \
	termstat.c utility.c getent.c beport.c select.c

TERMCAP_LIB	:= ../src/termcap/libtermcap.a

OBJS 		:= global.o slc.o state.o sys_term.o telnetd.o \
               termstat.o utility.o getent.o beport.o select.o

CFLAGS += $(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:

