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

📄 makefile

📁 利用POS机具硬件改为条纹码扫描器的编程代码
💻
字号:

#
#  Sample makefile for building the formatted stream I/O demonstration
#  using the Borland C++ compiler.
#

COMPDIR         =        E:\POS\POS                      # Compiler home directory
BCCFG                   =       turboc.cfg              # BC++ compiler configuration file
NOCFG                   =       noinit.cfg              # BC++ compiler configuration file
MKF                     =       makefile                        # Build everything if the makefile is changed

MODEL                   =       m
CPU                     =       1                                       # 0 - 8086, 1 - 80186/80386

WARNINGS    =  1                                        # 0 - none, 1 - all

DUPSTRING       =       1                                       # Duplicate string merged
CHECKSTACK      =  1                                    # Check for stack overflow
STACK                   =       8192                            # Application stack size (in bytes)

!include        "paradigm.mkf"                  # Compiler/linker customization options


#
#       Implicit rules for building C, C++, and assembly source modules
#


.cpp.obj:
        $(COMPDIR)\bin\bcc -K -zD_NOINIT -zBNOINIT $(CFLAGS) $*.cpp

.c.obj:
        $(COMPDIR)\bin\bcc -K -zD_NOINIT -zBNOINIT $(CFLAGS) $*.c

.asm.obj:
        $(COMPDIR)\bin\tasm $(AFLAGS) $*.asm


#
#       STARTUP - Startup object(s) that must be linked first
#       OBJS    - Other object files that form the application
#

STARTUP         =       $(COMPDIR)\LIB\5920401$(MODEL).obj
OBJS            =       main.obj noinit.obj 


#
#       The remainder of the make file is the targets and dependencies
#



main.$(OUT):           main.rom main.$(CFG)
        $(COMPDIR)\bin\locate -cmain.$(CFG) $(PFLAGS) $*

        del *.rom
        del *.map
        del *.obj
main.rom:              tlink.cfg $(STARTUP) $(OBJS)
        $(COMPDIR)\bin\tlink @&&!
$(STARTUP) $(OBJS)
$*.rom
$*.map
$(LIBS)
!


#
#       Update the compiler configuration file.  This ensures that a default
#       BC++ configuration file is never used to build an embedded application.
#

turboc.cfg:                      $(MKF)
  copy &&|
$(CFLAGS)
| turboc.cfg

tlink.cfg:                      $(MKF)
  copy &&|
$(LFLAGS)
| tlink.cfg


⌨️ 快捷键说明

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