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:
parent
85b7eca19e
commit
8fd09c575c
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user