#
# This is the makefile for the telpass 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 telpass executable, sources, and objects

TELPASS		= telpass.exe
TELPASS_SRC	= telpass.c
TELPASS_OBJ	= telpass.obj

STARTUP_CODE	= c0l.obj
NEEDED_LIBS	= ncsa.lib cl.lib

all: $(TELPASS)

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

$(TELPASS): $(TELPASS_OBJ) tlink.cfg
	$(LINK) $(LINKFLAGS)$(STARTUP_CODE) $(TELPASS_OBJ),$(TELPASS),,$(NEEDED_LIBS)
	copy $(TELPASS) $(BINDIR)\$(TELPASS)

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