#
# This is the makefile for the LXTELNET 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 telnet executables, objects and sources

TELNET		= lxtelnet.exe
TELNET_SRC	= telnet.c rspc.c newkeys.c
TELNET_OBJ	= telnet.obj rspc.obj newkeys.obj

all: $(TELNET)

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

$(TELNET): $(TELNET_OBJ) $(NCSATCPLIB)
	$(CC) -ml -l-c -e$(TELNET) $(TELNET_OBJ) $(NCSATCPLIB)
	copy $(TELNET) $(BINDIR)\$(TELNET)

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

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