c++ - Eclipse C/C++ 中自动生成的 makefile 只编译一个模块

标签 c++ eclipse gcc makefile

所以正如主题所述 - 在 Eclipse C/C++ 中自动生成的 makefile 只编译一个模块...我有一个 C/C++ 中的 Eclipse 项目,它使用 MinGW (gcc) 编译。现在我想使用 makefile 从命令行构建它。所以我检查了是否获得了 makefiles(Makefile、objects.mk、sources.mk 和所有 subdir.mk-s)。问题是当我在一个正确的目录(包含 Makefile)中键入并运行 make 时,它​​只编译一个文件,在这种特殊情况下是 des.c(它给出一个目标文件 des.o)并退出而没有任何我不知道的错误为什么。虽然从 eclipse 成功构建,但可以将可执行文件作为人工制品提供。

对这个问题的一堆附件表示歉意 - 虽然我认为这都是相关的。

Toolcahin Settings

C/C++ Build Properties, automatically generated makefile 在文件上编译后它存在于此 Here it exists after compiling on file 这是一个 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 sim/xyssl/subdir.mk
-include sim/subdir.mk
-include hal_i386/subdir.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(CC_DEPS)),)
-include $(CC_DEPS)
endif
ifneq ($(strip $(C++_DEPS)),)
-include $(C++_DEPS)
endif
ifneq ($(strip $(C_UPPER_DEPS)),)
-include $(C_UPPER_DEPS)
endif
ifneq ($(strip $(CXX_DEPS)),)
-include $(CXX_DEPS)
endif
ifneq ($(strip $(CPP_DEPS)),)
-include $(CPP_DEPS)
endif
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: my_sim_card.exe

# Tool invocations
my_sim_card.exe: $(OBJS) $(USER_OBJS)
    @echo 'Building target: $@'
    @echo 'Invoking: MinGW C++ Linker'
    g++  -o "my_sim_card.exe" $(OBJS) $(USER_OBJS) $(LIBS)
    @echo 'Finished building target: $@'
    @echo ' '

# Other Targets
clean:
    -$(RM) $(CC_DEPS)$(C++_DEPS)$(EXECUTABLES)$(OBJS)$(C_UPPER_DEPS)$(CXX_DEPS)$(CPP_DEPS)$(C_DEPS) my_sim_card.exe
    -@echo ' '

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets

我也试过先评论子目录的包含(即包含 sim/xyssl/subdir.mk),在这种情况下它只编译 STK_application.c 就像这里 也许这与问题原因有关 - 我已将文件/文件夹安装为外部文件/文件夹(工作区目录外的上层文件夹),但是 - 再一次 - 它在 Eclipse 中工作正常。另外我想说的是,无论是否选择 Expand Env,它的行为都是一样的。 Makefile 中的变量引用 启用或禁用。 其他文件看起来像: 来源.mk

################################################################################
# Automatically-generated file. Do not edit!
################################################################################

C_UPPER_SRCS := 
CXX_SRCS := 
C++_SRCS := 
OBJ_SRCS := 
CC_SRCS := 
ASM_SRCS := 
CPP_SRCS := 
C_SRCS := 
S_UPPER_SRCS := 
O_SRCS := 
CC_DEPS := 
C++_DEPS := 
EXECUTABLES := 
OBJS := 
C_UPPER_DEPS := 
CXX_DEPS := 
CPP_DEPS := 
C_DEPS := 

# Every subdirectory with source files must be described here
SUBDIRS := \
hal_i386 \
. \
sim \
sim/xyssl \

子目录.mk

################################################################################
# Automatically-generated file. Do not edit!
################################################################################

# Add inputs and outputs from these tool invocations to the build variables 
C_SRCS += \
C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/xyssl/des.c 

OBJS += \
./sim/xyssl/des.o 

C_DEPS += \
./sim/xyssl/des.d 


# Each subdirectory must supply rules for building sources it contributes
sim/xyssl/des.o: C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/xyssl/des.c
    @echo 'Building file: $<'
    @echo 'Invoking: GCC C Compiler'
    gcc -DMIN_GW -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/hal_i386" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim/xyssl" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
    @echo 'Finished building: $<'
    @echo ' '

子目录.mk

################################################################################
# Automatically-generated file. Do not edit!
################################################################################

# Add inputs and outputs from these tool invocations to the build variables 
C_SRCS += \
C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/STK_application.c \
C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/aes.c \
C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/auth_comp128.c \
C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/auth_comp128_v23.c \
C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/auth_gost.c \
C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/commands_2G.c \
C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/commands_3G.c \
C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/commands_adm.c \
C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/commands_auth.c \
C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/commands_network_auth.c \
C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/commands_toolkit.c \
C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/fs.c \
C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/fstream.c \
C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/milenage.c \
C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/sim_access.c \
C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/sim_toolkit.c \
C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/sw.c \
C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/t0.c \
C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/tools.c 

OBJS += \
./sim/STK_application.o \
./sim/aes.o \
./sim/auth_comp128.o \
./sim/auth_comp128_v23.o \
./sim/auth_gost.o \
./sim/commands_2G.o \
./sim/commands_3G.o \
./sim/commands_adm.o \
./sim/commands_auth.o \
./sim/commands_network_auth.o \
./sim/commands_toolkit.o \
./sim/fs.o \
./sim/fstream.o \
./sim/milenage.o \
./sim/sim_access.o \
./sim/sim_toolkit.o \
./sim/sw.o \
./sim/t0.o \
./sim/tools.o 

C_DEPS += \
./sim/STK_application.d \
./sim/aes.d \
./sim/auth_comp128.d \
./sim/auth_comp128_v23.d \
./sim/auth_gost.d \
./sim/commands_2G.d \
./sim/commands_3G.d \
./sim/commands_adm.d \
./sim/commands_auth.d \
./sim/commands_network_auth.d \
./sim/commands_toolkit.d \
./sim/fs.d \
./sim/fstream.d \
./sim/milenage.d \
./sim/sim_access.d \
./sim/sim_toolkit.d \
./sim/sw.d \
./sim/t0.d \
./sim/tools.d 


# Each subdirectory must supply rules for building sources it contributes
sim/STK_application.o: C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/STK_application.c
    @echo 'Building file: $<'
    @echo 'Invoking: GCC C Compiler'
    gcc -DMIN_GW -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/hal_i386" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim/xyssl" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
    @echo 'Finished building: $<'
    @echo ' '

sim/aes.o: C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/aes.c
    @echo 'Building file: $<'
    @echo 'Invoking: GCC C Compiler'
    gcc -DMIN_GW -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/hal_i386" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim/xyssl" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
    @echo 'Finished building: $<'
    @echo ' '

sim/auth_comp128.o: C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/auth_comp128.c
    @echo 'Building file: $<'
    @echo 'Invoking: GCC C Compiler'
    gcc -DMIN_GW -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/hal_i386" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim/xyssl" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
    @echo 'Finished building: $<'
    @echo ' '

sim/auth_comp128_v23.o: C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/auth_comp128_v23.c
    @echo 'Building file: $<'
    @echo 'Invoking: GCC C Compiler'
    gcc -DMIN_GW -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/hal_i386" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim/xyssl" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
    @echo 'Finished building: $<'
    @echo ' '

sim/auth_gost.o: C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/auth_gost.c
    @echo 'Building file: $<'
    @echo 'Invoking: GCC C Compiler'
    gcc -DMIN_GW -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/hal_i386" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim/xyssl" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
    @echo 'Finished building: $<'
    @echo ' '

sim/commands_2G.o: C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/commands_2G.c
    @echo 'Building file: $<'
    @echo 'Invoking: GCC C Compiler'
    gcc -DMIN_GW -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/hal_i386" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim/xyssl" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
    @echo 'Finished building: $<'
    @echo ' '

sim/commands_3G.o: C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/commands_3G.c
    @echo 'Building file: $<'
    @echo 'Invoking: GCC C Compiler'
    gcc -DMIN_GW -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/hal_i386" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim/xyssl" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
    @echo 'Finished building: $<'
    @echo ' '

sim/commands_adm.o: C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/commands_adm.c
    @echo 'Building file: $<'
    @echo 'Invoking: GCC C Compiler'
    gcc -DMIN_GW -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/hal_i386" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim/xyssl" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
    @echo 'Finished building: $<'
    @echo ' '

sim/commands_auth.o: C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/commands_auth.c
    @echo 'Building file: $<'
    @echo 'Invoking: GCC C Compiler'
    gcc -DMIN_GW -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/hal_i386" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim/xyssl" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
    @echo 'Finished building: $<'
    @echo ' '

sim/commands_network_auth.o: C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/commands_network_auth.c
    @echo 'Building file: $<'
    @echo 'Invoking: GCC C Compiler'
    gcc -DMIN_GW -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/hal_i386" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim/xyssl" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
    @echo 'Finished building: $<'
    @echo ' '

sim/commands_toolkit.o: C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/commands_toolkit.c
    @echo 'Building file: $<'
    @echo 'Invoking: GCC C Compiler'
    gcc -DMIN_GW -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/hal_i386" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim/xyssl" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
    @echo 'Finished building: $<'
    @echo ' '

sim/fs.o: C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/fs.c
    @echo 'Building file: $<'
    @echo 'Invoking: GCC C Compiler'
    gcc -DMIN_GW -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/hal_i386" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim/xyssl" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
    @echo 'Finished building: $<'
    @echo ' '

sim/fstream.o: C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/fstream.c
    @echo 'Building file: $<'
    @echo 'Invoking: GCC C Compiler'
    gcc -DMIN_GW -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/hal_i386" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim/xyssl" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
    @echo 'Finished building: $<'
    @echo ' '

sim/milenage.o: C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/milenage.c
    @echo 'Building file: $<'
    @echo 'Invoking: GCC C Compiler'
    gcc -DMIN_GW -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/hal_i386" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim/xyssl" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
    @echo 'Finished building: $<'
    @echo ' '

sim/sim_access.o: C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/sim_access.c
    @echo 'Building file: $<'
    @echo 'Invoking: GCC C Compiler'
    gcc -DMIN_GW -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/hal_i386" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim/xyssl" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
    @echo 'Finished building: $<'
    @echo ' '

sim/sim_toolkit.o: C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/sim_toolkit.c
    @echo 'Building file: $<'
    @echo 'Invoking: GCC C Compiler'
    gcc -DMIN_GW -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/hal_i386" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim/xyssl" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
    @echo 'Finished building: $<'
    @echo ' '

sim/sw.o: C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/sw.c
    @echo 'Building file: $<'
    @echo 'Invoking: GCC C Compiler'
    gcc -DMIN_GW -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/hal_i386" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim/xyssl" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
    @echo 'Finished building: $<'
    @echo ' '

sim/t0.o: C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/t0.c
    @echo 'Building file: $<'
    @echo 'Invoking: GCC C Compiler'
    gcc -DMIN_GW -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/hal_i386" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim/xyssl" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
    @echo 'Finished building: $<'
    @echo ' '

sim/tools.o: C:/Users/ruslan/Downloads/SIM/1.USIM_sources/trunk/sim/tools.c
    @echo 'Building file: $<'
    @echo 'Invoking: GCC C Compiler'
    gcc -DMIN_GW -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/hal_i386" -I"C:\Users\ruslan\Downloads\SIM\workspace.mingw../../1.USIM_sources/trunk/sim/xyssl" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
    @echo 'Finished building: $<'
    @echo ' '

编辑: 除了 MinGW Make 之外,我还尝试使用 GNU32 Make 工具构建 - 同样的问题。

提前致谢

最佳答案

运行 make all 而不仅仅是 make。

如果您在没有任何目标的情况下运行 make,它将默认为 makefile 中提到的第一个目标,在本例中为 sim/xyssl/des.o。当您从 Eclipse 运行 makefile 时,我怀疑它实际上运行了 make all。

关于c++ - Eclipse C/C++ 中自动生成的 makefile 只编译一个模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35724831/

相关文章:

C++ - 允许通过基类(接口(interface))访问,禁止通过派生类(具体实现)访问?

java - 如何将一个 Eclipse 项目作为库导入到另一个项目中?

c - 双指针转换,传递给带有 `const void **ptr` 参数的函数

gcc - 创建 aarch64 裸机程序时如何防止 "main.o:(.eh_frame+0x1c): relocation truncated to fit: R_AARCH64_PREL32 against ` .text'"?

c++ - 优化 CPU 流水线和缓存访问

c++ - 图像像素值未在 CV::Mat 中更新(OpenCV 4.1.2;C++)

文件输出期间的 C++ Double 值精度

Java循环整除总和和平均值

java - Eclipse 上的向上箭头和数字含义

c++ - GCC 根据数组索引值生成不同的代码