Quantcast
Channel: more advanced makefile (part 2) - Stack Overflow
Browsing latest articles
Browse All 4 View Live

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 Article


Answer 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 Article


Answer 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 Article

more 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
Browsing latest articles
Browse All 4 View Live


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