📄 makefile.common
字号:
## ----------------------------------------------------------------------# micro T-Kernel## Copyright (C) 2006-2007 by Ken Sakamura. All rights reserved.# micro T-Kernel is distributed under the micro T-License.# ----------------------------------------------------------------------## Version: 1.00.00# Released by T-Engine Forum(http://www.t-engine.org) at 2007/03/26.## ----------------------------------------------------------------------### Makefile for gmake# libtk - T-Kernel library (common description)## source file dependencies (generated automatically)DEPS = DependenciesDEPENDENCIES_OUTPUT := $(DEPS)# ----------------------------------------------------------------------------# target fileTARGET = libtk.aMKFF = $(BD)/etc/mkfuncfiles# source file pathS = ../../srcVPATH = $(S) $(S)/sysdepend/$(TETYPE)_$(MACHINE)HEADER += $(S) $(S)/sysdepend/$(TETYPE)_$(MACHINE)# source filesORGSRC += fastlock.c fastmlock.c# source files for each functioninclude $(S)/functions.listFUNCSRC = $(addsuffix .c, $(basename $(FUNCTIONS)))SRC += $(FUNCSRC)OBJ = $(addsuffix .o, $(basename $(notdir $(SRC))))# functions source filesVPATH += $(S)/funcHEADER += $(S)/func# config file path (kernel settings)HEADER += ../../../../config# compiler optionsCFLAGS += $(CFLAGS_WARNING)# ----------------------------------------------------------------------------.PHONY: all source obj clean installALL = $(TARGET)all: make source make objobj: $(ALL)$(TARGET): $(OBJ) $(AR) $(ARFLAGS) $@ $? ifdef RANLIB $(RANLIB) $@ endifsource: $(ORGSRC) (cd $(S); \ for infile in $(ORGSRC) ; do \ $(MKFF) $$infile ; \ done );install: $(TARGET:%=$(LIB_INSTALLDIR)/%)clean: clean_source @$(RM) $(OBJ) $(ALL) $(DEPS)clean_source: @(cd $(S)/func ; $(RM) $(FUNCSRC))# generate dependenciesifdef DEPENDENCIES_OUTPUT $(DEPS): ; touch $(DEPS)else $(DEPS): $(SRC) ; $(MAKEDEPS) $@ $?endifinclude $(DEPS)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -