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

📄 makefile.gnu

📁 ertfs文件系统里面既有完整ucos程序
💻 GNU
字号:
# GNU Makefile for ERTFSSA
# This is for ERTFS_STAND_ALONE only. Not used in RTIP enviroment

# Select the target here or pass it in on the command line
#targ = CYGMN10300
#targ = CYGTX39
#targ = CYGSLEB
#targ = CYGMA860
#targ = RTPXD860
targ = POLSD60
#targ = RTPXSD60
#targ = UCOSSD60
#targ = POLD860
#targ = POLG860
#targ = CMXD860
#targ = TXHCSI
#targ = RTPXHCSI
#targ = POLHCSI
	
# Select the version (o)ptimzed or (V)debug here or pass it in on the command line
dbv = v

relenv = Y



# Select the app here or pass it in on the command line
app = rtfsdem
#app = mkrom


# Get some variables so we can set up modules

# set the following to "Y" for CDFS Support, "N" otherwise.
docdfs = "N"

include mk.inc


########################################################################
# SOURCE PATHS
########################################################################
vpath %.c   ..
vpath %.h   ..


########################################################################
# OPERATING SYSTEM/ENVIRONMENT SPECIFIC MODULES
########################################################################
# The only files that should go here are files that are specific to one
# particular target, operating system, compiler, etc. and must go into 
# the library.  Make sure your conditional(s) are as general as possible.

ifeq ($(os),RTPX)
# RTPX General modules
modules += rtpx rtpxport
endif

ifeq ($(docdfs), "Y")
modules += cdapi cdglobal cdblock cdlowl cdapimsc cdmemory cdportme cdutil
endif

ifeq ($(targ),CMXD860)
modules += cmx_init cxskv5 cxver5 initppc
endif

ifeq ($(targ),POLD860)
modules += initppc pcc850
else
modules += pcmctrl
endif



ifeq ($(compiler),SDS68KCOMPILER)
# RTPX General modules
modules += start
endif

ifeq ($(compiler),SDS68KCOMPILER)
# RTPX General modules
modules += start
endif

ifeq ($(compiler),DIAB860COMPILER)
modules += crt0d860
endif

ifeq ($(compiler),POWERPCEABI)
modules += crt0g860
endif

ifeq ($(compiler),HIGHCCOMPILER)
# RTPX General modules
modules += ssi_init rtippm pcvid
ifeq ($(os),RTPX) 
# RTPX General modules
modules += rtpxpm
endif
endif




ifeq ($(os),ECOS)
ifeq ($(targ),MN10300)
modules += cyg_ser.cxx
endif
ifeq ($(targ),CYGSLEB)
modules += gdbswap
endif
endif

########################################################################
# LIBRARY MODULES
########################################################################

modules  += rtfsinit drobj apiutil block util   \
	lowl api pc_memry pc_enum devio \
	chkmedia format criterr bss  pcconst portio portisr portkern

modules  += pcmsram romdisk ramdisk romdisk ide_drv fl_drver hostdisk
modules  += pcmctrl pcmcia


########################################################################
# APPLICATION MODULES
########################################################################


appmodules  += rtfsdem
appmodules += tstsh chkdsk


#############################################################################
# SETUP
#############################################################################

includes += ./
defines  += $(targ)
defines  += ERTFS_SA=1
includes += .


# clean up the modules, includes, defines
modules  := $(sort $(modules))
includes := $(sort $(includes))
defines  := $(sort $(defines))

# now set up the object list
objects = $(modules:%=%.$(obj))


appmodules  := $(sort $(appmodules))

# now set up the object list
appobjects = $(appmodules:%=%.$(obj))


#############################################################################
# RULES
#############################################################################


$(app)$(dbv).$(exe): $(appobjects) ertfs$(dbv).$(lib)

ertfs$(dbv).$(lib): $(objects)

include rules.inc


#############################################################################

⌨️ 快捷键说明

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