gonzui


Format: Advanced Search

t2ex/t2ex_source/driver/tef_em1d/netdrv/build/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 2013/02/20.
   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
   50: #               for GNU make
   51: #
   52: #       device driver : netdrv (em1d)
   53: 
   54: MACHINE = em1d
   55: TETYPE = tef
   56: 
   57: SRC_SYSDEP =
   58: 
   59: # ----------------------------------------------------------------------------
   60: 
   61: DEPS = Dependencies
   62: DEPENDENCIES_OUTPUT := $(DEPS)
   63: 
   64: include $(BD)/etc/makerules
   65: 
   66: HEADER = $(BD)/include
   67: 
   68: # ----------------------------------------------------------------------------
   69: 
   70: TARGET = netdrv
   71: 
   72: S = ../src
   73: 
   74: VPATH = $(S)
   75: HEADER += $(S)
   76: 
   77: SRC = main.c accept.c misc.c card.c io.c pci.c \
   78:         drvtab.c inthdr.c smsc9118.c
   79: SRC += $(SRC_SYSDEP)
   80: 
   81: OBJ = $(addsuffix .o, $(basename $(SRC)))
   82: 
   83: CFLAGS += $(CFLAGS_WARNING)
   84: 
   85: # ----------------------------------------------------------------------------
   86: 
   87: .PHONY: all clean install clean_install
   88: 
   89: ALL = $(TARGET).o
   90: 
   91: all: $(ALL)
   92: 
   93: $(TARGET).o: $(OBJ)
   94:         $(LINK_R.o) $^ $(OUTPUT_OPTION)
   95: 
   96: clean:
   97:         $(RM) $(OBJ) $(ALL) $(DEPS)
   98: 
   99: install: $(addprefix $(DRIVER_INSTALLDIR)/, $(ALL))
  100: 
  101: clean_install:
  102:         $(RM) $(addprefix $(DRIVER_INSTALLDIR)/, $(ALL))
  103: 
  104: ifdef DEPENDENCIES_OUTPUT
  105:   $(DEPS): ; touch $(DEPS)
  106: else
  107:   $(DEPS): $(SRC) ; $(MAKEDEPS) $@ $?
  108: endif
  109: -include $(DEPS)