Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Overnight build on managed make projects

>> I have a bunch of projects that were built using managed make files.  
>> I now need to compile these on a standalone box using an overnight 
>> build script. 
>>
>> Is there a plugin or tool that will create standalone makefiles that I 
>> can call from my script?  I tried to use the eclipse made ones, but 
>> they use absolute directories instead of relative once, and the 
>> directory structure on the overnight build machine does not match the 
>> developers directory structure.

> If generated makefile does not work you can enter a bug report to track 
> this issue.

The thing however is that the standard gcc based makefile does use
relative dirs (see below), except for linked resources that is.
Gerald, perhaps you can post some additional info, like the toolchain
you are using and perhaps an excerpt from the makefile that shows the
use of absolute dirs.


# Each subdirectory must supply rules for building sources it contributes
src/%.o: ../src/%.c
	@echo 'Building file: $<'
	@echo 'Invoking: Cygwin C Compiler'
	gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o"$@" "$<"
	@echo 'Finished building: $<'
	@echo ' '


Back to the top