Root directory for build command [message #88328] |
Mon, 01 December 2003 15:52 |
Eclipse User |
|
|
|
Hi everybody!
The problem seems to be very simple. I've already found a workaround. I'm
just wondering is there any natural way of doing this.
I created a C project containing hello.c and Makefile.Then I created a
Make target 'hello'. When I tried to build the target CDT listed all
directories in my $HOME and launched the make like this:
make -j1 -fMakefile -Cdir1 && make -j1 -fMakefile -Cdir2 && make -j1
-fMakefile -Cdir3 ... and so on for every directory in my $HOME.
My project is located in $HOME/workspace/ccc, so I opened project
property, unchecked 'Use default' field on the 'Make builder' page and
typed the following build command:
make -Cworkspace/ccc
Nothing changed. Then I did the same fix for the target I created and
finally I've got what I wanted.
It seems kinda strange to me that I have to provide this information for
each target in the same project. Isn't it obvious that I want to start
make in my project directory. Even if want to use resources laying outside
of this directory I can make all adjustements I need inside of my
Makefile. I find it logical to start default make in the project directory.
I also don't understand the reason of adding -fMakefile option to the make
command line. Can't we just let the make itself find makefile or Makefile?
Please tell me where I'm wrong.
Sincerely,
Serge
P.S. (Just in case)
Tools used:
QNX 6.2.1
Eclipce 2.1.2
CDT 1.2.0
|
|
|
Powered by
FUDForum. Page generated in 0.05944 seconds