![]() |
Telelogic Rhapsody (steve huntington) | ![]() |
Topic Title: What targets does Rhapsody give to make? Topic Summary: Created On: 8-Feb-2007 14:52 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi,
I'm trying to write my own makefile template for use with Rhapsody, but am having trouble figuring out how Rhapsody calls make, and which targets in the makefile will be triggered in which situation (ie. for a normal build and a clean build). Any ideas? It doesn't seem to be as simple as "all" and "clean"! Dan |
|
![]() |
|
![]() |
|
Hi Dan,
Rhapsody uses a batch file to run make. In your environment properties file you need to set the following property: Property InvokeMake String "\"$OMROOT\\etc\\Executer.exe\" \"$OMROOT\\etc\\mymake.bat $makefile $maketarget\"" be careful of how many quotes and slashes as Rhapsody turns \" into " and \\ into \ "mymake.bat" is a dos batch file as follows: [FONT=Courier New]@echo off REM this batch file uses Cygwin make.exe REM there is a problem with the gmake.exe program REM it can be called from a dos command window REM but it cannot be called from an IDE (like Rhapsody) REM as it cannot pass on the window handle path = C:\altera\excalibur\sopc_builder\bin\nios-gnupro\bin;%path% if "%2"=="" set target=all if "%2"=="build" set target=all if "%2"=="rebuild" set target=clean all if "%2"=="clean" set target=clean echo Setting environment for SHARC make -f %1 %target%[/FONT] The options "build", "rebuild" and "clean" are set by Rhapsody when you make, rebuild or clean. These are chenged to "all", "clean" and "clean all" to run the appropriate makefile rules ![]() Hope this helps, Ian |
|
![]() |
|
![]() |
|
Thanks Ian.
I've worked out what was going on: we use a third-party utility to call make (on a remote host), and it was getting confused when I gave it additional arguments to pass on. This meant that the targets were not getting through to make! Dan |
|
![]() |
Telelogic Rhapsody
» Rhapsody Category » Rhapsody
»
What targets does Rhapsody give to make?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.