|
|
Re: eclipse always rebuild all object files [message #1847193 is a reply to message #1791842] |
Mon, 18 October 2021 22:34 |
Francisco Carvalho Messages: 1 Registered: October 2021 |
Junior Member |
|
|
Hi everyone,
The situation keeps happening to me with eclipse 2021-06, as today, 2021-OCT-18
-----------------------------------------------------------------------------------------------------------
This is my .project file
-----------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>asio_timer_asynch</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
<triggers>clean,full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.cdt.core.cnature</nature>
<nature>org.eclipse.cdt.core.ccnature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
</natures>
</projectDescription>
-----------------------------------------------------------------------------------------------------------
The final part of the makefile:
-----------------------------------------------------------------------------------------------------------
-include ../makefile.defs
OPTIONAL_TOOL_DEPS := \
$(wildcard ../makefile.defs) \
$(wildcard ../makefile.init) \
$(wildcard ../makefile.targets) \
BUILD_ARTIFACT_NAME := asio_timer_asynch
BUILD_ARTIFACT_EXTENSION :=
BUILD_ARTIFACT_PREFIX :=
BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),)
# Add inputs and outputs from these tool invocations to the build variables
# All Target
all: main-build
# Main-build Target
main-build: asio_timer_asynch
# Tool invocations
asio_timer_asynch: $(OBJS) $(USER_OBJS) makefile objects.mk $(OPTIONAL_TOOL_DEPS)
@echo 'Building target: $@'
@echo 'Invoking: Cross G++ Linker'
g++ -L/usr/local/lib -L/usr/lib/ -o "asio_timer_asynch" $(OBJS) $(USER_OBJS) $(LIBS)
@echo 'Finished building target: $@'
@echo ' '
# Other Targets
clean:
-$(RM) $(CC_DEPS)$(C++_DEPS)$(EXECUTABLES)$(OBJS)$(C_UPPER_DEPS)$(CXX_DEPS)$(C_DEPS)$(CPP_DEPS) asio_timer_asynch
-@echo ' '
.PHONY: all clean dependents
-include ../makefile.targets
(END)
Any ideas how to sort out of this behaviour?
Many thanks,
-Francisco
|
|
|
|
Powered by
FUDForum. Page generated in 0.05098 seconds