gonzui


Format: Advanced Search

tkernel_2/lib/crt/crttk/src/Makefile.commonbare sourcepermlink (0.02 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: #       crttk - T-Kernel 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: # target file
   35: TARGET = crttk.o
   36: 
   37: # source files
   38: SRC += pstartup.c asmstartup.S
   39: 
   40: # object files
   41: OBJ = $(addsuffix .o, $(basename $(SRC)))
   42: 
   43: # compiler options
   44: CFLAGS += $(CFLAGS_WARNING)
   45: 
   46: # ----------------------------------------------------------------------------
   47: 
   48: .PHONY: all clean install clean_install
   49: 
   50: ALL = $(TARGET)
   51: 
   52: all: $(ALL)
   53: 
   54: $(TARGET): $(OBJ)
   55:         $(LINK_R.o) $^ $(OUTPUT_OPTION)
   56: 
   57: install: $(addprefix $(LIB_INSTALLDIR)/, $(ALL))
   58: 
   59: clean:
   60:         $(RM) $(OBJ) $(ALL) $(DEPS)
   61: 
   62: clean_install:
   63:         $(RM) $(addprefix $(LIB_INSTALLDIR)/, $(ALL))
   64: 
   65: # generate dependencies
   66: ifdef DEPENDENCIES_OUTPUT
   67:   $(DEPS): ; touch $(DEPS)
   68: else
   69:   $(DEPS): $(SRC) ; $(MAKEDEPS) $@ $?
   70: endif
   71: -include $(DEPS)