all: MULTINST.DLL MULTAPP.EXE

DBG =

!IFDEF DBG

# Debugging build
APP_compile = -c -AS -Gsw -Zpie -W3 -Od $(DEFINES)
APP_link = /CO /NOD /NOE

DLL_compile = -c -Alnw -Gsw -Od -Zpie
DLL_link    = /CO /NOD /NOE

!ELSE

# Non-Debugging build
APP_compile = -c -AS -Gsw -Zpe -W3 -Od $(DEFINES)
APP_link =  /NOD /NOE

DLL_compile = -c -Alnw -Gsw -Od -Zpe
DLL_link    =  /NOD /NOE

!ENDIF


MULTINST.obj: MULTINST.c MULTAPP.h
     cl $(DLL_compile)  MULTINST.c

WEP.obj: WEP.c MULTAPP.h
     cl $(DLL_compile)  -NT WEPSEG WEP.c
     
MULTINST.dll:  MULTINST.obj WEP.obj MULTINST.def
     link $(DLL_link) LIBENTRY MULTINST WEP, MULTINST.dll, MULTINST/map/li, sdllcew libw, MULTINST.def
     rc MULTINST.dll
     mapsym MULTINST
     implib MULTINST.lib MULTINST.def

MULTAPP.obj: MULTAPP.c MULTAPP.h MULTINST.h
     cl $(APP_compile) MULTAPP.c

MULTAPP.res: MULTAPP.rc MULTAPP.h MULTINST.h
     rc -r $(DEFINES) MULTAPP.rc

MULTAPP.exe: MULTAPP.obj MULTAPP.def MULTAPP.res
     link $(APP_link) MULTAPP, MULTAPP, MULTAPP/map/li, libw slibcew MULTINST, MULTAPP.def
     rc MULTAPP.res
     mapsym MULTAPP
