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

📄 makerules

📁 T-kernel 的extension源代码
💻
字号:
## ----------------------------------------------------------------------#     T-Kernel / Standard Extension##     Copyright (C) 2004 by Ken Sakamura. All rights reserved.#     T-Kernel is distributed under the T-License.# ----------------------------------------------------------------------##     Version:   1.B0.03#     Released by T-Engine Forum(http://www.t-engine.org) at 2005/8/17.## ----------------------------------------------------------------------###	makerules#		for GNU make##	common standard rules (default rules)##	environment variables:##	mode	compile mode#		(empty)	: release version#		debug	: debug version##	BD	development environment base derectory##	GNUs	closs development environment tool#	GNU_BD	GNU closs development environment tool base directory##	this makerules needs:#	 * /usr/local/bin/make	GNU make version 3.78.1#	 * /usr/local/bin/perl	perl version 5.005_03#.EXPORT_ALL_VARIABLES:# ===== default settings ======================================================### environments ###ifndef BD  # default base directory  BD := /usr/local/teendififndef MACHINE  # target machine  MACHINE := $(firstword $(options))endififndef TETYPE  # target T-Engine type  TETYPE := stdendififeq ($(origin mode), undefined)  # compile mode  mode := $(filter debug, $(options))endif# ===== directories ===========================================================## COMMONLIB		common library# LIB_INSTALLDIR	library install directory# EXE_INSTALLDIR	executable install directorySUFFIX_LIB  =SUFFIX_INST =ifneq ($(filter so, $(options)), )  SUFFIX_LIB = .dlendififdef MAKE_DLL  SUFFIX_LIB = .dlendifCOMMONLIB = $(BD)/lib/build/$(TETYPE)_$(MACHINE)$(SUFFIX_LIB)LIB_INSTALLDIR = $(COMMONLIB)EXE_INSTALLDIR = $(BD)/bin/$(TETYPE)_$(MACHINE)$(SUFFIX_INST)ifneq ($(filter G0, $(options)), )  SUFFIX_LIB = .G0endif# ===== common definition =====================================================CROSS_ARCH := $(shell $(BD)/etc/platform)CCS := $(shell test -d /usr/ccs && echo ccs/)TOOL_ORIGIN = "environment" "command line"### others ###ETCBIN := $(GNU_BD)/etcRM	= rm -fCP	= cpPERL	= perlMKBTF	= $(ETCBIN)/mkbtfifneq ($(shell test -x $(GNU_BD)/bin/cpp && echo exist), )  CPP = $(GNU_BD)/bin/cppelse  CPP =endif### header file ###HEADER		= $(BD)/includeHEADER_TKSE	= $(BD)/tkse/include $(BD)/include/tkse### install common library ###$(LIB_INSTALLDIR)/%.so.$(LIB_VERSION): %.so.$(LIB_VERSION)	$(BD)/etc/backup_copy -t $< $(LIB_INSTALLDIR)$(LIB_INSTALLDIR)/%.map: %.map	$(BD)/etc/backup_copy -t $< $(LIB_INSTALLDIR)$(EXE_INSTALLDIR)/%.so.$(LIB_VERSION): %.so.$(LIB_VERSION)	$(EXE_INSTALL_STRIP)### install executable ###$(EXE_INSTALLDIR)/%: %	$(BD)/etc/backup_copy -t -d !OLD $< $(EXE_INSTALLDIR)define EXE_INSTALL_BZCOMP	$(BD)/etc/backup_copy -t -d !OLD $< $(EXE_INSTALLDIR)	$(STRIP) $@	$(ETCBIN)/bzcomp $(BZCOMP_FLAGS) $@endefdefine EXE_INSTALL_STRIP	$(BD)/etc/backup_copy -t -d !OLD $< $(EXE_INSTALLDIR)	$(STRIP) $@endef### build option ###CFLAGS =CPPFLAGS =ASFLAGS =LDFLAGS =# ===== system-dependent ======================================================include $(BD)/tkse/lib/etc/sysdepend/$(TETYPE)_$(MACHINE)/makerules.sysdepend# ===== common definition =====================================================### install library ###$(LIB_INSTALLDIR)/%.a: %.a	$(BD)/etc/backup_copy -t $< $(LIB_INSTALLDIR)  ifdef RANLIB	$(RANLIB) $@  endif$(LIB_INSTALLDIR)/%: %	$(BD)/etc/backup_copy -t $< $(LIB_INSTALLDIR)# =============================================================================

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -