Browse Source

* added makefiles for chronos and msba2

dev/timer
Oleg Hahm 10 years ago
parent
commit
182151f463
  1. 35
      chronos/makefile
  2. 5
      makefile
  3. 27
      msba2/makefile

35
chronos/makefile

@ -0,0 +1,35 @@
SRC = $(wildcard *.c)
BINDIR = bin/
OBJ = $(SRC:%.c=$(BINDIR)%.o)## defines
DEP = $(SRC:%.c=$(BINDIR)%.d)
INCLUDES = -Iinclude -I../../feuerware-base/sys/lib -I../../feuerware-base/sys/drivers/include
INCLUDES += -I../../feuerware-base/sys/drivers/cc110x_ng/include
INCLUDES += -I../../feuerware-base/core/include
INCLUDES += -I../../feuerware-base/cpu/msp430/include/
INCLUDES += -I../../feuerware-base/cpu/cc430/include/
INCLUDES += -I/usr/msp430/include/
all: $(BINDIR)chronos_base.a
$(MAKE) -C drivers
$(BINDIR)chronos_base.a: $(OBJ)
$(AR) rcs $(BINDIR)chronos_base.a $(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/fw_out && mv /tmp/fw_out $(BINDIR)$*.d
# remove compilation products
clean:
rm -f $(BINDIR)chronos_base.a $(OBJ) $(DEP)
$(MAKE) -C drivers clean

5
makefile

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

27
msba2/makefile

@ -0,0 +1,27 @@
SRC = $(wildcard *.c)
BINDIR = bin/
OBJ = $(SRC:%.c=$(BINDIR)%.o)## defines
DEP = $(SRC:%.c=$(BINDIR)%.d)
INCLUDES += -I$(RIOTBASE)/cpu/arm_common/include/
INCLUDES += -I$(RIOTBASE)/cpu/lpc2387/include/
all: $(BINDIR)msba2_base.a
$(BINDIR)msba2_base.a: $(OBJ)
$(AR) rcs $(BINDIR)msba2_base.a $(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)riot_base.a $(OBJ) $(DEP)
Loading…
Cancel
Save