HC08: object-file location

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

HC08: object-file location

1,849件の閲覧回数
coder_c_ening
Contributor I
Hello,
I'm using CodeWarrior for my HC08-projects.
 
I'd like the compiler to place the object-files into a local directory outside the project directory (which is on a network drive).
 
The project directory contains some .ini-files (e.g. HC08_Full_Chip_Simulator.ini) with an entry "OBJPATH={Project}bin". But this entry is ignored.
 
The object-files are always created in <project>\<project_name>_Data\Standard\ObjectCode.
 
If I use compiler "Command Line Arguments" "-ObjN=c:\temp\%n.o" then I get a warning:
"Ignoring old option content 'c:\temp\%n.o' because of second one 'Z:\Projects\HC08test01\HC08test01_Data\Standard\ObjectCode\man.c.o'"
I can not find where this second one is set and how to change or disable it.
 
Trying to use the compiler command line argument -Env"OBJPATH=c:\temp\" leads to no result either, it seems to be ignored.

Can anybody help me?
 
Thanks
 
 
 

Message Edited by CrasyCat on 2007-04-13 01:39 PM

ラベル(1)
タグ(1)
0 件の賞賛
返信
2 返答(返信)

1,045件の閲覧回数
CrasyCat
Specialist III
Hello
 
If you are building from the IDE, you cannot change the location of the generates object files.
The IDE request the object files to be located in the project _Data directory.
 
If you need to get the files some other places I see only 2 solutions:
 1- You build from batch using a make file. That means you need to convert your project to a make file
     and build it using a make utility. You can use either the make.exe delivered with HC08 tools or
     any other make utility (gnu make, nmake, ....).
     Note that in that case you have to create your make file manually.
  2- You activate the "BatchRunner PostLinker" in the "Target Settings" panel and run a batch file at the end
     of the build process. In that batch file you can copy all object file from their original directory to the
     final one.
 
I hope this helps.
 
CrasyCat

1,045件の閲覧回数
coder_c_ening
Contributor I
Hello CrasyCat,
 
unfortunately (1-) is not applicable for me because I want to use the IDE.
And (2-) does not help, because the goal was not to have the files in the local directory but not to generate them on the server (mainly for network traffic and performance reasons).
 
Nevertheless thanks for the quick reply.
0 件の賞賛
返信