mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
migrate to current Makefile structure
This commit is contained in:
parent
f31f77024f
commit
2883ca121e
@ -38,6 +38,9 @@ ifeq ($(BOARD),msb-430h)
|
||||
INCLUDES += -I$(RIOTBOARD)/msb-430-common/include/
|
||||
INCLUDES += -I$(RIOTBOARD)/msb-430-common/drivers/include/
|
||||
endif
|
||||
ifeq ($(BOARD),native)
|
||||
INCLUDES += -I$(RIOTBOARD)/native/include/
|
||||
endif
|
||||
|
||||
$(BINDIR)$(MODULE).a: $(OBJ) $(ASMOBJ)
|
||||
$(AR) -rc $(BINDIR)$(MODULE).a $(OBJ) $(ASMOBJ)
|
||||
|
@ -18,7 +18,7 @@ all: $(PROJBINDIR)/$(PROJECT).a
|
||||
@echo "Building project $(PROJECT) for $(BOARD) w/ MCU $(CPU)."
|
||||
$(MAKE) -C $(RIOTBOARD)
|
||||
$(MAKE) -C $(RIOTBASE)
|
||||
$(LINK) $(LINKFLAGS) $(UNDEF) -o $(PROJBINDIR)/$(PROJECT).elf -Wl,--start-group $(BASELIBS) -lm -Wl,--end-group -Wl,-Map=$(PROJBINDIR)/$(PROJECT).map
|
||||
$(LINK) $(UNDEF) -o $(PROJBINDIR)/$(PROJECT).elf -Wl,--start-group $(BASELIBS) -lm -Wl,--end-group -Wl,-Map=$(PROJBINDIR)/$(PROJECT).map $(LINKFLAGS)
|
||||
$(SIZE) $(PROJBINDIR)/$(PROJECT).elf
|
||||
$(OBJCOPY) -O ihex $(PROJBINDIR)/$(PROJECT).elf $(PROJBINDIR)/$(PROJECT).hex
|
||||
|
||||
|
@ -13,6 +13,9 @@ ifeq ($(CPU),lpc214x)
|
||||
USEMODULE += arm_common
|
||||
UNDEF += $(BINDIR)syscalls.o
|
||||
endif
|
||||
ifeq ($(CPU),native)
|
||||
export INCLUDES += -I$(RIOTBASE)/cpu/native/include
|
||||
endif
|
||||
ifeq ($(CPU),cc430)
|
||||
USEMODULE += cpu core lib sys
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user