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

📄 smbios.mak

📁 This program displays all SMBIOS/DMI information within the BIOS. The information is organized as a
💻 MAK
字号:
# Note that the MASM options assume MASM 5.10b
# To run on your own systemm,
# 1.  Unzip the files into a subdirectory, say SMBIOS
# 2.  Create a subdirectory under SMBIOS called RET
# 3.  Move the file PRINTF.OBJ into RET
# 4.  If you want the executable copied to another directory
#     in addition to RET. define a variable in yoru environment
#     called BINDIR -- be sure to end that path with a backslash
#     as in Set BINDIR=C:\BIN\
# 4.  Run NMAKE /F SMBIOS.MAK

OEM=RET 		# Default 3-letter OEM name
PNAME=SMBIOS		# Product file basename

O=$(OEM)\		# OEM-specific files
R=			# Source directory
S=R:\MAX\STATUTIL\	# Utility routines

ALLINC=$(O)		# INCLUDE search path

LD=link
MASM1=ML
MASM2=MASM

AFLAGS1=/W1 /Zm /c	# MASM 6.11a options
AFLAGS2=/W1 /p /t /Mu /r # MASM 5.10b options
LFLAGS=/map /line /nod	# Linker options

PROD_DEP=$(INCDIR)SMBIOS.INC $(PNAME).MAC

{$(R)}.asm{$(O)}.obj:
    Set INCLUDE=$(ALLINC);$(INCLUDE)
    $(MASM1) $(AFLAGS1) /Fo$(O) %s

{$(S)}.asm{$(O)}.obj:
    Set INCLUDE=$(ALLINC);$(INCLUDE)
    $(MASM1) $(AFLAGS1) /Fo$(O) /DW16 %s

ALL:	$(O)$(PNAME).EXE \
!if "$(BINDIR)" != ""
    $(BINDIR)$(PNAME).EXE
!endif


DEPSCAN = -r$(SRCROOT)
###SCAN = $(DEPSCAN) -p{$$(P)}
DEPSCAN = $(DEPSCAN) -t$(O)={$$(O)}
DEPSCAN = $(DEPSCAN) *.asm *.rc
DEPSCAN = $(DEPSCAN) >$(O)smb_dep.inc

DEPSCAN: $(PNAME).mak
    depscan $(DEPSCAN)

$(PNAME).mak:	$(O)smb_dep.inc

!if exist ($(O)smb_dep.inc) == 0
!if [depscan $(DEPSCAN)]
!endif
!endif
!include $(O)smb_dep.inc

############### SMBIOS Object files ###########

OBJS=$(O)$(PNAME).OBJ	\
     $(O)SMB_FCN.OBJ	\
     $(O)SMB_MSC.OBJ	\
     $(O)SMB_TAB.OBJ	\
     $(O)VERSION.OBJ	\
     $(O)STRFNS.OBJ	\
     $(O)PRINTF.OBJ

$(O)$(PNAME).OBJ:	$(PNAME).ASM $(SMBIOS_ADEP)

$(O)VERSION.OBJ:	VERSION.ASM $(VERSION_ADEP)

$(O)PRINTF.OBJ: 	$(S)PRINTF.ASM

$(O)STRFNS.OBJ: 	STRFNS.ASM

$(O)SMB_FCN.OBJ:	SMB_FCN.ASM $(SMB_FCN_ADEP)

$(O)SMB_MSC.OBJ:	SMB_MSC.ASM $(SMB_MSC_ADEP)

$(O)SMB_TAB.OBJ:	SMB_TAB.ASM $(SMB_TAB_ADEP)
    Set INCLUDE=$(ALLINC);$(INCLUDE)
    $(MASM2) %s $(AFLAGS2), $(O) /DW=$(W);

############### SMBIOS Executable #############

$(O)$(PNAME).EXE:	$(OBJS)    $(PNAME).mak
	$(LD) @<<$(O)$(PNAME).arf
$(OBJS: =+^
)
$*.exe
$*.map
$(LFLAGS)
NUL.def /CPARMAXALLOC:16
<<KEEP

$(BINDIR)$(PNAME).EXE: $(O)$(PNAME).EXE
    copy /y %s $@

⌨️ 快捷键说明

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