gonzui


Format: Advanced Search

t2ex/t2ex_source/module/test-sys/src/Makefile.commonbare sourcepermlink (0.02 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 TRON Forum(http://www.tron.org/) at 2015/06/04.
   11: #
   12: # ----------------------------------------------------------------------
   13: #
   14: 
   15: #
   16: # This software package is available for use, modification, 
   17: # and redistribution in accordance with the terms of the attached 
   18: # T-License 2.x.
   19: # If you want to redistribute the source code, you need to attach 
   20: # the T-License 2.x document.
   21: # There's no obligation to publish the content, and no obligation 
   22: # to disclose it to the TRON Forum if you have modified the 
   23: # software package.
   24: # You can also distribute the modified source code. In this case, 
   25: # please register the modification to T-Kernel traceability service.
   26: # People can know the history of modifications by the service, 
   27: # and can be sure that the version you have inherited some 
   28: # modification of a particular version or not.
   29: #
   30: #    http://trace.tron.org/tk/?lang=en
   31: #    http://trace.tron.org/tk/?lang=ja
   32: #
   33: # As per the provisions of the T-License 2.x, TRON Forum ensures that 
   34: # the portion of the software that is copyrighted by Ken Sakamura or 
   35: # the TRON Forum does not infringe the copyrights of a third party.
   36: # However, it does not make any warranty other than this.
   37: # DISCLAIMER: TRON Forum and Ken Sakamura shall not be held
   38: # responsible for any consequences or damages caused directly or
   39: # indirectly by the use of this software package.
   40: #
   41: # The source codes in bsd_source.tar.gz in this software package are 
   42: # derived from NetBSD or OpenBSD and not covered under T-License 2.x.
   43: # They need to be changed or redistributed according to the 
   44: # representation of each source header.
   45: #
   46: 
   47: #
   48: #       Makefile for gmake
   49: #       T2EX: test module (em1d)
   50: #
   51: 
   52: DEPS = Dependencies
   53: DEPENDENCIES_OUTPUT := $(DEPS)
   54: 
   55: # module type
   56: MOD_TYP = s
   57: 
   58: include $(BD)/module/etc/makerules
   59: 
   60: # ----------------------------------------------------------------------------
   61: 
   62: TARGET = test_sys
   63: 
   64: S = ../../src
   65: 
   66: VPATH = $(S)
   67: HEADER += $(S)
   68: 
   69: SRC = main.c
   70: 
   71: OBJ = $(addsuffix .o, $(basename $(SRC)))
   72: 
   73: CFLAGS += $(CFLAGS_WARNING)
   74: 
   75: LDLIBS += -ltm
   76: 
   77: # ----------------------------------------------------------------------------
   78: 
   79: .PHONY: all clean install
   80: 
   81: ALL = $(TARGET) $(TARGET).map
   82: 
   83: all: $(ALL)
   84: 
   85: $(TARGET): $(OBJ)
   86:         $(LINK.o) $^ $(LDLIBS) $(OUTPUT_OPTION)
   87: 
   88: clean:
   89:         $(RM) $(OBJ) $(ALL) $(DEPS)
   90: 
   91: install: $(addprefix $(MODULE_INSTALLDIR)/, $(ALL))
   92: 
   93: ifdef DEPENDENCIES_OUTPUT
   94:   $(DEPS): ; touch $(DEPS)
   95: else
   96:   $(DEPS): $(SRC) ; $(MAKEDEPS) $@ $?
   97: endif
   98: -include $(DEPS)