gonzui


Format: Advanced Search

tkernel_2/lib/libtm/src/Makefile.commonbare sourcepermlink (0.01 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 2012/11/27.
   11: #     Modified by T-Engine Forum at 2013/02/30.
   12: #     Modified by TRON Forum(http://www.tron.org/) at 2015/06/01.
   13: #
   14: # ----------------------------------------------------------------------
   15: #
   16: 
   17: #
   18: #       Makefile for gmake
   19: #       libtm - T-Monitor library (common description)
   20: #
   21: 
   22: # source file dependencies (generated automatically)
   23: DEPS = Dependencies
   24: DEPENDENCIES_OUTPUT := $(DEPS)
   25: 
   26: # ----------------------------------------------------------------------------
   27: 
   28: # target file
   29: TARGET = libtm.a
   30: 
   31: # source file path
   32: S = ../../src
   33: VPATH = $(S) $(S)/sysdepend/$(TETYPE)_$(MACHINE)
   34: HEADER += $(S) $(S)/sysdepend/$(TETYPE)_$(MACHINE)
   35: 
   36: # source files
   37: SRC +=  tm_monitor.S tm_getchar.S tm_putchar.S tm_getline.S tm_putstring.S \
   38:         tm_command.S tm_readdisk.S tm_writedisk.S tm_infodisk.S tm_exit.S \
   39:         tm_extsvc.S \
   40:         _getchar.c _getstring.c _putchar.c _putstring.c tm_printf.c
   41: 
   42: OBJ = $(addsuffix .o, $(basename $(SRC)))
   43: 
   44: # compiler options
   45: CFLAGS += $(CFLAGS_WARNING)
   46: 
   47: # ----------------------------------------------------------------------------
   48: 
   49: .PHONY: all clean install clean_install
   50: 
   51: ALL = $(TARGET)
   52: 
   53: all: $(ALL)
   54: 
   55: $(TARGET): $(OBJ)
   56:         $(AR) $(ARFLAGS) $@ $?
   57:   ifdef RANLIB
   58:         $(RANLIB) $@
   59:   endif
   60: 
   61: install: $(addprefix $(LIB_INSTALLDIR)/, $(ALL))
   62: 
   63: clean:
   64:         $(RM) $(OBJ) $(ALL) $(DEPS)
   65: 
   66: clean_install:
   67:         $(RM) $(addprefix $(LIB_INSTALLDIR)/, $(ALL))
   68: 
   69: # generate dependencies
   70: ifdef DEPENDENCIES_OUTPUT
   71:   $(DEPS): ; touch $(DEPS)
   72: else
   73:   $(DEPS): $(SRC) ; $(MAKEDEPS) $@ $?
   74: endif
   75: -include $(DEPS)