Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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 18:17 Go to next message
Ramsey Harris is currently offline Ramsey Harris
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 10:23 Go to previous message
Dave Russo is currently offline Dave Russo
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: Sun Apr 20 12:32:10 EDT 2014

Powered by FUDForum. Page generated in 0.01587 seconds