CFLAGS = -nologo -Od -D_WINDOWS -DWIN32 -Ic:\msdev\include
LFLAGS = -nologo -subsystem:windows -machine:I386 -out:tstreset.exe \
         tstreset.res
LIBS=c:\msdev\lib

!if "$(DEBUG)"=="y"
CFLAGS = $(CFLAGS) -Zi -D_DEBUG
LFLAGS = $(LFLAGS) /M /CO
!endif

tstreset.exe: tstreset.obj tstreset.res $(LIBS)\libc.lib $(LIBS)\user32.lib $(LIBS)\gdi32.lib $(LIBS)\oldnames.lib $(LIBS)\kernel32.lib ..\..\..\..\evmov32.lib
   link $(LFLAGS) @<<
tstreset.obj
$(LIBS)\libc.lib
$(LIBS)\user32.lib
$(LIBS)\gdi32.lib
$(LIBS)\oldnames.lib
$(LIBS)\kernel32.lib
..\..\..\..\evmov32.lib
<<

tstreset.res: tstreset.rc
   rc /r -DWIN32 -D_WIN32 -DWINVER=0X0400 tstreset.rc

tstreset.obj: tstreset.c
   $(CC) $(CFLAGS) -c tstreset.c

evmov32.lib: evmov32.def
   lib /def:evmov32.def /machine:Ix86
