1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Make directory creation in object compilation more makey

This commit is contained in:
Martin Lenders 2014-05-03 17:27:21 +02:00
parent 85b7eca19e
commit 8fd09c575c

View File

@ -115,10 +115,9 @@ $(RIOTBASE)/pkg/%/Makefile.include::
-include $(OBJ:.o=.d)
$(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
$(AD)mkdir -p "$(dir $@)"
$(ADD)$(CC) $(CFLAGS) $(INCLUDES) -c "$<" -o "$@"
$(USEPKG:%=${BINDIR}%.a)::
@mkdir -p ${BINDIR}