HC08: object-file location

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HC08: object-file location

1,786 Views
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

Labels (1)
Tags (1)
0 Kudos
Reply
2 Replies

982 Views
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

982 Views
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 Kudos
Reply