
#   ************************************************************************
#   *		 Makefile for BLOCKDEV Version of DISKHOOK VxD		   *
#   ************************************************************************

#   The source files for the VxD expect the VMM.INC header file supplied
#   with the Windows 95 DDK.  The INCLUDE environment variable should point
#   to a directory containing that header file.

#   The PATH variable should point to a directory containing an assembler
#   with MASM 6.x capabilities.  (If the assembler is not actually MASM 6.x
#   then consult the assembler's manual to determine switches that
#   correspond to the ones in this makefile.)

#   The PATH variable should also point to a directory containing
#   Microsoft's new LINK.EXE (from a 32-bit language product, but preferably
#   from the Windows 95 DDK, since the one in versions 4.0 and 4.1 of
#   Microsoft Visual C++ cannot be relied on for building VxDs).

#   The PATH variable should also point to a directory containing the ADDHDR
#   utility from the Windows 3.10 DDK.

#   ========================================================================

#   Tools

AS = ml
LINK = link

#   Corresponding environment variables

ASMENV = ml
LNKENV = link

#   Command-line switches required for building a VxD with these tools

AFLAGS = /Cx /DMASM6 /coff /DBLD_COFF
LFLAGS = /vxd

#   ************************************************************************

ALL : CLEAR SETTINGS TARGETS

CLEAR :
  set $(ASMENV)=
  set $(LNKENV)=

SETTINGS :
!IFDEF RESET
  -del diskhook.386
  -del *.obj
!ENDIF

TARGETS : diskhook.386

SOURCES = control.asm hook.asm iomgr.asm play.asm
OBJECTS = $(SOURCES:.asm=.obj)

diskhook.386 : $(OBJECTS) diskhook.def
  $(LINK) $(LFLAGS) @<<diskhook.lrf
/def:diskhook.def /out:diskhook.386
$(OBJECTS)
<<NOKEEP
  -del diskhook.exp
  -del diskhook.lib
  addhdr /v:030A diskhook.386

#   ************************************************************************

