Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

exporting codewarrior makefile to cygwin environment makefile

483 views
Skip to first unread message

KBG

unread,
Sep 29, 2006, 4:04:46 AM9/29/06
to
Hi ,

Is there any option available in codewarrior to export the makefile
that is created in codewarrior environment to that of cygwin
environment ?

Thx in advans,
Karthik Balaguru

KBG

unread,
Sep 29, 2006, 7:04:40 AM9/29/06
to
Hi,

I came to know that there is an option called "export to gnu makefile"
in CodeWarrior.
Need to look into it.

But is it available with version Codewarrior 5.x ?

But, i find some links stating that "export to gnu makefile" did not
work via google.
Anyhow, i will get back to you with clear info abt all stuffs after
giving it a try.

I found something as below w.r.t Codewarrior 6.2 in one of the
usergroups :
"I've got an evaluation copy of CodeWarrior 6.2 for a Coldfire board
(M5475EVB) along with some example code for the board and I was hoping
to be able to generate a GNU Makefile from the CodeWarrior project
files
- however when I try this I get:
"Couldn't export the makefile because either the linker rules support
files (*.lrf) were missing, or an error occurred while parsing them."
Seeing as I can't find any .lrf files, I assume the lack of them is the

source of the problem.
"

I am still looking into these .... share your views too with respect to
these.

Thx in advans,
Karthik Balaguru

KBG

unread,
Sep 29, 2006, 9:17:01 AM9/29/06
to
Hi friends,

I found the following in one of the Codewarrior pdf which is really
helpful and answered most of queries in mind. I am sharing the
selective info from the pdf here :

" The general approach of the CodeWarrior IDE is more high-level. The
details of the build
process are hidden and transparent. There is typically no command line
visible. The project
manager has access to all the settings and directs the build according
to the state of all the
options without reference to a command line. There is no makefile.
There is a makefile
importer that can read a Visual C++ makefile (or a GNU makefile) and
create a orresponding
(but not identical) CodeWarrior project. You can also export a
CodeWarrior project as a
makefile. But the IDE does not itself use a makefile in any way. "

Exporting Codewarrior projects to GNU Makefiles
=====================================
This section describes how to export CodeWarrior project files to GNU
makefiles. To
do this:
1. Open the CodeWarrior project you wish to convert.
2. Choose Export Project as GNU Makefile from the Project menu.
The project is converted. Once the conversion is complete a
confirmation
message is displayed in the Project Messages window. The format of the
message
is:
<projectname>.mcp exported successfully to <pathname>/<project name>.mk
The makefile is saved in the same location as the CodeWarrior project
file.

Importing GNU makefiles into Codewarrior projects
=====================================
The CodeWarrior IDE can import some simple Visual C nmake or GNU
makefiles into
CodeWarrior IDE project files. The CodeWarrior IDE uses the Makefile
Importer
wizard to process the files. The wizard performs the following tasks:
· parses the makefile
· creates a CodeWarrior IDE project
· creates build targets
· adds source files as specified in the makefile
· matches the information specified in the makefile to the output
name, output
directory, and access paths of the created build targets
· selects a linker to use with the project.

Note
=======
The CodeWarrior Makefile Importer Wizard has some limits on the
complexity of
makefile that it can import. It might fail to convert complex
makefiles, or makefiles that
contain certain non-standard constructs. In addition, the Makefile
Importer is not able
to import makefiles that have been created by the Makefile Exporter.
The use of the
Makefile Importer is deprecated.

Regards,
Karthik Balaguru

KBG

unread,
Oct 9, 2006, 3:19:36 AM10/9/06
to
Hi,
It is not available with Codewarrior V5x. We Need to write our own
makefiles for other cygwin environment . V6.x has the import/export
makefile features.
0 new messages