# Make file for PMAUX, a simple debugging window for Presentation Manager
#
# Written by William S. Hall
# 3665  Benton Street, #66
# Santa Clara, CA 95051
#

# no debug compile macro
cp=cl -c -W3 -AM -G2sw -Os -Zpe -I$(ttydir)

# libraries
LIBS=os2 mlibcep /NOD

# ttycls directory
ttydir=\pwcommon\ttycls

#headers
headers=pmaux.h $(ttydir)\ttycls.h

# To make program work with IBM's OS/2 (SDK 1.06).  Set to null for SDK 1.05
ver=IBMVER

# inference rule for resources
.rc.res :
    rc -r $*.rc

# Dependencies
pmaux.res : pmaux.rc pmaux.h

pmaux.obj : pmaux.c $(headers)
    $(cp) -NT _PMAUXRS pmaux.c

pmauxfn.obj : pmauxfn.c $(headers)
    $(cp) -NT _PMAUXRS pmauxfn.c

pmauxnt.obj : pmauxnt.c $(headers)
    $(cp) -D$(ver) -NT _PMAUXNT pmauxnt.c

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

pmaux.exe : pmaux.def pmaux.res pmaux.obj pmauxnt.obj pmauxfn.obj ttycls.obj
    link pmaux pmauxfn pmauxnt ttycls,/align:16,/map,$(LIBS),pmaux
    rc pmaux.res
