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

PING		= ping.exe
PING_SRC	= ping.c
PING_OBJ	= ping.obj

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

all: $(PING)

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

$(PING): $(PING_OBJ) tlink.cfg
	$(LINK) $(LINKFLAGS)$(STARTUP_CODE) $(PING_OBJ),$(PING),,$(NEEDED_LIBS)
	copy $(PING) $(BINDIR)\$(PING)

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