##############################################################################
#	Copyright 1986-1992 FTP Software, Inc.
#
# Makefile for the PING Application for Windows, WPING
#
# This makefile assumes the environment variables LIB and INCLUDE are
# set to point to a list of directories containing .lib and .h files.
#
# Edit History:
#  21-Jul-92  rcq  got rid of Polymake directives and transformation macros
#		    for NMAKE and unqualified library (to use env var)
#  
##############################################################################

SRCS = wping.c
INCS = wping.h

LIBS = pctcpapi libw slibcew wdllchk

# For debugging -- this includes symbol information
#WCFLAGS = -DMSC -DASSERT -DDEBUG -Od -Gsw -Zi -Zp -Zl -W3
#LFLAGS = /NOE/NOD/MAP/CO/STACK:30000

# For production -- no debugging info included
WCFLAGS = -DMSC -DASSERT -Od -Gsw -Zp -Zl -W3
LFLAGS = /NOE/NOD/MAP/STACK:30000

all: wping.exe

depend: $(SRCS) $(INCS)
	makedeps -\#3 -F -S *.c

wping.exe: wping.wo Makefile wping.def wping.res
	link $(LFLAGS) wping.wo,,,$(LIBS), wping.def;
	rc -30 wping.res wping.exe

# Update the resource if necessary
wping.res: wping.rc wping.h
    rc -r wping.rc


clean:
	del *.?o
	del *.map
	del *.obj
	del *.cod
	del *.res
	del *.sym
cleanall: clean
	del *.exe

# Do not place anything in between #UPDATE# and #ENDUPDATE#!
# "make depend" uses that section.
#UPDATE#
wping.wo:	wping.h
#ENDUPDATE#
