cmake 怎么配置才能生成预编译文件和汇编文件?
默认中间文件只有 .o
source.c.o: ../../../../../source.c
cd xxx/ && /opt/gcc-4.7.2 $(C_DEFINES) $(C_FLAGS) -o CMakeFiles/source.c.o -c source.c #1
source.c.i: cmake_force
cd xxx && /opt/gcc-4.7.2 $(C_DEFINES) $(C_FLAGS) -E source.c > CMakeFiles/source.c.i #2
source.c.s: cmake_force
cd xxx && /opt/gcc-4.7.2 $(C_DEFINES) $(C_FLAGS) -S source.c -o CMakeFiles/source.c.s #3
规则文件里倒是都生成这些文件的片段,但是执行make的时候,并不会执行2,3命令。
手动删除
source.c.i: cmake_force
source.c.s: cmake_force
倒是能生成.i .s 了
规则文件本身是cmake自己产生的,cmake需要怎么配置呢?