Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- COMPONENTS_PATH = ../../../../BitCloud/Components
- APP_NAME = Blink
- CONFIG_NAME = All_MegaRf_Atmega256rfr2_8Mhz_Gcc
- LIST_PATH = $(CONFIG_NAME)/List
- EXE_PATH = $(CONFIG_NAME)/Exe
- OBJ_PATH = $(CONFIG_NAME)/Obj
- include ../../../../BitCloud/lib/Makerules_Atmega256rfr2_Gcc
- DEFINES = \
- -DBOARD_MEGARF \
- -DATMEGA256RFR2 \
- -DHAL_8MHz \
- -DNO_SECURITY_MODE \
- -DSTACK_TYPE_ALL
- INCLUDES = \
- -I../.. \
- -I../../include \
- -I../../../../BitCloud/Components/BSP/MEGARF/include \
- -I../../../../BitCloud/Components/SystemEnvironment/include \
- -I../../../../BitCloud/lib \
- -I../../../../BitCloud/Components/HAL/include \
- -I../../../../BitCloud/Components/BSP \
- -I../../../../BitCloud/Components/BSP/include \
- -I../../../../BitCloud/Components/NWK/include \
- -I../../../../BitCloud/Components/NWK/include/private \
- -I../../../../BitCloud/Components/ZDO/include \
- -I../../../../BitCloud/Components/ZDO/include/private \
- -I../../../../BitCloud/Components/APS/include \
- -I../../../../BitCloud/Components/APS/include/private \
- -I../../../../BitCloud/Components/SystemEnvironment/include \
- -I../../../../BitCloud/Components/ConfigServer/include \
- -I../../../../BitCloud/Components/ConfigServer/include/private \
- -I../../../../BitCloud/Components/PersistDataServer/include \
- -I../../../../BitCloud/Components/PersistDataServer/std/include \
- -I../../../../BitCloud/Components/PersistDataServer/wl/include \
- -I../../../../BitCloud/Components/ZLLPlatform/Infrastructure/N_Types/include \
- -I../../../../BitCloud/Components/ZLLPlatform/Infrastructure/N_Util/include \
- -I../../../../BitCloud/Components/ZLLPlatform/Infrastructure/N_Timer/include \
- -I../../../../BitCloud/Components/ZLLPlatform/Infrastructure/N_Task/include \
- -I../../../../BitCloud/Components/ZLLPlatform/Infrastructure/N_ErrH/include \
- -I../../../../BitCloud/Components/ZLLPlatform/Infrastructure/N_Log/include \
- -I../../../../BitCloud/Components/ZLLPlatform/Infrastructure/N_Memory/include \
- -I../../../../BitCloud/Components/ZLLPlatform/Infrastructure/N_Init/include \
- -I../../../../BitCloud/Components/ZLLPlatform/ZLL/S_Nv/include \
- -I../../../../BitCloud/Components/ZLLPlatform/ZLL/S_XNv/include \
- -I../../../../BitCloud/Components/ZLLPlatform/ZLL/D_Nv/include \
- -I../../../../BitCloud/Components/ZLLPlatform/ZLL/D_XNv/include \
- -I../../../../BitCloud/Components/ZLLPlatform/ZLL/D_XNv/src \
- -I../../../../BitCloud/Components/ZLLPlatform/ZLL/S_XNv/src \
- -I../../../../BitCloud/Components/Security/TrustCentre/include \
- -I../../../../BitCloud/Components/Security/ServiceProvider/include \
- -I../../../../BitCloud/Components/HAL/drivers/include \
- -I../../../../BitCloud/Components/HAL/drivers/USBFIFO/include \
- -I../../../../BitCloud/Components/HAL/avr/atmega128rfa1/common/include \
- -I../../../../BitCloud/Components/MAC_PHY/include \
- -I../../../../BitCloud/Components/MAC_PHY/MAC_ENV/include \
- -I../../../../BitCloud/Components/MAC_PHY/MAC_HWI/include \
- -I../../../../BitCloud/Components/MAC_PHY/MAC_HWD_PHY/include \
- -I../../../../BitCloud/Components/MAC_PHY/MAC_HWD_PHY/ATMEGA128RFA1/PHY/include \
- -I../../../../BitCloud/Components/MAC_PHY/MAC_HWD_PHY/ATMEGA128RFA1/MAC_HWD/include
- LIBS = \
- ../../../../BitCloud/lib/libBc_All_Atmega256rfr2_Atmega256rfr2_Gcc.a \
- ../../../../BitCloud/lib/libHAL_MegaRf_Atmega256rfr2_8Mhz_Gcc.a \
- ../../../../BitCloud/lib/WdtInitatmega256rfr2_Gcc.o
- SRCS = \
- ../../src/blink.c \
- ../../../../BitCloud/Components/PersistDataServer/std/src/stdPdsMemAccess.c \
- ../../../../BitCloud/Components/PersistDataServer/std/src/stdPdsTimer.c \
- ../../../../BitCloud/Components/PersistDataServer/std/src/stdPdsMem.c \
- ../../../../BitCloud/Components/PersistDataServer/std/src/stdPdsWriteData.c \
- ../../../../BitCloud/Components/PersistDataServer/std/src/stdPdsCrcService.c \
- ../../../../BitCloud/Components/PersistDataServer/std/src/stdPdsInit.c \
- ../../../../BitCloud/Components/PersistDataServer/std/src/stdPdsEvents.c \
- ../../../../BitCloud/Components/PersistDataServer/std/src/stdPdsDataServer.c \
- ../../../../BitCloud/Components/PersistDataServer/src/fakePds.c \
- ../../../../BitCloud/Components/PersistDataServer/wl/src/wlPdsTypesConverter.c \
- ../../../../BitCloud/Components/PersistDataServer/wl/src/wlPdsTaskManager.c \
- ../../../../BitCloud/Components/PersistDataServer/wl/src/wlPdsSecurity.c \
- ../../../../BitCloud/Components/PersistDataServer/wl/src/wlPdsInit.c \
- ../../../../BitCloud/Components/PersistDataServer/wl/src/wlPdsDataServer.c \
- ../../../../BitCloud/Components/ZLLPlatform/ZLL/S_Nv/src/S_Nv.c \
- ../../../../BitCloud/Components/ZLLPlatform/ZLL/S_XNv/src/S_XNv.c \
- ../../../../BitCloud/Components/ZLLPlatform/ZLL/S_Nv/src/S_Nv-External.c \
- ../../../../BitCloud/Components/ZLLPlatform/ZLL/D_Nv/src/D_Nv.c \
- ../../../../BitCloud/Components/ZLLPlatform/ZLL/S_Nv/src/S_Nv_Stub.c \
- ../../../../BitCloud/Components/SystemEnvironment/src/sysIdleHandler.c \
- ../../../../BitCloud/Components/SystemEnvironment/src/sysSleep.c \
- ../../../../BitCloud/Components/SystemEnvironment/src/sysStat.c \
- ../../../../BitCloud/Components/SystemEnvironment/src/sysEventsHandler.c \
- ../../../../BitCloud/Components/SystemEnvironment/src/sysQueue.c \
- ../../../../BitCloud/Components/SystemEnvironment/src/sysUtils.c \
- ../../../../BitCloud/Components/SystemEnvironment/src/sysAssert.c \
- ../../../../BitCloud/Components/SystemEnvironment/src/sysDuplicateTable.c \
- ../../../../BitCloud/Components/SystemEnvironment/src/sysInit.c \
- ../../../../BitCloud/Components/SystemEnvironment/src/sysTaskManager.c \
- ../../../../BitCloud/Components/SystemEnvironment/src/dbg.c \
- ../../../../BitCloud/Components/SystemEnvironment/src/sysMutex.c \
- ../../../../BitCloud/Components/SystemEnvironment/src/sysTimer.c \
- ../../../../BitCloud/Components/BSP/MEGARF/src/xyl2rgb.c \
- ../../../../BitCloud/Components/BSP/MEGARF/src/bspVoltageSensor.c \
- ../../../../BitCloud/Components/BSP/MEGARF/src/bspTaskManager.c \
- ../../../../BitCloud/Components/BSP/MEGARF/src/bspTempSensor.c \
- ../../../../BitCloud/Components/BSP/MEGARF/src/hs2xy.c \
- ../../../../BitCloud/Components/BSP/MEGARF/src/buttons.c \
- ../../../../BitCloud/Components/BSP/MEGARF/src/MaxL.c \
- ../../../../BitCloud/Components/BSP/MEGARF/src/lcd.c \
- ../../../../BitCloud/Components/BSP/MEGARF/src/bspUid.c \
- ../../../../BitCloud/Components/BSP/MEGARF/src/leds.c \
- ../../../../BitCloud/Components/BSP/MEGARF/src/fakeBSP.c \
- ../../../../BitCloud/Components/HAL/drivers/USBFIFO/src/usbFifoVirtualUsart.c \
- ../../../../BitCloud/Components/HAL/drivers/USBFIFO/src/usbFifoFT245RL.c \
- ../../../../BitCloud/Components/ConfigServer/src/csPersistentMem.c \
- ../../../../BitCloud/Components/ConfigServer/src/csMem.c \
- ../../../../BitCloud/Components/ConfigServer/src/configServer.c
- PREINCLUDE = MakerulesBc_All_Atmega256rfr2_Atmega256rfr2_Gcc.h
- CSRCS = $(filter %.c, $(SRCS))
- OBJS = $(addprefix $(OBJ_PATH)/, $(notdir %/$(subst .c,.o,$(CSRCS))))
- ASM_FILE_EXT = s
- ifneq (, $(findstring .$(ASM_FILE_EXT), $(SRCS)))
- ASRCS = $(filter %.$(ASM_FILE_EXT), $(SRCS))
- OBJS += $(addprefix $(OBJ_PATH)/, $(notdir %$(subst .$(ASM_FILE_EXT),.o,$(ASRCS))))
- endif
- CFLAGS += $(DEFINES)
- CFLAGS += $(INCLUDES)
- CFLAGS += --include $(PREINCLUDE)
- CFLAGS += -g
- ASFLAGS = $(INCLUDES)
- ASFLAGS += $(filter -mmcu%,$(CFLAGS))
- LD = $(CC)
- LINKER_FLAGS = -Wl,-Map=$(LIST_PATH)/$(APP_NAME).map -Wl,--gc-sections
- LINKER_FLAGS += -Wl,--script=../../linkerScr/atmega256rfr2.ld
- LINKER_FLAGS += -Wl,--section-start=.data=0x800200
- LINKER_FLAGS += $(filter -mmcu%,$(CFLAGS))
- LINKER_FLAGS += -Wl,--relax
- .PHONY: all directories clean size root_files images
- images: $(EXE_PATH)/$(APP_NAME).elf $(EXE_PATH)/$(APP_NAME).hex $(EXE_PATH)/$(APP_NAME).srec $(EXE_PATH)/$(APP_NAME).bin
- all: directories images root_files size
- $(OBJ_PATH)/%.o: $(SRCS)
- $(CC) $(CFLAGS) $(filter %/$(subst .o,.c,$(notdir $@)), $(SRCS)) -o $@
- $(OBJS): directories
- $(EXE_PATH)/$(APP_NAME).elf: $(OBJS)
- $(LD) $(LINKER_FLAGS) $(OBJS) -Wl,-\( $(LIBS) -Wl,-\) -o $@
- $(EXE_PATH)/$(APP_NAME).srec: $(EXE_PATH)/$(APP_NAME).elf
- $(OBJCOPY) -O srec --srec-len 128 $^ $@
- $(EXE_PATH)/$(APP_NAME).hex: $(EXE_PATH)/$(APP_NAME).elf
- $(OBJCOPY) -O ihex -R .eeprom $^ $@
- $(EXE_PATH)/$(APP_NAME).bin: $(EXE_PATH)/$(APP_NAME).elf
- $(OBJCOPY) -O binary --strip-debug --strip-unneeded -R .eeprom $^ $@
- root_files: images
- cp -f $(EXE_PATH)/*.* ./../../
- clean:
- rm -rf $(CONFIG_NAME) ../../$(APP_NAME).elf ../../$(APP_NAME).hex ../../$(APP_NAME).srec ../../$(APP_NAME).bin
- directories:
- @"mkdir" -p $(LIST_PATH)
- @"mkdir" -p $(EXE_PATH)
- @"mkdir" -p $(OBJ_PATH)
- size: $(EXE_PATH)/$(APP_NAME).elf
- @echo
- @$(SIZE) -td $(EXE_PATH)/$(APP_NAME).elf
- ifeq ($(MAKECMDGOALS), fresh)
- directories: clean
- endif
- fresh: all
- # eof Makefile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement