Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Real-Time Software Components (RTSC) » Using target properties in a makefile rule
Using target properties in a makefile rule [message #3448] Tue, 26 May 2009 22:17 Go to next message
Ramsey Harris is currently offline Ramsey HarrisFriend
Messages: 22
Registered: July 2009
Junior Member
Champs,

Is it possible to access the target properties in a makefile rule?

For example, in my config.bld script I have the following:

var WinCE = xdc.useModule('microsoft.targets.arm.WinCE');
WinCE.projectRoot = " C:/WINCE600/OSDesigns/EVM_3530/EVM_3530/Wince600/TI_EVM_3530 _ARMV4I ";

I would like to access this property in a makefile rule. Something like

..omap3530_wince: lpm_omap.c
-$(RM) $@
$(MSG) "#"
$(MSG) "# WindowsCE Platform Builder: lpmdrv.dll (debug)"
build_wince.bat $(WinCE_projectRoot) debug
$(TOUCH) $@

Thanks
~ Ramsey
Re: Using target properties in a makefile rule [message #3483 is a reply to message #3448] Wed, 27 May 2009 14:23 Go to previous message
Dave Russo is currently offline Dave RussoFriend
Messages: 172
Registered: July 2009
Senior Member
Ramsey Harris wrote:
> Champs,
>
> Is it possible to access the target properties in a makefile rule?
>
> For example, in my config.bld script I have the following:
>
> var WinCE = xdc.useModule('microsoft.targets.arm.WinCE');
> WinCE.projectRoot =
> " C:/WINCE600/OSDesigns/EVM_3530/EVM_3530/Wince600/TI_EVM_3530 _ARMV4I ";
>
> I would like to access this property in a makefile rule. Something like
>
> ..omap3530_wince: lpm_omap.c
> -$(RM) $@
> $(MSG) "#"
> $(MSG) "# WindowsCE Platform Builder: lpmdrv.dll (debug)"
> build_wince.bat $(WinCE_projectRoot) debug
> $(TOUCH) $@
>
> Thanks
> ~ Ramsey
Add the following to your package.bld file (or config.bld):
Pkg.makePrologue = "WinCE.projectRoot = " + WinCE.projectRoot;
Previous Topic:Change "Warning" to "Remark"
Next Topic:List of RTSC defined make macros
Goto Forum:
  


Current Time: Fri Dec 27 02:50:59 GMT 2024

Powered by FUDForum. Page generated in 0.03728 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top