Quantcast
Channel: more advanced makefile (part 2) - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by whitepanda00 for more advanced makefile (part 2)

$
0
0

I'm afraid i can't share sourcecode in its current stage.

editing following part and everything works (but places .o .d files into same folders as their corresponding .c file what i wanted to change)

OBJS := \    $(patsubst %.c, %.o,$(C_SRCS))# add linker scriptOBJS += \    /src/general/config/startup_stm32f429xx.oC_DEPS := \    $(patsubst %.c,%.d,$(C_SRCS))#$(info C_DEPS='$(C_DEPS)')# compile src files%.o: %.c    @echo 'Building file: $<'    @echo 'Invoking: Cross ARM C Compiler'    arm-none-eabi-gcc $(CFLAGS) $(INCDIRS) -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -c -o "$@""$<"    @echo 'Finished building: $<'    @echo ''

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>