clopts=-c -AS -Os -Zpe -Gsw -W2
linkopts=/NOD /NOE /align:16

# If this file is compiled using the NMAKE utility, then uncomment the
# next line:
#ALL: repaint1.exe repaint2.exe

repaint1.res: repaint.h repaint1.ico repaint.rc
    copy repaint1.ico repaint.ico
    rc -fo repaint1.res -r repaint.rc

repaint2.res: repaint.h repaint2.ico repaint.rc
    copy repaint2.ico repaint.ico
    rc -fo repaint2.res -r repaint.rc

repaint1.obj: repaint.c repaint.h
    cl  $(clopts) -DPAINT1 /Forepaint1.obj repaint.c

repaint2.obj: repaint.c repaint.h
    cl  $(clopts) /Forepaint2.obj repaint.c

repaint1.exe: repaint1.obj repaint1.def repaint1.res
    link $(linkopts) repaint1,repaint1,NUL, slibcew libw, repaint1.def
    rc repaint1.res

repaint2.exe: repaint2.obj repaint2.def repaint2.res
    link $(linkopts) repaint2,repaint2,NUL, slibcew libw, repaint2.def
    rc repaint2.res
