在ubuntu下安装了最新版到eclipse,建立了一个标准版的Gcc工程,自动生成的makefile如下:
################################################################################
# Automatically-generated file. Do not edit!
################################################################################
-include ../makefile.init
RM := rm -rf
# All of the sources participating in the build are defined here
-include sources.mk
-include subdir.mk
-include src/subdir.mk
-include objects.mk
ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
endif
-include ../makefile.defs
# Add inputs and outputs from these tool invocations to the build variables
# All Target
all: HelloLinux
# Tool invocations
@echo 'Building target: $@'
@echo 'Invoking: GCC C Linker'
gcc -o"HelloLinux" $(OBJS) $(USER_OBJS) $(LIBS)
@echo 'Finished building target: $@'
@echo ' '
# Other Targets
clean:
-$(RM) $(OBJS)$(EXECUTABLES)$(C_DEPS) HelloLinux
-@echo ' '
.PHONY: all clean dependents
.SECONDARY:
-include ../makefile.targets