# 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

!ifdef __BCC__
MKARGS=MDL=$(MDL) DEBUG=1 CFG=/D__EDIT__
!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 ..\clip
 $(MK) $(MKARGS)
 cd ..\confirm
 $(MK) $(MKARGS)
 cd ..\conio
 $(MK) $(MKARGS)
 cd color
 @$(MK) $(MKARGS)
 cd ..\console
 @$(MK) $(MKARGS)
 cd ..\cursor
 @$(MK) $(MKARGS)
 cd ..\progress
 @$(MK) $(MKARGS)
 cd ..\rect
 @$(MK) $(MKARGS)
 cd ..\resource
 @$(MK) $(MKARGS)
 cd ..\stdsc
 @$(MK) $(MKARGS)
 cd ..\tdialog
 @$(MK) $(MKARGS)
 cd ..\tinfo
 @$(MK) $(MKARGS)
 cd ..\twindow
 @$(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 ..\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 ..\time
 $(MK) $(MKARGS)
 cd ..\tview
 $(MK) $(MKARGS)
 cd ..\wsub
 $(MK) $(MKARGS)
 cd ..\zip
 $(MK) $(MKARGS)
 cd ..\idd
 $(MK) $(MKARGS)
 cd ..
