Browse Source

updated Makefiles for MSB-A2 and AVSEXTREM

* updated Makefilde dep, add the gpioint dependency to use cc110x on MSBA2
board
* updated CFLAGS Variable
dev/timer
Zakaria Kasmi 10 years ago committed by Oleg Hahm
parent
commit
24a35b573a
  1. 4
      Makefile
  2. 4
      avsextrem/Makefile
  3. 24
      avsextrem/drivers/Makefile
  4. 7
      msba2-common/Makefile

4
Makefile

@ -1,5 +1,5 @@
all:
$(MAKE) -C $(BOARD)
"$(MAKE)" -C $(BOARD)
clean:
$(MAKE) -C $(BOARD) clean
"$(MAKE)" -C $(BOARD) clean

4
avsextrem/Makefile

@ -12,6 +12,7 @@ INCLUDES += -I$(RIOTBASE)/drivers/cc110x
all: $(BINDIR)$(ARCH)
"$(MAKE)" -C ../msba2-common
"$(MAKE)" -C drivers
$(BINDIR)$(ARCH): $(OBJ)
$(AR) rcs $(BINDIR)$(ARCH) $(OBJ)
@ -29,10 +30,11 @@ $(BINDIR)%.o: %.c
# remove compilation products
clean:
"$(MAKE)" -C ../msba2-common clean
"$(MAKE)" -C drivers clean
rm -f $(BINDIR)$(ARCH) $(OBJ) $(DEP)
@if [ -d $(BINDIR) ] ; \
then rmdir $(BINDIR) ; \
fi

24
avsextrem/drivers/Makefile

@ -0,0 +1,24 @@
SRC = $(wildcard *.c)
BINDIR = $(RIOTBOARD)/$(BOARD)/bin/
OBJ = $(SRC:%.c=$(BINDIR)%.o)
DEP = $(SRC:%.c=$(BINDIR)%.d)
INCLUDES += -I$(RIOTBASE)/sys/include/ -I$(RIOTBASE)/drivers/cc110x_ng/include/
$(BINDIR)avsextrem_base.a: $(OBJ)
$(AR) rcs $(BINDIR)${ARCH} $(OBJ)
# pull in dependency info for *existing* .o files
-include $(OBJ:.o=.d)
# compile and generate dependency info
$(BINDIR)%.o: %.c
$(CC) $(CFLAGS) $(INCLUDES) $(BOARDINCLUDE) $(PROJECTINCLUDE) $(CPUINCLUDE) -c $*.c -o $(BINDIR)$*.o
$(CC) $(CFLAGS) $(INCLUDES) $(BOARDINCLUDE) $(PROJECTINCLUDE) $(CPUINCLUDE) -MM $*.c > $(BINDIR)$*.d
@printf "$(BINDIR)" | cat - $(BINDIR)$*.d > /tmp/riot_out && mv /tmp/riot_out $(BINDIR)$*.d
# remove compilation products
clean:
rm -f $(BINDIR)$(MODULE).a $(OBJ) $(DEP) $(ASMOBJ)

7
msba2-common/Makefile

@ -1,4 +1,4 @@
SRC = $(wildcard *.c)
SRC = $(wildcard *.c)
BINDIR = $(RIOTBOARD)/$(BOARD)/bin/
OBJ = $(SRC:%.c=$(BINDIR)%.o)## defines
DEP = $(SRC:%.c=$(BINDIR)%.d)
@ -7,11 +7,12 @@ INCLUDES += -I$(RIOTBOARD)/msba2-common/include/
INCLUDES += -I$(RIOTBASE)/cpu/arm_common/include/
INCLUDES += -I$(RIOTBASE)/cpu/lpc2387/include/
INCLUDES += -I$(RIOTBASE)/drivers/include/
INCLUDES += -I$(RIOTBOARD)/$(BOARD)/include
.PHONY: $(BINDIR)msba2_common_base.a
all: $(BINDIR)msba2_common_base.a
$(MAKE) -C drivers
"$(MAKE)" -C drivers
$(BINDIR)msba2_common_base.a: $(OBJ)
$(AR) rcs $(BINDIR)$(ARCH) $(OBJ)
@ -27,6 +28,6 @@ $(BINDIR)%.o: %.c
# remove compilation products
clean:
${MAKE} -C drivers clean
"$(MAKE)" -C drivers clean
rm -f $(OBJ) $(DEP)

Loading…
Cancel
Save