#
# This is the makefile for the telbin program.
# It may be called on its own to just create and install these programs,
# or it may be called from above by the master makefile.
#

# First we include the general definitions
!include "..\..\gendefs"

# The telbin executables, objects and sources

TELBIN		= telbin.exe
TELBIN_SRC	= rspc.c look.c newkeys.c
TELBIN_OBJ	= rspc.obj look.obj newkeys.obj

STARTUP_CODE	= c0l.obj
NEEDED_LIBS	= tcp.lib sess.lib enet.lib over.lib vjc.lib vs.lib tek.lib ncsa.lib cl.lib

all: $(TELBIN)

clean:
	-del *.obj
	-del *.map
	-del *.exe
	-del tlink.cfg

$(TELBIN): $(TELBIN_OBJ) tlink.cfg
	$(LINK) $(STARTUP_CODE) $(TELBIN_OBJ),$(TELBIN),,$(NEEDED_LIBS)
	copy $(TELBIN) $(BINDIR)\$(TELBIN)

#
# I appologize to all for such cruftiness, but I couldn't think of
# any other way of dealing with both the ^%$%*&^ 128 character
# command line limit, and the need for paths to be dynamicly changed.
# JRM - 4/27/93
#
tlink.cfg:
	echo /L$(BCCLIBS);$(LIBDIR) >tlink.cfg

.c.obj:
	$(CC) $(CCOPTS) {$< }

.asm.obj:
	$(ASM) {$(AFLAGS) $<; }
