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

📄 makefile

📁 微软的USB开发包、Windows 98 USB Mass Storage Sample Driver Design Notes、USB驱动源码
💻
字号:
#****************************************************************************
#                                                                           *
# THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY     *
# KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE       *
# IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR     *
# PURPOSE.                                                                  *
#                                                                           *
# Copyright 1999  Microsoft Corporation.  All Rights Reserved.              *
#                                                                           *
#****************************************************************************

BUILD_TYPE=base
!INCLUDE $(BASEDIR)\inc\master.mk

!ifdef DEBUG
DDEBUG  =-DDEBLEVEL=1 -DDEBUG
!else
DDEBUG  =-DDEBLEVEL=0
!endif


CVXDFLAGS  = -Zdp -Gs -c -DIS_32 -Zl $(DDEBUG) -I$(INC32) -I$(DDKROOT)\src\block\inc
LFLAGS     = -machine:i386 -debug:notmapped,full -debugtype:cv -subsystem:console kernel32.lib 
AFLAGS     = -coff -DBLD_COFF -DIS_32 -W2 -Zd -c -Cx -DMASM6 $(DDEBUG) -I$(INC32)

all: obj\i386\usbstor.vxd

obj\i386\usbstor.obj: usbstor.c
	cl $(CVXDFLAGS) -Fo$@ %s

obj\i386\usbaer.obj: usbaer.c
	cl $(CVXDFLAGS) -Fo$@ %s

obj\i386\usbio.obj: usbio.c
	cl $(CVXDFLAGS) -Fo$@ %s

obj\i386\usbdbg.obj: usbdbg.c
	cl $(CVXDFLAGS) -Fo$@ %s

obj\i386\usbctl.obj: usbctl.asm
	ml $(AFLAGS) -Fo$@ %s


obj\i386\usbstor.vxd: obj\i386\usbstor.obj obj\i386\usbctl.obj obj\i386\usbaer.obj obj\i386\usbio.obj obj\i386\usbdbg.obj\
                  usbstor.def
        echo >NUL @<<usbstor.crf
-MACHINE:i386 -DEBUG:NONE -PDB:NONE 
-DEF:usbstor.def -OUT:obj\i386\usbstor.vxd -MAP:obj\i386\usbstor.map -LIBPATH:$(LIB32) -ignore:4078 -ignore:4039
-VXD $(BASEDIR)\lib\i386\free\vxdwraps.clb obj\i386\usbstor.obj obj\i386\usbaer.obj obj\i386\usbctl.obj obj\i386\usbio.obj obj\i386\usbdbg.obj
<<
!ifndef PASS0ONLY
		@echo link -OUT:$@
        link @usbstor.crf
        cd obj\i386
        del usbstor.pdr
        rename usbstor.vxd usbstor.pdr
        mapsym usbstor
	cd ..\..
!endif

clean:
	-@if exist obj\i386\*.obj del obj\i386\*.obj
	-@if exist obj\i386\*.pdr del obj\i386\*.pdr
	-@if exist obj\i386\*.exp del obj\i386\*.exp
	-@if exist obj\i386\*.map del obj\i386\*.map
	-@if exist obj\i386\*.sym del obj\i386\*.sym
	-@if exist obj\i386\*.lib del obj\i386\*.lib
	-@if exist *.pdb del *.pdb
	-@if exist *.bak del *.bak
	

⌨️ 快捷键说明

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