CFLAGS = -AMw -G2 -GD
LFLAGS =
LIBS = libw.lib mlibcew.lib

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

.c.obj:
   $(CC) $(CFLAGS) -c -Fo$(@R).obj -I$(@D) $<

evchk3.lib: evchk3.dll
   implib evchk3.lib evchk3.dll

evchk3.dll: evchk3.obj ..\..\evchkd.obj evchk3.def evchk3.res
   link $(LFLAGS) @<<
evchk3.obj+
..\..\evchkd.obj
evchk3.dll
evchk3.map
$(LIBS)
evchk3.def
<<
   rc -t -31 evchk3.res evchk3.dll

evchk3.obj: $(@R).c

evchk3.res: evchk3.rc
   rc -r evchk3.rc
