#
# This is the makefile for the testkey 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 testkey program and its dependancies

TESTKEY		= testkey.exe
TESTKEY_SRC	= testkey.c newkeys.c
TESTKEY_OBJ	= testkey.obj newkeys.obj

STARTUP_CODE	= c0l.obj
NEEDED_LIBS	= over ncsa cl

all: $(TESTKEY)

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


$(TESTKEY): $(TESTKEY_OBJ) tlink.cfg
	$(LINK) $(STARTUP_CODE) $(TESTKEY_OBJ),$(TESTKEY),,$(NEEDED_LIBS)
	copy $(TESTKEY) $(BINDIR)\$(TESTKEY)

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

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


