# WINVUE - A simple type program for windows
#
# Written by William S. Hall
# 3665  Benton Street, #66
# Santa Clara, CA 95051
#

# location of scrolling window code
ttydir=..\..\pwcommon\ttycls

# header macro
headers=winvue.h $(ttydir)\ttycls.h

# compile macro
cp=cl -c -AM -Gsw -Os -Zpe -W3 -DWINDOWS -I$(ttydir)

# libraries
LIBS=mlibw mlibcew /NOD

#
# make the resource file
#
winvue.res : winvue.rc winvue.h
    rc -r winvue.rc

#
# make the object files
#
winvue.obj : winvue.c $(headers)
    $(cp)  -NT _WINVUERS winvue.c

winvuefn.obj : winvuefn.c $(headers)
    $(cp) -NT _WINVUERS winvuefn.c

winvuent.obj : winvuent.c $(headers)
    $(cp) -NT _WINVUENT winvuent.c

winvuems.obj : winvuems.c $(headers)
    $(cp) -NT _WINVUEMS winvuems.c

ttycls.obj : $(ttydir)\ttycls.c $(ttydir)\ttycls.h
    $(cp) -NT _WINVUERS $(ttydir)\ttycls.c

#
# create the executable file, add resources, and make a map file
#
winvue.exe : winvue.def winvue.res \
	     winvue.obj winvuefn.obj winvuent.obj winvuems.obj ttycls.obj
    link winvue+winvuefn+winvuent+winvuems+ttycls,/al:16,/m,$(LIBS),winvue
    rc winvue.res
    mapsym winvue
