gonzui


Format: Advanced Search

tkernel_2/lib/libtk/src/Makefile.commonbare sourcepermlink (0.03 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/28.
   11: #     Modified by TRON Forum(http://www.tron.org/) at 2015/06/01.
   12: #
   13: # ----------------------------------------------------------------------
   14: #
   15: 
   16: #
   17: #       Makefile for gmake
   18: #       libtk - T-Kernel library (common description)
   19: #
   20: 
   21: # source file dependencies (generated automatically)
   22: DEPS = Dependencies
   23: DEPENDENCIES_OUTPUT := $(DEPS)
   24: 
   25: # ----------------------------------------------------------------------------
   26: 
   27: # target file
   28: TARGET = libtk.a
   29: 
   30: # source file path
   31: S = ../../src
   32: VPATH = $(S) $(S)/sysdepend/$(TETYPE)_$(MACHINE)
   33: HEADER += $(S) $(S)/sysdepend/$(TETYPE)_$(MACHINE)
   34: 
   35: # source files
   36: SRC +=  libinit.c knlinit.c _commarea.c liblock.c \
   37:         fastlock.c fastmlock.c \
   38:         chkspc.c chkspc2.c chkspc3.c \
   39:         memalloc.c memcheck.c tkminit.c malloc.c \
   40:         kmalloc.c kmcheck.c vmalloc.c vmcheck.c smalloc.c smcheck.c \
   41:         dbgmode.c fsrcvmode.c getdembf.c \
   42:         prreg.c _exit.c
   43: 
   44: OBJ     = $(addsuffix .o, $(basename $(notdir $(SRC))))
   45: 
   46: # compiler options
   47: CFLAGS += $(CFLAGS_WARNING)
   48: 
   49: CPPFLAGS += -DTKERNEL_CHECK_CONST
   50: 
   51: # ----------------------------------------------------------------------------
   52: 
   53: .PHONY: all clean install clean_install
   54: 
   55: ALL = $(TARGET)
   56: 
   57: all: $(ALL)
   58: 
   59: $(TARGET): $(OBJ)
   60:         $(AR) $(ARFLAGS) $@ $?
   61:   ifdef RANLIB
   62:         $(RANLIB) $@
   63:   endif
   64: 
   65: install: $(TARGET:%=$(LIB_INSTALLDIR)/%)
   66: 
   67: clean:
   68:         $(RM) $(OBJ) $(ALL) $(DEPS)
   69: 
   70: clean_install:
   71:         $(RM) $(TARGET:%=$(LIB_INSTALLDIR)/%)
   72: 
   73: # generate dependencies
   74: ifdef DEPENDENCIES_OUTPUT
   75:   $(DEPS): ; touch $(DEPS)
   76: else
   77:   $(DEPS): $(SRC) ; $(MAKEDEPS) $@ $?
   78: endif
   79: -include $(DEPS)