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

📄 makefile.common

📁 uT Kernel os source code for AT91
💻 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#	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 =	$(IFLIB_SYSDEP)HEADER   += $(IFSRC)/includeCPPFLAGS += CFLAGS   += $(CFLAGS_WARNING)# config file path (kernel settings)HEADER  += ../../../../config# ----------------------------------------------------------------------------.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 + -