makefile
上传用户:lnzz01
上传日期:2013-05-23
资源大小:130k
文件大小:3k
- BUILD_TYPE=block
- !INCLUDE $(BASEDIR)incmaster.mk
- LINK = link
- DEVICE = VIRLDISK
- PDRNAME = VirlDisk
- OBJS = i386init.obj i386ayncinit.obj i386asyncque.obj i386onioctl.obj
- ASM = ml
- AFLAGS = -coff -DBLD_COFF -DIS_32 -nologo -W3 -Zd -c -Cx -DMASM6
- AFLAGS = $(AFLAGS) -DINITLOG -I$(DDKROOT)srcblockinc -I$(INC32)
- ASMENV = ML
- ########## Definitions for linker #############
- LFLAGS = /VXD /NOD /EXETYPE:DYNAMIC
- ########## Base inference rules ###################
- # MASM 6 only inference rules
- .asm{i386}.obj:
- set $(ASMENV)=$(AFLAGS)
- $(ASM) -Fo$*.obj $<
- ############### VxD device section ####################
- i386$(DEVICE).map: i386$(DEVICE).pdr clean
- i386$(DEVICE).pdr : $(OBJS)
- @echo link -OUT:$@
- $(LINK) @<<i386$(DEVICE).lnk -def:<<$(DEVICE).def
- $(LFLAGS)
- -ignore:4078 -ignore:4039 -ignore:4070
- -out:i386$(PDRNAME).pdr
- -map:i386$(DEVICE).map
- libc.lib
- $(OBJS)
- <<
- VXD $(DEVICE)
- DESCRIPTION 'DOS386 $(DEVICE) Device (Version 4.0)'
- SEGMENTS
- _LPTEXT CLASS 'LCODE' PRELOAD NONDISCARDABLE
- _LTEXT CLASS 'LCODE' PRELOAD NONDISCARDABLE
- _LDATA CLASS 'LCODE' PRELOAD NONDISCARDABLE
- _TEXT CLASS 'LCODE' PRELOAD NONDISCARDABLE
- _DATA CLASS 'LCODE' PRELOAD NONDISCARDABLE
- CONST CLASS 'LCODE' PRELOAD NONDISCARDABLE
- _TLS CLASS 'LCODE' PRELOAD NONDISCARDABLE
- _BSS CLASS 'LCODE' PRELOAD NONDISCARDABLE
- _MSGTABLE CLASS 'MCODE' PRELOAD NONDISCARDABLE IOPL
- _MSGDATA CLASS 'MCODE' PRELOAD NONDISCARDABLE IOPL
- _IMSGTABLE CLASS 'MCODE' PRELOAD DISCARDABLE IOPL
- _IMSGDATA CLASS 'MCODE' PRELOAD DISCARDABLE IOPL
- _ITEXT CLASS 'ICODE' DISCARDABLE
- _IDATA CLASS 'ICODE' DISCARDABLE
- _PTEXT CLASS 'PCODE' NONDISCARDABLE
- _PDATA CLASS 'PDATA' NONDISCARDABLE SHARED
- _STEXT CLASS 'SCODE' RESIDENT
- _SDATA CLASS 'SCODE' RESIDENT
- _DBOSTART CLASS 'DBOCODE' PRELOAD NONDISCARDABLE CONFORMING
- _DBOCODE CLASS 'DBOCODE' PRELOAD NONDISCARDABLE CONFORMING
- _DBODATA CLASS 'DBOCODE' PRELOAD NONDISCARDABLE CONFORMING
- _16ICODE CLASS '16ICODE' PRELOAD DISCARDABLE
- _RCODE CLASS 'RCODE'
- EXPORTS
- $(DEVICE)_DDB @1
- <<
- clean:
- @echo delete tmp file
- @echo Hi...Virldisk all build finished
- -@if exist i386*.obj del i386*.obj
- -@if exist i386*.map del i386*.map
- -@if exist i386*.sym del i386*.sym
- -@if exist *.bak del *.bak