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

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

# The ftpbin executable, sources, and objects

FTPBIN		= ftpbin.exe
FTPBIN_SRC	= ftpbin.c
FTPBIN_OBJ	= ftpbin.obj

STARTUP_CODE	= c0l.obj
NEEDED_LIBS	= ncsa sess enet over vjc tcp mathl emu cl

all: $(FTPBIN)

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


$(FTPBIN): $(FTPBIN_OBJ) tlink.cfg
	$(LINK) $(LINKFLAGS)$(STARTUP_CODE) $(FTPBIN_OBJ),$(FTPBIN),,$(NEEDED_LIBS)
	copy $(FTPBIN) $(BINDIR)\$(FTPBIN)

#
# 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) $<; }
