⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile.common

📁 使用广泛的日本著名的开源嵌入式实时操作系统T-Kernel的源码
💻 COMMON
字号:
## ----------------------------------------------------------------------#     T-Kernel##     Copyright (C) 2004-2006 by Ken Sakamura. All rights reserved.#     T-Kernel is distributed under the T-License.# ----------------------------------------------------------------------##     Version:   1.02.02#     Released by T-Engine Forum(http://www.t-engine.org) at 2006/8/9.## ----------------------------------------------------------------------###	Makefile for gmake#	libsvc - System call interface library (common description)## library versionLIB_VERSION = 2# source file dependencies (generated automatically)DEPS = DependenciesDEPENDENCIES_OUTPUT := $(DEPS)# ----------------------------------------------------------------------------# target filesTARGET.a  = libsvc.aTARGET.so = libsvc.so.$(LIB_VERSION)# source file pathS	= ../../srcI	= $(S)/sysdepend/include $(BD)/include/sys/svcIFSRC	= $(S)/sysdepend/$(MACHINE)VPATH := $(VPATH):$(IFSRC):$(S)SRC = $(SRC_TK) $(wildcard $(IFSRC)/*.S)HEADER += $(I)OBJ = $(addsuffix .o, $(basename $(notdir $(SRC))))# auto generation header/source filesIFLIB_TK =	$(BD)/include/tk/syscall.hIFLIB_TD =	$(BD)/include/tk/dbgspt.hIFLIB_SVC =	tk/devmgr.h \		tk/sysmgr.h \		sys/consio.h \		sys/segment.h \		$(IFLIB_SYSDEP)HEADER   += $(IFSRC)/includeCPPFLAGS += -DBKERNELCFLAGS   += $(CFLAGS_WARNING)# ----------------------------------------------------------------------------.PHONY: all clean clean_all installifeq ($(LIBTYPE), so)  ALL = $(TARGET.so) $(TARGET.so).mapelse  ALL = $(TARGET.a)endifall: $(ALL)$(TARGET.a): $(OBJ)	$(AR) $(ARFLAGS) $@ $?  ifdef RANLIB	$(RANLIB) $@  endif$(TARGET.so): $(OBJ)	$(LINK.o) $(LDOBJS) $^ $(LOADLIBES) $(LDLIBS) $(OUTPUT_OPTION)clean:	$(RM) *.o $(ALL)	$(RM) $(DEPS)clean_all: clean clean_source	$(RM) $(DEPS)install: $(addprefix $(LIB_INSTALLDIR)/, $(ALL))ifeq ($(LIBTYPE), so)install: $(addprefix $(EXE_INSTALLDIR)/, $(ALL))endif# generafe interface library source file.PHONY: source clean_sourcesource:	( cd $(S); $(BD)/etc/mktksvc $(MACHINE) $(IFLIB_TK) );	( cd $(S); $(BD)/etc/mktdsvc $(MACHINE) $(IFLIB_TD) );	( cd $(S) ; \	for iflib_src in $(IFLIB_SVC) ; do \	  $(BD)/etc/mkiflib $(MACHINE) $(BD)/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 + -