.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(EVMOV32)
CFLAGS = $(CFLAGS) -D_EVMOV32
LIBS = $(LIBS) w32sut16.lib
!endif

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

!if $d(EVMOV32)
all: evmov32.lib evmov3.lib
!else
all: evmov3.lib
!endif

evmov32.lib: evmov32.dll
   implib evmov32.lib evmov32.dll

evmov3.lib: evmov3.dll
   implib evmov3.lib evmov3.dll

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

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

evmov3.obj: $(@R).c

evmov3.res: evmov3.rc
   brc -r evmov3.rc

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