#
# $Header:   J:/devkit.dos/vcs/srcsmpl/wshout/src/makefile.dsv   1.0.1.0   26 Apr 1993 18:02:08   rcq  $
#

###########################################################################
#
#      Copyright 1986-1993 FTP Software, Inc.
#
# Makefile section for the wshout application for Windows, which
# demonstrates the use of the WinSockAPI (using WINSOCK.DLL).
#
# Edit History:
#  18-Aug-92  rcq  created
#  25-Apr-93  rcq  added errno module
#
###########################################################################

LIBS	= wshout winsock libw slibcew

OBJS	= ushout.wo tshout.wo ulisten.wo tlisten.wo resolve.wo errno.wo

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

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

all: wshout.exe


############################# wshout.exe #################################

wshout.exe: wshout.wo wshout.def wshout.res wshout.lib makefile 
	link $(LFLAGS) wshout.wo,,,$(LIBS),wshout.def
	rc wshout.res wshout.exe

wshout.res: wshout.rc wshout.h wshout.ico
	rc -r wshout.rc

wshout.wo: wshout.h

wshout.lib: $(OBJS)
	@del wshout.lib
	lib wshout+$(OBJS);


########################## HouseKeeping ###############################

clean:	
	del *.?o
	del *.map
	del *.res
	del *.lib
cleanall: clean
	del *.exe

#
# $log:$
#
