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

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

tstchk.exe: tstchk.obj $(LIBS)\libc.lib $(LIBS)\user32.lib $(LIBS)\gdi32.lib $(LIBS)\oldnames.lib $(LIBS)\kernel32.lib ..\..\..\..\evchk32.lib
   link $(LFLAGS) @<<
tstchk.obj
$(LIBS)\libc.lib
$(LIBS)\user32.lib
$(LIBS)\gdi32.lib
$(LIBS)\oldnames.lib
$(LIBS)\kernel32.lib
..\..\..\..\evchk32.lib
<<

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

evchk32.lib: evchk32.def
   lib /def:evchk32.def /machine:Ix86
