Skip to content
Snippets Groups Projects
Commit 8fd09c57 authored by Martine Lenders's avatar Martine Lenders
Browse files

Make directory creation in object compilation more makey

parent 85b7eca1
Branches
No related tags found
No related merge requests found
...@@ -115,10 +115,9 @@ $(RIOTBASE)/pkg/%/Makefile.include:: ...@@ -115,10 +115,9 @@ $(RIOTBASE)/pkg/%/Makefile.include::
-include $(OBJ:.o=.d) -include $(OBJ:.o=.d)
$(BINDIR)$(PROJECT)/%.o: %.c $(PROJDEPS) $(USEPKG:%=${BINDIR}%.a) $(BINDIR)$(PROJECT)/%.o: %.c $(PROJDEPS) $(USEPKG:%=${BINDIR}%.a)
@mkdir -p ${BINDIR}
@echo; echo "Compiling.... $*.c"; echo @echo; echo "Compiling.... $*.c"; echo
@test -d $(BINDIR)$(PROJECT) || mkdir -p $(BINDIR)$(PROJECT) $(AD)mkdir -p "$(dir $@)"
$(AD)$(CC) $(CFLAGS) $(INCLUDES) -c $*.c -o $(BINDIR)$(PROJECT)/$*.o $(ADD)$(CC) $(CFLAGS) $(INCLUDES) -c "$<" -o "$@"
$(USEPKG:%=${BINDIR}%.a):: $(USEPKG:%=${BINDIR}%.a)::
@mkdir -p ${BINDIR} @mkdir -p ${BINDIR}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment