1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

fix for the redbee-econotag Makefile to work again

This commit is contained in:
Thomas Eichinger 2013-11-18 10:48:39 +01:00
parent 2f5530083b
commit 18fe32ffc5

View File

@ -1,12 +1,13 @@
SRC = $(wildcard *.c) SRC = $(wildcard *.c)
BINDIR = $(RIOTBOARD)/$(BOARD)/bin/ BINDIR = bin/
OBJ = $(SRC:%.c=$(BINDIR)%.o)## defines OBJ = $(SRC:%.c=$(BINDIR)%.o)## defines
DEP = $(SRC:%.c=$(BINDIR)%.d) DEP = $(SRC:%.c=$(BINDIR)%.d)
export ARCH = redbee-econotag_base.a export ARCH = $(BOARD)_base.a
INCLUDES += -I$(RIOTBOARD)/redbee-econotag/drivers/include INCLUDES += -I$(RIOTBOARD)/$(BOARD)/drivers/include
INCLUDES += -I$(RIOTBASE)/cpu/arm_common/include INCLUDES += -I$(RIOTBOARD)/$(BOARD)/include
INCLUDES += -I$(RIOTBASE)/cpu/mc1322x/include INCLUDES += -I$(RIOTCPU)/arm_common/include
INCLUDES += -I$(RIOTCPU)/$(CPU)/include
.PHONY: $(BINDIR)/$(ARCH) .PHONY: $(BINDIR)/$(ARCH)
@ -21,6 +22,7 @@ $(BINDIR)$(ARCH): $(OBJ)
# compile and generate dependency info # compile and generate dependency info
$(BINDIR)%.o: %.c $(BINDIR)%.o: %.c
mkdir -p $(BINDIR)
$(CC) $(CFLAGS) $(CFLAGS_MTHUMB) $(INCLUDES) $(BOARDINCLUDE) $(PROJECTINCLUDE) $(CPUINCLUDE) -c $*.c -o $(BINDIR)$*.o $(CC) $(CFLAGS) $(CFLAGS_MTHUMB) $(INCLUDES) $(BOARDINCLUDE) $(PROJECTINCLUDE) $(CPUINCLUDE) -c $*.c -o $(BINDIR)$*.o
$(CC) $(CFLAGS) $(CFLAGS_MTHUMB) $(INCLUDES) $(BOARDINCLUDE) $(PROJECTINCLUDE) $(CPUINCLUDE) -MM $*.c > $(BINDIR)$*.d $(CC) $(CFLAGS) $(CFLAGS_MTHUMB) $(INCLUDES) $(BOARDINCLUDE) $(PROJECTINCLUDE) $(CPUINCLUDE) -MM $*.c > $(BINDIR)$*.d
@printf "$(BINDIR)"|cat - $(BINDIR)$*.d > /tmp/riot_out && mv /tmp/riot_out $(BINDIR)$*.d @printf "$(BINDIR)"|cat - $(BINDIR)$*.d > /tmp/riot_out && mv /tmp/riot_out $(BINDIR)$*.d
@ -29,4 +31,7 @@ $(BINDIR)%.o: %.c
clean: clean:
${MAKE} -C drivers clean ${MAKE} -C drivers clean
rm -f $(OBJ) $(DEP) rm -f $(OBJ) $(DEP)
@if [ -d $(BINDIR) ] ; \
then rmdir $(BINDIR) ; \
fi