all: test.exe

test.res: test.rc test.dlg
    rc -r test.rc

test.obj: test.c
    cl -c -AM -Gsw -Od -Zpe test.c

test.exe:: test.obj test.def
    link /NOD test, , , mlibcew libw, test.def
    rc test.res

test.exe:: test.res
    rc test.res
