all : watchlib.dll gdiwatch.exe

#
# All commented lines in the make script are for debug version
#
# flag declarations
# cbaseflags: Windows compilation flags
# cdbflags: Compiler switch fuer debugging under codeview
# ldbflags: Link switch fuer debugging under codeview
# ccrflags: Generates optional assembly listing for debugging

cbaseflags = -c -Gsw -Od -W3 -Zp
cdbflags  = -Zi
ldbflags  = /CO
ccrflags  = /Fa


gdiwatch.obj  :  gdiwatch.c
#        cl $(cbaseflags) $(cdbflags) $(ccrflags) gdiwatch.c
	cl $(cbaseflags) gdiwatch.c

gdiwatch.res : gdiwatch.rc
	rc -r gdiwatch.rc

gdiwatch.exe : gdiwatch.obj   gdiwatch.def gdiwatch.res
#        link /NOE /NOD $(ldbflags)  gdiwatch, /align:16,/map,slibcew libw watchlib commdlg,gdiwatch
	link /NOE /NOD gdiwatch, /align:16,,slibcew libw watchlib commdlg,gdiwatch
	rc gdiwatch.res
#        mapsym gdiwatch.map


watchlib.obj : watchlib.c
	cl $(cbaseflags) watchlib.c

libentry.obj : libentry.asm
    masm  libentry.asm;

watchlib.res : watchlib.rc
	rc -r watchlib.rc

watchlib.dll : watchlib.obj libentry.obj watchlib.def watchlib.res
	link /NOE /NOD watchlib libentry, watchlib.dll/align:16,,sdllcew libw toolhelp,watchlib        
#        link /NOE /NOD $(ldbflags) watchlib libentry, watchlib.dll/align:16, /map,sdllcew libw toolhelp,watchlib        
	rc watchlib.dll
	implib watchlib.lib watchlib.def
#        mapsym watchlib.map

