RIOT
RIOT copied to clipboard
c++: Using Cpp with RIOT document is missing some parts
I think this doc (https://github.com/RIOT-OS/RIOT/wiki/Using-CPP-on-RIOT) is missing to replace
$(BINDIR)$(PROJECT)/%.o: %.c $(PROJDEPS) $(USEPKG:%=${BINDIR}%.a)
@mkdir -p ${BINDIR}
@echo; echo "Compiling.... $*.c"; echo
@test -d $(BINDIR)$(PROJECT) || mkdir -p $(BINDIR)$(PROJECT)
$(AD)$(CC) $(CFLAGS) $(INCLUDES) -c $*.c -o $(BINDIR)$(PROJECT)/$*.o
with
$(BINDIR)$(PROJECT)/%.o: %.cpp $(PROJDEPS) $(USEPKG:%=${BINDIR}%.a)
@mkdir -p ${BINDIR}
@echo; echo "Compiling.... $*.cpp"; echo
@test -d $(BINDIR)$(PROJECT) || mkdir -p $(BINDIR)$(PROJECT)
$(AD)$(CC) $(CFLAGS) $(INCLUDES) -c $*.cpp -o $(BINDIR)$(PROJECT)/$*.o
in RIOT/Makefile.include. :)
(fixed highlighting)
Feel free to edit. :)
edited, u can review. :)
@BytesGalore can you close this issue if you agree with the edit?
yup looks good, @dangnhat thanks for the correction.