gonzui


Format: Advanced Search

tkernel_2/lib/crt/crt0/src/Makefile.commonbare sourcepermlink (0.00 seconds)

Search this content:

    1: #
    2: # ----------------------------------------------------------------------
    3: #     T-Kernel 2.0 Software Package
    4: #
    5: #     Copyright 2011 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 2011/05/17.
   10: #     Modified by T-Engine Forum at 2013/02/20.
   11: #     Modified by TRON Forum(http://www.tron.org/) at 2015/06/01.
   12: #
   13: # ----------------------------------------------------------------------
   14: #
   15: 
   16: #
   17: #       Makefile for gmake
   18: #       crt0 - C startup routine (common description)
   19: #
   20: 
   21: # source file dependencies (generated automatically)
   22: DEPS = Dependencies
   23: DEPENDENCIES_OUTPUT := $(DEPS)
   24: 
   25: # ----------------------------------------------------------------------------
   26: 
   27: # source file path
   28: S = ../../src
   29: VPATH = $(S) $(S)/sysdepend/$(TETYPE)_$(MACHINE)
   30: HEADER += $(S) $(S)/sysdepend/$(TETYPE)_$(MACHINE)
   31: 
   32: # ----------------------------------------------------------------------------
   33: 
   34: .PHONY: all clean install clean_install
   35: 
   36: all: $(TARGET)
   37: 
   38: install: $(TARGET:%=$(LIB_INSTALLDIR)/%)
   39: 
   40: clean:
   41:         $(RM) $(TARGET) $(DEPS)
   42: 
   43: clean_install:
   44:         $(RM) $(TARGET:%=$(LIB_INSTALLDIR)/%)
   45: 
   46: # generate dependencies
   47: ifdef DEPENDENCIES_OUTPUT
   48:   $(DEPS): ; touch $(DEPS)
   49: else
   50:   $(DEPS): $(SRC) ; $(MAKEDEPS) $@ $?
   51: endif
   52: -include $(DEPS)