.SUFFIXES: .cxx .c .asm .obj .lib .map .sym .rc .res .lnk .hxx .h

DEFS=-DSTRICT -DWIN31 -DDEBUG -DCTLAPIS

.c.obj:
    cl -Gs -c -AS -G2cw -Od -Zip1e -W3 $(DEFS) $*.c

.asm.obj:
    masm -W2 -p $(DEFS) $*.asm;

.rc.res:
    rc -r $*.rc

target: minmax.exe

minmax.res: minmax.rc resource.h dlgs.dlg setvalue.dlg

main.obj: main.c resource.h

mainwnd.obj: mainwnd.c mainwnd.h resource.h

dlgs.obj: dlgs.c dlgs.h resource.h

setvalue.obj: setvalue.c setvalue.h

minmax.exe: minmax.def minmax.res main.obj mainwnd.obj dlgs.obj setvalue.obj
    link /CO main mainwnd dlgs setvalue,minmax,minmax.map/MAP/NOE/NOD,slibcew libw,minmax.def;
    rc minmax.res
