# MAKEFILE--
# makes a library for a single memory model
#
# MDL=c  Memory model (c or l)
# CPP=1  Open Watcom C library
# CFG=?  Assembler flags
#
!ifndef MDL
MDL=l
!endif
!ifdef CPP
_C_=1
!endif
!include ../srcpath

!if $(DEBUG)
! ifdef CFG
MKARGS=MDL=$(MDL) DEBUG=1 CFG=$(CFG)
! else
MKARGS=MDL=$(MDL) DEBUG=1
! endif
!else
! ifdef CPP
!  ifdef CFG
MKARGS=MDL=$(MDL) _C_=1 CFG=$(CFG)
!  else
MKARGS=MDL=$(MDL) _C_=1
!  endif
! else
!  ifdef CFG
MKARGS=MDL=$(MDL) CFG=$(CFG)
!  else
MKARGS=MDL=$(MDL)
!  endif
! endif
!endif

$(CX).lib:
 cd alloc
 $(MK) $(MKARGS)
 cd emm
 $(MK) $(MKARGS)
 cd ..\..\assert
 $(MK) $(MKARGS)
 cd ..\confirm
 $(MK) $(MKARGS)
 cd ..\conio
 $(MK) $(MKARGS)
 cd color
 $(MK) $(MKARGS)
 cd ..\console
 $(MK) $(MKARGS)
 cd ..\cursor
 $(MK) $(MKARGS)
 cd ..\dialog
 $(MK) $(MKARGS)
 cd ..\msgbox
 $(MK) $(MKARGS)
 cd ..\rect
 $(MK) $(MKARGS)
 cd ..\scget
 $(MK) $(MKARGS)
 cd ..\scput
 $(MK) $(MKARGS)
 cd ..\tinfo
 $(MK) $(MKARGS)
 cd ..\wchar
 $(MK) $(MKARGS)
 cd ..\..\ctype
 $(MK) $(MKARGS)
 cd ..\dir
 $(MK) $(MKARGS)
 cd ..\dos
 $(MK) $(MKARGS)
 cd ..\errno
 $(MK) $(MKARGS)
 cd ..\fblk
 $(MK) $(MKARGS)
 cd ..\filter
 $(MK) $(MKARGS)
 cd ..\format
 $(MK) $(MKARGS)
 cd ..\idd
 $(MK) $(MKARGS)
 cd ..\ini
 $(MK) $(MKARGS)
 cd ..\io
 $(MK) $(MKARGS)
 cd ..\iost
 $(MK) $(MKARGS)
 cd ..\keyb
 $(MK) $(MKARGS)
 cd ..\math
 $(MK) $(MKARGS)
 cd ..\mouse
 $(MK) $(MKARGS)
 cd ..\stdio
 $(MK) $(MKARGS)
 cd ..\stdlib
 $(MK) $(MKARGS)
 cd ..\string
 $(MK) $(MKARGS)
 cd ..\tedit
 $(MK) $(MKARGS)
 cd ..\time
 $(MK) $(MKARGS)
 cd ..\tview
 $(MK) $(MKARGS)
 cd ..\wsub
 $(MK) $(MKARGS)
 cd ..\zip
 $(MK) $(MKARGS)
 cd ..
