Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 8-Feb-2007 14:52
User is offline View Users Profile Print this message


Dan McNeill

Posts: 10
Joined: 1-Feb-2007

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
Report this to a Moderator Report this to a Moderator
 8-Feb-2007 15:10
User is offline View Users Profile Print this message


Ian Turner

Posts: 25
Joined: 3-Feb-2006

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
Report this to a Moderator Report this to a Moderator
 8-Feb-2007 15:46
User is offline View Users Profile Print this message


Dan McNeill

Posts: 10
Joined: 1-Feb-2007

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.