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

📄 makefile

📁 scsi脚本文件(scripts)编程例子
💻
字号:
#######################################################################
#
# Makefile for SCSI device query sample program
#
# Uses Borland C++ 4.5 and TASM 3.1. Other versions may work,
# but have not been tested.
#
# Also uses Symbios Logic NASM compiler for SCRIPTS code. This
# utility is available on the Symbios Logic ftp site, or in the
# Software Development Kit.
#
# Requires GENTOOL.C and GEN_TOOL.H file from Symbios Logic
# Software Development Kit.
#
# Uses the following environment variables to locate executables,
# libraries, and include files.
#
#     PATH=<Borland C++ path>\BIN;<TASM path>
#     LIB=<Borland C++ path>\LIB
#     INCLUDE=<Borland C++ path>\INCLUDE
#
#######################################################################


# set flags for debug or release build

!ifdef DEBUG
CC_FLAGS = -N -v
LINK_FLAGS = -v
!else
CC_FLAGS =
LINK_FLAGS =
!endif

CC = bcc
LINK = tlink 
NASM = nasm

OBJECTS = squery.obj spci.obj s8xx.obj sscsi.obj gen_tool.obj

.c.obj:
	$(CC) $(CC_FLAGS) -I$(INCLUDE) @bcc.cfg $<

squery.exe: bcc.cfg tlink.rsp $(OBJECTS)
	$(LINK) $(LINK_FLAGS) -L$(LIB) @tlink.rsp, $<, $*, cl.lib

squery.obj:    gen_tool.h spci.h s8xx.h sscsi.h
spci.obj:      gen_tool.h spci.h s8xx.h
s8xx.obj:      gen_tool.h spci.h s8xx.h
sscsi.obj:     gen_tool.h spci.h s8xx.h sscsi.h genscsi.h

genscsi.h:     genscsi.ss
   $(NASM) $** -p $< -l genscsi.lis -u


all:  clean squery.exe

clean:
   del *.obj
   del *.cfg
   del genscsi.h
   del squery.exe


# compiler configuration file
bcc.cfg : 
   copy &&|
-b                ; Allocate enums as ints
-K-               ; chars treated as signed
-ff               ; use fast floating point
-A-               ; Borland extensions
-k                ; generate a standard stack frame
-vi               ; no inline expansion
-H-               ; do not use precompiled headers
-3                ; 386 instructions
-a1               ; BYTE alignment
-ml               ; large memory model
-c                ; compile but don't link
; Warnings
-wsig             ; conversion may lose significant digits warning
-wdef             ; possible use of identifier before definition
-wnod             ; no Declaration for function x
-wamb             ; ambiguous operators need parenthesis
-wuse             ; identifer declared but never used

| $@


# linker response file
tlink.rsp: 
   copy &&|
/Tde+             ; build real mode EXE file
/3+               ; accept 32-bit code produced by TASM
/c+               ; case sensitive link
/m+               ; create a map file
/i+               ; initialize all segments
c0l.obj+          ; use large memory model startup code
$(OBJECTS)
| $@

⌨️ 快捷键说明

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