cpubase.mak

来自「flashfx dcl of ARM cpu for vxworks」· MAK 代码 · 共 110 行

MAK
110
字号
#----------------------------------------------------------------------------
#				Description
#
#	This make file controls	the generation of the DLCPUFAM library for the
#	ARM CPU	family.	 It is designed	for use	with GNU Make or compatibles.
#----------------------------------------------------------------------------

#----------------------------------------------------------------------------
#				Revision History
#	$Log: cpubase.mak $
#	Revision 1.1  2005/09/02 18:19:50Z  Pauli
#	Initial revision
#	Revision 1.1  2005/09/02 19:19:50Z  Garyp
#	Initial revision
#	Revision 1.2  2005/09/02 19:19:50Z  Garyp
#	Cleaned up the exclusion handling logic to use common functionality in
#	dcl.mak.
#	Revision 1.1  2005/06/13 04:08:02Z  pauli
#	Initial revision
#	Revision 1.3  2005/06/13 04:08:02Z  PaulI
#	Added support for DCL lib prefix.
#	Revision 1.2  2005/02/22 18:31:30Z  GaryP
#	Minor syntax cleanup.
#	Revision 1.1  2005/01/16 23:17:57Z  GaryP
#	Initial revision
#----------------------------------------------------------------------------

#-----------------------------------------------------------
#	Settings
#-----------------------------------------------------------

# Retrieve the list of any modules we must exclude from	the library
-include exclude.lst

TARGNAME = $(B_RELDIR)\lib\dlcpufam.$(B_LIBEXT)

CPUBASEINCLUDES	=

CPUBASESRC = stub.s
CPUBASEOBJ = stub.$(B_OBJEXT)

ifneq ($(strip $(EXCLUSIONOBJ)),)
  # If exclusion modules were specified in exclude.lst, remove the
  # modules from CPUBASEOBJ, and ensure that the DCLCLEANEXCLUDE
  # target is built so that any now undesired object modules laying
  # around are not unintentionally incorporated into the library.
  CPUBASESRC := $(filter-out $(EXCLUSIONSRC), $(CPUBASESRC))
  CPUBASEOBJ := $(filter-out $(EXCLUSIONOBJ), $(CPUBASEOBJ))
  EXCLUDETARG  = DCLCLEANEXCLUDE
  EXCLUSIONDEL = $(subst .$(B_OBJEXT),,$(EXCLUSIONOBJ))
else
  EXCLUDETARG  =
endif


#-----------------------------------------------------------
#	Targets
#-----------------------------------------------------------

CPUBASETARGETS : CPUBASEDIR TOOLSETINIT	$(EXCLUDETARG) $(TARGNAME)


#-----------------------------------------------------------
#	Default	Project	Rules
#-----------------------------------------------------------

include	$(P_ROOT)\product\dcl.mak


#-----------------------------------------------------------
#	Build Commands
#-----------------------------------------------------------

CPUBASEDIR :
	@echo Processing CPU\$(P_CPUFAMILY)\CPUBase...

$(TARGNAME) : dlcpufam.$(B_LIBEXT)
	$(B_COPY) dlcpufam.$(B_LIBEXT) $(TARGNAME)

dlcpufam.$(B_LIBEXT) : cpubase.mak $(CPUBASEOBJ)
	if exist dlcpufam.$(B_LIBEXT) del dlcpufam.$(B_LIBEXT)
	$(B_BUILDLIB) dlcpufam.$(B_LIBEXT) *.$(B_OBJEXT)


#-----------------------------------------------------------
#	Dependencies
#-----------------------------------------------------------

stub.$(B_OBJEXT)     : $(CPUBASEINCLUDES) stub.s


#-----------------------------------------------------------
#	Special	Targets	for Windows CE Platform	Builder	only
#-----------------------------------------------------------

mswcepb	: CPUBASEDIR TOOLSETINIT
	@echo #							 >sources
	@echo # This is an auto-generated file -- DO NOT EDIT	>>sources
	@echo #							>>sources
	@echo TARGETNAME=$(B_DCLLIBPREFIX)DLCPUFAM		>>sources
	@echo TARGETTYPE=LIBRARY				>>sources
	@echo TARGETLIBS=					>>sources
	@echo EXEENTRY=						>>sources
	@echo SOURCES=$(CPUBASESRC)				>>sources





⌨️ 快捷键说明

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