#------------------------
# make file
# Usage:     NMAKE              (Limit the number of MDI children in the Window menu.
#                                Bring up customized dialog on MoreWindows menu-selection)
#    or:     NMAKE MENU=NOLIMIT (No limit on number of MDI children)
#------------------------

all : mdiwinmn.exe

OBJS = mdiwinmn.obj
!if "$(MENU)" == "NOLIMIT"
COMPILE_OPTS = -c -Gsw -Od -W3 -Zipe -AM /DWINVER=0x3000
!else 
COMPILE_OPTS = -c -Gsw -Od -W3 -Zipe -AM /DWINVER=0x3000 /DMENULIMIT=1
!endif
LINK_OPTS = /CO /MAP /NOD /align:16

mdiwinmn.res : mdiwinmn.rc mdiwinmn.h
     rc  -r mdiwinmn.rc

mdiwinmn.obj : mdiwinmn.c mdiwinmn.h
     cl $(COMPILE_OPTS) mdiwinmn.c

mdiwinmn.exe :: $(OBJS) mdiwinmn.def mdiwinmn.res
     link $(LINK_OPTS) $(OBJS), mdiwinmn, mdiwinmn, mlibcew libw, mdiwinmn
     mapsym mdiwinmn
     rc /30 mdiwinmn.res

mdiwinmn.exe ::  mdiwinmn.res
     rc /30 mdiwinmn.res

