gonzui


Format: Advanced Search

mtkernel_3/build_make/makefilebare sourcepermlink (0.00 seconds)

Search this content:

    1: ################################################################################
    2: # micro T-Kernel 3.00.05  makefile
    3: ################################################################################
    4: 
    5: # Specify the name of the executable file to be built (Do not include the extension)
    6: EXE_FILE := mtkernel_3
    7: 
    8: # Specify only one target name
    9: #TARGET := _IOTE_M367_
   10: #TARGET := _IOTE_RX231_
   11: #TARGET := _IOTE_STM32L4_
   12: #TARGET := _IOTE_RZA2M_
   13: 
   14: RM := rm -rf
   15: 
   16: INCPATH = -I"../include" -I"../config" -I"../kernel/knlinc"
   17: 
   18: -include sources.mk
   19: 
   20: include mtkernel_3/lib/libtm/subdir.mk
   21: include mtkernel_3/lib/libtk/subdir.mk
   22: include mtkernel_3/kernel/usermain/subdir.mk
   23: include mtkernel_3/kernel/tstdlib/subdir.mk
   24: include mtkernel_3/kernel/tkernel/subdir.mk
   25: include mtkernel_3/kernel/sysinit/subdir.mk
   26: include mtkernel_3/kernel/inittask/subdir.mk
   27: 
   28: include mtkernel_3/device/subdir.mk
   29: 
   30: ifeq ($(TARGET), _IOTE_M367_)
   31: include iote_m367.mk
   32: endif
   33: ifeq ($(TARGET), _IOTE_RX231_)
   34: include iote_rx231.mk
   35: endif
   36: ifeq ($(TARGET), _IOTE_STM32L4_)
   37: include iote_stm32l4.mk
   38: endif
   39: ifeq ($(TARGET), _IOTE_RZA2M_)
   40: include iote_rza2m.mk
   41: endif
   42: 
   43: -include mtkernel_3/app_sample/subdir.mk
   44: 
   45: ifneq ($(MAKECMDGOALS),clean)
   46: ifneq ($(strip $(ASM_DEPS)),)
   47: -include $(ASM_DEPS)
   48: endif
   49: ifneq ($(strip $(S_UPPER_DEPS)),)
   50: -include $(S_UPPER_DEPS)
   51: endif
   52: ifneq ($(strip $(C_DEPS)),)
   53: -include $(C_DEPS)
   54: endif
   55: endif
   56: 
   57: # All EXE_FILE
   58: all: $(EXE_FILE).elf
   59: 
   60: $(EXE_FILE).elf: $(OBJS)
   61:         @echo 'Linker: $@'
   62:         $(LINK)  $(LFLAGS) -T $(LNKFILE) -Wl,-Map,"$(EXE_FILE).map" -o "$(EXE_FILE).elf" $(OBJS)
   63:         @echo 'Finished building target: $@'
   64:         @echo ' '
   65: 
   66: # Other EXE_FILEs
   67: clean:
   68:         -$(RM) $(OBJS) $(SECONDARY_SIZE) $(ASM_DEPS) $(S_UPPER_DEPS) $(C_DEPS) $(EXE_FILE).elf
   69:         -@echo ' '
   70: 
   71: .PHONY: all clean dependents