⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 一个能处理中断的vxd例子
💻
字号:
#############################################################################
#
# VFIntD: A VxD that Captures Floppy Disk Interrupts.
#
# 
# Important note: 
# This makefile differs from the DDK samples in four ways:
#
#       1.  It uses Microsoft MASM 6.0 or 6.1 (or later). 
#           (The DDK includes a customized MASM 5.10b).
#
#       2.  It uses the INCLUDE environment variable to locate
#           include files, which allows you to place this sample code
#           in any directory you want to; the DDK samples list explicit 
#           pathnames to the include files, which requires that the sample 
#           code be located in a subdirectory parallel to the include 
#           directory.
#
#       3.  It uses an updated version of the VMM.INC include file and
#           assumes MASM 6's CMACROS.INC.
#
#       4.  It does not build a .386 file.  It only builds a .EXE
#           which must be run from the DOS prompt before loading
#           Windows Enhanced Mode.  This eliminates the need for 
#           adding a "device=" line to the [386Enh] section of 
#           SYSTEM.INI.  
#       
# A note to MASM 6.0 users:
#   If you run out of far heap during assembly, switch 
#   from ML.EXE to MLX.EXE by setting MASM60=1 in the makefile
#   or in the environment.
#       
#############################################################################

##### Define name of project #####
NAME = vfintd
DOSAPP=tstfint

##### Define debug build #####
DEBUG=-DDEBUG

##### Specify MASM 6.1 as default #####
# Switch to MASM 6.0 by setting MASM60=1 in the environment or here.
!ifndef MASM60 
MASM60=0
!endif

##### Tool macros #####
# -Zm tells MASM 6 to be compatible with MASM 5.1
!if $(MASM60)
ASM = mlx -c -W3 -Zm $(DEBUG)
!else
ASM = ml -c -W3 -Zm $(DEBUG)
!endif

##### Define target(s) #####
all : $(NAME).exe $(DOSAPP).exe

##### Build the MS-DOS Application #####
$(DOSAPP).obj:  $(DOSAPP).asm $(NAME).inc
    $(ASM) $(DOSAPP).asm

$(DOSAPP).exe: $(DOSAPP).obj
  link $(DOSAPP).obj;

##### Build the stub #####
vxdstub.obj: vxdstub.asm
    $(ASM) vxdstub.asm

vxdstub.exe: vxdstub.obj
    link vxdstub.obj;

##### Build the VxD #####
$(NAME).obj : $(NAME).asm
    $(ASM) $(NAME).asm

# Link the VxD then delete the stub loader.
$(NAME).exe: $(NAME).def $(NAME).obj vxdstub.exe
        link386 /NOI/NOD/NOP/MAP $(NAME),$(NAME).exe,,,$(NAME).def
        addhdr $(NAME).exe
        mapsym32 $(NAME)
        del vxdstub.exe

##### Clean Directory #####
clean:
    -del *.obj
    -del *.exe
    -del *.map
    -del *.sym

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -