gonzui


Format: Advanced Search

tkernel_2/kernel/sysinit/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/03/02.
   11: #     Modified by TRON Forum(http://www.tron.org/) at 2015/06/01.
   12: #
   13: # ----------------------------------------------------------------------
   14: #
   15: 
   16: #
   17: #       Makefile for gmake
   18: #       sysinit (common description)
   19: #
   20: 
   21: # source file dependencies (generated automatically)
   22: DEPS = Dependencies
   23: DEPENDENCIES_OUTPUT := $(DEPS)
   24: 
   25: # ----------------------------------------------------------------------------
   26: 
   27: # target object
   28: TARGET  = sysinit.o
   29: 
   30: S       = ../../src
   31: 
   32: # common source files
   33: SRC     += sysinit_main.c sysstartup.c gdevcnf.c gsyscnf.c \
   34:         patch.c inittask_def.c
   35: VPATH   += $(S)
   36: HEADER  += $(S)
   37: 
   38: # additional source files (cpu dependent)
   39: VPATH   += ../../../sysdepend/cpu/$(MACHINE)
   40: HEADER  += ../../../sysdepend/cpu/$(MACHINE)
   41: 
   42: # additional source files (device dependent)
   43: VPATH   += ../../../sysdepend/device/$(TETYPE)_$(MACHINE)
   44: HEADER  += ../../../sysdepend/device/$(TETYPE)_$(MACHINE)
   45: 
   46: # additional source files (inittask_dev.c)
   47: VPATH   += ../../../sysmain/src
   48: 
   49: # header file path (kernel settings)
   50: HEADER  += ../../../tkernel/src
   51: 
   52: OBJ     = $(addsuffix .o, $(basename $(SRC)))
   53: 
   54: # compiler options
   55: CFLAGS  += $(CFLAGS_WARNING)
   56: 
   57: # ----------------------------------------------------------------------------
   58: 
   59: .PHONY: all clean
   60: 
   61: ALL = $(TARGET) $(CRT0)
   62: 
   63: all: $(ALL)
   64: 
   65: $(TARGET): $(OBJ)
   66:         $(LINK_R.o) $^ $(OUTPUT_OPTION)
   67: 
   68: clean:
   69:         $(RM) $(OBJ) $(ALL) $(DEPS)
   70: 
   71: # generate dependencies
   72: $(DEPS): ; touch $(DEPS)
   73: -include $(DEPS)