Answer by Jonatan Goebel for more advanced makefile (part 2)
Have you tried to put another pastsub into the %.o: %.c command:Something like this:%.o: %.c arm-none-eabi-gcc $(CFLAGS) $(INCDIRS) -MMD -MP -MF"$(patsubst %.c,$(OBJSDIR)/%.d,@)" -MT"$@" -c -o "$@""$<"
View ArticleAnswer by whitepanda00 for more advanced makefile (part 2)
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...
View ArticleAnswer by Jon Chesterfield for more advanced makefile (part 2)
Current theory...We seem to be clear that the output directories do not already exist on disk. A possible solution, for platforms which know what mkdir -p means, would then be# compile src...
View Articlemore advanced makefile (part 2)
after my last post i have fixed several issues with my makefile. currently it looks that way:RM := rm -rfOBJSDIR := \ ./objs# compiler flagsCFLAGS := \ -mcpu=cortex-m4 \ -mthumb -mlittle-endian \...
View Article