.autodepend

!if $d(DEBUG)
CFLAGS = -mm -2 -v -M -WDE -D_DEBUG
LFLAGS = /M /s /v /Twd
LIBS = noehwm.lib cwm.lib import.lib
!else
CFLAGS = -mm -2 -O1 -WDE
LFLAGS = /Twd
LIBS = noehwm.lib cwm.lib import.lib
!endif

!if $d(EVCHK32)
CFLAGS = $(CFLAGS) -D_EVCHK32
LIBS = $(LIBS) w32sut16.lib
!endif

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

!if $d(EVCHK32)
all: evchk32.lib evchk3.lib
!else
all: evchk3.lib
!endif

evchk32.lib: evchk32.dll
   implib evchk32.lib evchk32.dll

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

evchk3.dll: evchk3.obj ..\..\evchkd.obj evchk3.def evchk3.res
   tlink $(LFLAGS) @&&|
c0dm.obj+
evchk3.obj+
..\..\evchkd.obj
evchk3.dll
evchk3.map
$(LIBS)
evchk3.def
|
   brc -t -31 evchk3.res evchk3.dll

evchk32.dll: evchk32.c evchk32.def evchk32.res
   bcc32 -WD evchk32.c w32sut32.lib
   brc32 -w32 evchk32.res evchk32.dll

evchk3.obj: $(@R).c

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

evchk32.res: evchk32.rc
   brc32 -r -w32 evchk32.rc
