#------------------------
# termwait.MAK make file  
#
# /GEa must be used to compiler nfycback.c because SS!=DS when
# the NotifyRegister callback function is called.
#------------------------

all : termwait.exe

OBJS = termwait.obj wndproc.obj nfycback.obj 
COMPILE_OPTS = -c -GA -Os -W3 -Zpe -AM /DWINVER=0x0300
LINK_OPTS =  /CO /MAP /NOD /align:16

termwait.res : termwait.rc
     rc  -r termwait.rc
     
termwait.obj : termwait.c termwait.h
     cl $(COMPILE_OPTS) termwait.c
     
wndproc.obj : wndproc.c termwait.h
    cl $(COMPILE_OPTS)  wndproc.c

nfycback.obj : nfycback.c termwait.h
    cl $(COMPILE_OPTS) /GEa  nfycback.c
        
termwait.exe :: $(OBJS) termwait.def termwait.res
     link $(LINK_OPTS) $(OBJS), termwait, termwait, mlibcew libw toolhelp, termwait
     mapsym termwait
     rc /30 termwait.res
     
termwait.exe ::  termwait.res
     rc /30 termwait.res


