gonzui


Format: Advanced Search

t2ex/t2ex_source/kernel/sysmain/build_t2ex/tef_em1d/Makefilebare sourcepermlink (0.00 seconds)

Search this content:

    1: #
    2: # ----------------------------------------------------------------------
    3: #    T2EX Software Package
    4: #
    5: #    Copyright 2012 by Ken Sakamura.
    6: #    This software is distributed under the latest version of T-License 2.x.
    7: # ----------------------------------------------------------------------
    8: #
    9: #    Released by T-Engine Forum(http://www.t-engine.org/) at 2012/12/12.
   10: #    Modified by T-Engine Forum at 2014/07/31.
   11: #    Modified by TRON Forum(http://www.tron.org/) at 2015/06/04.
   12: #
   13: # ----------------------------------------------------------------------
   14: #
   15: 
   16: #
   17: # This software package is available for use, modification, 
   18: # and redistribution in accordance with the terms of the attached 
   19: # T-License 2.x.
   20: # If you want to redistribute the source code, you need to attach 
   21: # the T-License 2.x document.
   22: # There's no obligation to publish the content, and no obligation 
   23: # to disclose it to the TRON Forum if you have modified the 
   24: # software package.
   25: # You can also distribute the modified source code. In this case, 
   26: # please register the modification to T-Kernel traceability service.
   27: # People can know the history of modifications by the service, 
   28: # and can be sure that the version you have inherited some 
   29: # modification of a particular version or not.
   30: #
   31: #    http://trace.tron.org/tk/?lang=en
   32: #    http://trace.tron.org/tk/?lang=ja
   33: #
   34: # As per the provisions of the T-License 2.x, TRON Forum ensures that 
   35: # the portion of the software that is copyrighted by Ken Sakamura or 
   36: # the TRON Forum does not infringe the copyrights of a third party.
   37: # However, it does not make any warranty other than this.
   38: # DISCLAIMER: TRON Forum and Ken Sakamura shall not be held
   39: # responsible for any consequences or damages caused directly or
   40: # indirectly by the use of this software package.
   41: #
   42: # The source codes in bsd_source.tar.gz in this software package are 
   43: # derived from NetBSD or OpenBSD and not covered under T-License 2.x.
   44: # They need to be changed or redistributed according to the 
   45: # representation of each source header.
   46: #
   47: 
   48: #
   49: #       Makefile for gmake
   50: #       sysmain (system-dependent description)
   51: #
   52: 
   53: # T-Engine type
   54: MACHINE = em1d
   55: TETYPE  = tef
   56: 
   57: # ----------------------------------------------------------------------------
   58: # T2EX definitions
   59: T2EX = _t2ex
   60: 
   61: # use T2EX memory management
   62: T2EX_MM = _t2ex
   63: 
   64: # use task fault function of T2EX memory management
   65: T2EX_MM_USE_TASKEXCEPTION = 1
   66: 
   67: # use default memory fault handlers
   68: T2EX_MM_USE_DEFAULT_FAULT_HANDLER = 1
   69: 
   70: # use T2EX file management
   71: T2EX_FS = yes
   72: 
   73: # use T2EX network communication
   74: T2EX_NET = yes
   75: 
   76: # use T2EX calendar
   77: T2EX_DT = yes
   78: 
   79: # use T2EX program load
   80: T2EX_PM = yes
   81: 
   82: # use T2EX network sample programs
   83: T2EX_NET_SAMPLE = yes
   84: 
   85: # ----------------------------------------------------------------------------
   86: # default rules
   87: include $(BD)/etc/makerules
   88: 
   89: # ----------------------------------------------------------------------------
   90: # source files
   91: SRC_SYS = usermain_t2ex.c
   92: 
   93: # source files for simple command interpreter
   94: SRC_SYS += appl_main.c command.c
   95: 
   96: # user-level source files
   97: SRC_USR =
   98: 
   99: # user-level libraries
  100: LDUSRLIBS =
  101: 
  102: # ----------------------------------------------------------------------------
  103: # device driver definitions
  104: DRV_CONSOLE = yes
  105: DRV_CLOCK   = yes
  106: DRV_SYSDISK = yes
  107: DRV_SCREEN  = yes
  108: DRV_KBPD    = yes
  109: DRV_LOWKBPD = yes
  110: DRV_NET     = yes
  111: 
  112: OBJ_DRIVER = $(BD)/driver/$(TETYPE)_$(MACHINE)/build
  113: ifdef DRV_CONSOLE
  114:   I_OBJ += $(OBJ_DRIVER)/console.o
  115:   CFLAGS += -DDRV_CONSOLE
  116:   LDUSRLIBS += -lconsolesvc
  117: endif
  118: ifdef DRV_CLOCK
  119:   I_OBJ += $(OBJ_DRIVER)/clkdrv.o
  120:   CFLAGS += -DDRV_CLOCK
  121:   LDUSRLIBS += -lem1diic
  122: endif
  123: ifdef DRV_SYSDISK
  124:   I_OBJ += $(OBJ_DRIVER)/sysdsk.o
  125:   CFLAGS += -DDRV_SYSDISK
  126: endif
  127: ifdef   DRV_SCREEN
  128:   I_OBJ += $(OBJ_DRIVER)/screen.o
  129:   CFLAGS += -DDRV_SCREEN
  130: endif
  131: ifdef   DRV_KBPD
  132:   I_OBJ += $(OBJ_DRIVER)/kbpd.o
  133:   CFLAGS += -DDRV_KBPD=1
  134: endif
  135: ifdef   DRV_LOWKBPD
  136:   I_OBJ += $(OBJ_DRIVER)/lowkbpd.o
  137:   CFLAGS += -DDRV_LOWKBPD
  138: endif
  139: ifdef   DRV_NET
  140:   I_OBJ += $(OBJ_DRIVER)/netdrv.o
  141:   CFLAGS += -DDRV_NET
  142: endif
  143: 
  144: # ----------------------------------------------------------------------------
  145: # additional libraries
  146: LDUSRLIBS += -ldrvif -lstr
  147: ifdef   T2EX
  148:   # additional header file path for t2ex
  149:   HEADER := $(BD)/include/t2ex $(HEADER)
  150: endif
  151: 
  152: # ----------------------------------------------------------------------------
  153: # network sample programs
  154: ifdef   T2EX_NET_SAMPLE
  155:   # include network_sample programs
  156:   include ../../src/network_sample/Makefile.sample
  157:   CFLAGS += -DNET_SAMPLE
  158: endif
  159: 
  160: # ----------------------------------------------------------------------------
  161: # include main makefile (common description)
  162: include ../Makefile.common
  163: