📄 makefile.common
字号:
## ----------------------------------------------------------------------# T-Kernel / Standard Extension## Copyright (C) 2006 by Ken Sakamura. All rights reserved.# T-Kernel / Standard Extension is distributed # under the T-License for T-Kernel / Standard Extension.# ----------------------------------------------------------------------## Version: 1.00.00# Released by T-Engine Forum(http://www.t-engine.org) at 2006/8/11.## ----------------------------------------------------------------------### Makefile for gmake# libtksesvc - System call interface library (common description)## library versionLIB_VERSION = 2# source file dependencies (generated automatically)DEPS = DependenciesDEPENDENCIES_OUTPUT := $(DEPS)# ----------------------------------------------------------------------------# target filesTARGET_BASE = libtksesvcTARGET.a = $(TARGET_BASE).aTARGET.so = $(TARGET_BASE).so.$(LIB_VERSION)# source file pathS = ../../srcI = $(S)/sysdepend/include $(BD)/tkse/includeIFSRC = $(S)/sysdepend/$(MACHINE)VPATH := $(VPATH):$(IFSRC):$(S)SRC = $(SRC_TK) $(wildcard $(IFSRC)/*.S) \ raw_cio.c raw_cio2.c raw_cio3.c rs_rawio.cHEADER := $(I) $(HEADER)OBJ = $(addsuffix .o, $(basename $(notdir $(SRC))))# auto generation header/source filesIFLIB_TKSE = extension/clk.h extension/device.h extension/event.h \ extension/file.h extension/gname.h extension/memory.h \ extension/message.h extension/proctask.h \ extension/tkcall.h extension/seio.h \ sys/bdm.h extension/sys/segment.hHEADER += $(IFSRC)/includeCFLAGS += $(CFLAGS_WARNING)# ----------------------------------------------------------------------------.PHONY: all clean clean_all installifeq ($(LIBTYPE), so) EXE_INST = $(TARGET.so) $(TARGET.so).map ALL = $(EXE_INST) $(TARGET.a)else ALL = $(TARGET.a)endifall: $(ALL)$(TARGET.a): $(OBJ) $(AR) $(ARFLAGS) $@ $? ifdef RANLIB $(RANLIB) $@ endif$(TARGET.so): $(OBJ) $(LINK.o) $(LDOBJS) $^ $(LOADLIBES) $(LDLIBS) $(OUTPUT_OPTION)install: $(addprefix $(LIB_INSTALLDIR)/, $(ALL))ifeq ($(LIBTYPE), so)install: $(addprefix $(EXE_INSTALLDIR)/, $(EXE_INST))endifclean: $(RM) *.o $(ALL) $(RM) $(DEPS)clean_all: clean clean_source $(RM) $(DEPS)# generafe interface library source file.PHONY: source clean_sourcesource: ( cd $(S) ; \ for iflib_src in $(IFLIB_TKSE) ; do \ $(BD)/tkse/etc/mktksesvc $(MACHINE) $(BD)/tkse/include/$$iflib_src ; \ done );clean_source: ( cd $(I) ; $(RM) *.h ) ( cd $(IFSRC) ; $(RM) *.S )# generate dependenciesifdef DEPENDENCIES_OUTPUT $(DEPS): ; touch $(DEPS)else $(DEPS): $(SRC) ; $(MAKEDEPS) $@ $?endifinclude $(DEPS)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -