# inference rules
.c.obj:
       cl $(CFLAGS) -NT$* $*.c

.rc.res:
       rc $(RCFLAGS) $*.rc 

DEBUG=TRUE

!IFDEF DEBUG
CFLAGS = -c -f -AM -Od -Gsw -W3 -Zipe -nologo -DDEBUG
LFLAGS = /CO /NOD /align:16 /m
!ELSE
CFLAGS = -c -AM -Ot -Gsw -W3 -Zpe -nologo
LFLAGS = /NOD /align:16 /m
!ENDIF
RCFLAGS = -r

all:           mdiapp.exe

mdiapp.obj:    mdiapp.c mdiapp.h mdidlg.h resource.h

mdidlg.obj:    mdidlg.c mdidlg.h resource.h

mdiapp.res:    mdiapp.rc resource.h

mdiapp.exe:    mdiapp.obj mdidlg.obj mdiapp.def mdiapp.res
               link /NOD /CO /m @<<
mdiapp mdidlg
mdiapp.exe
mdiapp
libw mlibcew
mdiapp.def
<<
               rc -v mdiapp.res
               mapsym mdiapp

clean:
    -del *.obj
    -del *.res
    -del *.map
    -del *.sym
