# Assume %WATCOM% == something
# ../make/srcpath: SUB=\doszip
#
# To build library C? using Borland C/C++ v3.1:
#	MAKE [MDL=?]
#
# To build library CLIB? using Open Watcom v1.8:
#	WMAKE [MDL=?] [clean]
#
!ifndef MDL
MDL=c
!endif
!include ../make/srcpath

$(LIBR).lib: $(LIB)
 cd alloc
 @$(MK) MDL=$(MDL)
 cd ..\assert
 @$(MK) MDL=$(MDL)
 cd ..\bios
 @$(MK) MDL=$(MDL)
 cd ..\calendar
 @$(MK) MDL=$(MDL)
 cd ..\color
 @$(MK) MDL=$(MDL)
 cd ..\confirm
 @$(MK) MDL=$(MDL)
 cd ..\console
 @$(MK) MDL=$(MDL)
 cd ..\conio
 @$(MK) MDL=$(MDL)
 cd ..\ctype
 @$(MK) MDL=$(MDL)
 cd ..\cursor
 @$(MK) MDL=$(MDL)
 cd ..\dir
 @$(MK) MDL=$(MDL)
 cd ..\disk
 @$(MK) MDL=$(MDL)
 cd ..\dos
 @$(MK) MDL=$(MDL)
 cd ..\errno
 @$(MK) MDL=$(MDL)
 cd ..\fcntl
 @$(MK) MDL=$(MDL)
 cd ..\fblk
 @$(MK) MDL=$(MDL)
 cd ..\filter
 @$(MK) MDL=$(MDL)
 cd ..\ifsmgr
 @$(MK) MDL=$(MDL)
 cd ..\ini
 @$(MK) MDL=$(MDL)
 cd ..\io
 @$(MK) MDL=$(MDL)
 cd ..\iost
 @$(MK) MDL=$(MDL)
 cd ..\keyb
 @$(MK) MDL=$(MDL)
 cd ..\math
 @$(MK) MDL=$(MDL)
 cd ..\mouse
 @$(MK) MDL=$(MDL)
 cd ..\progress
 @$(MK) MDL=$(MDL)
 cd ..\rect
 @$(MK) MDL=$(MDL)
 cd ..\resource
 @$(MK) MDL=$(MDL)
 cd ..\stdio
 @$(MK) MDL=$(MDL)
 cd ..\stdlib
 @$(MK) MDL=$(MDL)
 cd ..\stdsc
 @$(MK) MDL=$(MDL)
 cd ..\string
 @$(MK) MDL=$(MDL)
 cd ..\tdialog
 @$(MK) MDL=$(MDL)
 cd ..\time
 @$(MK) MDL=$(MDL)
 cd ..\tview
 @$(MK) MDL=$(MDL)
 cd ..\twindow
 @$(MK) MDL=$(MDL)
 cd ..\unzip
 @$(MK) MDL=$(MDL)
 cd ..\wchar
 @$(MK) MDL=$(MDL)
 cd ..\wsub
 @$(MK) MDL=$(MDL)
 cd ..

$(LIB):
 @md $(LIB)
 @md $(LIB)\debug

!ifndef WATCOM
clean: .symbolic
 @if exist $(LIBR).lib erase $(LIBR).lib
 @if exist $(LIBD).lib erase $(LIBD).lib
!endif
