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

Create project's bin directory if it does not exist

This commit is contained in:
Martin Lenders 2013-07-31 15:19:59 +02:00
parent fa83bb4fd1
commit 065566cd04

View File

@ -73,13 +73,14 @@ ${PROJBINDIR}/$(PROJECT).a: $(OBJ)
${PROJBINDIR}/%.o: %.c
@echo; echo "Compiling.... $*.c"; echo
@test -d $(PROJBINDIR) || mkdir $(PROJBINDIR)
$(CC) $(CFLAGS) $(INCLUDES) -c $*.c -o bin/$*.o
clean:
$(MAKE) -C $(RIOTBOARD) clean
$(MAKE) -C $(RIOTBASE) clean
@for i in $(EXTERNAL_MODULES) ; do $(MAKE) -C $$i clean ; done ;
rm -f $(PROJBINDIR)/*
rm -rf $(PROJBINDIR)
flash: all
$(FLASHER) $(FFLAGS)