gonzui


Format: Advanced Search

tkernel_2/lib/libstr/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 2014/09/10.
   11: #     Modified by TRON Forum(http://www.tron.org/) at 2015/06/01.
   12: #
   13: # ----------------------------------------------------------------------
   14: #
   15: 
   16: #
   17: #       Makefile for gmake
   18: #       libstr - T-Kernel string 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 = libstr.a
   29: 
   30: # source file path
   31: S = ../../src
   32: VPATH = $(S) $(S)/sysdepend/$(MACHINE)
   33: HEADER += $(S) $(S)/sysdepend/$(MACHINE)
   34: 
   35: # source files
   36: SRC +=  string.c
   37: 
   38: OBJ     = $(addsuffix .o, $(basename $(notdir $(SRC))))
   39: 
   40: # compiler options
   41: CFLAGS += $(CFLAGS_WARNING)
   42: 
   43: # ----------------------------------------------------------------------------
   44: 
   45: .PHONY: all clean install clean_install
   46: 
   47: ALL = $(TARGET)
   48: 
   49: all: $(ALL)
   50: 
   51: $(TARGET): $(OBJ)
   52:         $(AR) $(ARFLAGS) $@ $?
   53:   ifdef RANLIB
   54:         $(RANLIB) $@
   55:   endif
   56: 
   57: install: $(TARGET:%=$(LIB_INSTALLDIR)/%)
   58: 
   59: clean:
   60:         $(RM) $(OBJ) $(ALL) $(DEPS)
   61: 
   62: clean_install:
   63:         $(RM) $(TARGET:%=$(LIB_INSTALLDIR)/%)
   64: 
   65: # generate dependencies
   66: ifdef DEPENDENCIES_OUTPUT
   67:   $(DEPS): ; touch $(DEPS)
   68: else
   69:   $(DEPS): $(SRC) ; $(MAKEDEPS) $@ $?
   70: endif
   71: -include $(DEPS)