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

📄 rules.zinc

📁 zinc60t22.tar.gz:zinc在tornado2.2.x下的补丁
💻 ZINC
字号:
# rules.zinc - Host independent rules for making Zinc libraries## modification history# --------------------# 01i,19jun03,jlb  Modified for Tornado 2.2# 01h,20jul01,wdf  Made changes for StrongArm compiler.# 01g,13jul01,wdf  Updated makefile for Mips little endian compiler.# 01f,20dec00,wdf  Fixed example Makefiles so they use compile options defined#                  in this Makefile.# 01e,26oct00,jlb  Fixed directory slashes so can build on Unix# 01d,23oct00,wdf  For SH7750, turn off optimizations.# 01c,20oct00,bbj  Remove ugl links# 01b,09oct00,bbj  Fix capitalization error# 01a,01oct00,jlb   created## DESCRIPTION## This file is included by every Makefile in the Zinc build.# This file contains makefile rules that are host independent for creating# Zinc libraries. ## INCLUDES#	$(TGT_DIR)/h/make/rules.library#### The build targets supported for maintaining the Zinc archive are:## targets for maintaining the Zinc archive.##  zinc - compiles each modified file and updates the zinc archive with #        with the new object files##  zincrclean - recursively removes each object file and deletes the archive##  zincclean - removes each object file in the current directory#### targets for maintaining the Zinc files in the vxWorks archive.##  Default - compiles each modified file and updates the vxWorks archive with #            with the new object files##  rclean  - recursively removes each object file and deletes the archive##  clean   - removes each object file in the current directory##   # targets for maintaining the Zinc object file are:## zincobj - builds a zinc object file that contains all of the Zinc#           functionality.  This will build the following objects:##           zinc$(CPU)$(TOOL)NoMunch.o - the non-munched object file#           zinc$(CPU)$(TOOL).o - the munched object file#### Include some default definitions#include $(TGT_DIR)/h/make/defs.default## re-map TOOL_FAMILY to TOOLifeq ($(TOOL_FAMILY),gnu)ifeq ($(findstring diab,$(TOOL)),diab)TOOL_FAMILY     = diabendifendifLIB_COMMON      = trueLIB_BASE_NAME   = Zinc# Include library rules#include $(TGT_DIR)/h/make/rules.library# Define the Zinc archive based on the VxWorks versionZINC_LIB_ROOT           = $(TGT_DIR)$(DIRCHAR)lib$(DIRCHAR)$(LIBDIRBASE)$(DIRCHAR)ZINC_OBJECT       	= $(ZINC_LIB_ROOT)zincNoMunch.oZINC_OBJECT_MUNCH 	= $(ZINC_LIB_ROOT)zinc.oZINC_TMP_OBJECT   	= $(ZINC_LIB_ROOT)zinc$(DIR)Tmp.oZINC_LIB		= $(TGT_DIR)$(DIRCHAR)lib$(DIRCHAR)$(LIBNAME)ifeq ($(LD_PARTIAL_FLAGS),)LD_PARTIAL_FLAGS = -rendif# Get list of object file with paths for the entire application layer		  ZINC_OBJ_LIST	= $(foreach file, $(OBJS), $(LIBDIR)/$(file))ZINC_TMP_LIST	= $(foreach dir, $(SUBDIRS),$(ZINC_LIB_ROOT)/zinc$(dir)Tmp.o) ifneq ($(BLD_TYPE),ZINC_DEMO)############################################################## Update the ZINC archive#zinc: checkdir    	$(MAKE) CPU=$(CPU) TOOL=$(TOOL) TGT_DIR=$(TGT_DIR) BLD_TYPE=ZINC        zincrclean: checkdir	$(MAKE) CPU=$(CPU) TOOL=$(TOOL) TGT_DIR=$(TGT_DIR) BLD_TYPE=ZINC rclean	$(RM) $(LIBNAME_DIR)# Remove the ZINC object file in the current directoryzincclean:  checkdir	$(MAKE) CPU=$(CPU) TOOL=$(TOOL) TGT_DIR=$(TGT_DIR) BLD_TYPE=ZINC clean############################################################### Verify that the required Zinc directories are present.#checkdir:ifeq ($(WIND_HOST_TYPE),x86-win32)	@if not exist $(subst /,$(DIRCHAR),$(LIBDIR)) \		@mkdir $(subst /,$(DIRCHAR),$(LIBDIR))else	@ - if [ -d $(LIBDIR) ] ; then \		echo ; \	else \		mkdir $(subst /,$(DIRCHAR),$(LIBDIR)) ; \	fiendif ############################################################### Build the Zinc object file, build a non-munched zinc object file# zinc$(CPU)$(TOOL).obj, a munched object file zinc$(CPU)$(TOOL).o#zincobj:	$(MAKE) CPU=$(CPU) TOOL=$(TOOL) TGT_DIR=$(TGT_DIR) zincifneq ($(SUBDIRS),)	$(MAKE) CPU=$(CPU) TOOL=$(TOOL) TGT_DIR=$(TGT_DIR) \		TARGET=zincobj $(SUBDIRS)	$(LD) $(LD_PARTIAL_FLAGS) -o  $(ZINC_OBJECT) $(ZINC_TMP_LIST)	@ $(RM) $(ZINC_TMP_LIST)	$(NM) $(ZINC_OBJECT) | $(MUNCH) > $(subst /,$(DIRCHAR),$(LIBDIR)/ctdt.c)	$(CC) -c $(C++FLAGS) $(LIBDIR)/ctdt.c -o $(LIBDIR)/ctdt.o	$(LD) $(LD_PARTIAL_FLAGS) -o $(ZINC_OBJECT_MUNCH) $(ZINC_OBJECT) $(LIBDIR)/ctdt.o	@ $(RM) $(subst /,$(DIRCHAR),$(LIBDIR)/ctdt.c) $(subst /,$(DIRCHAR),$(LIBDIR)/ctdt.o) else	$(LD) $(LD_PARTIAL_FLAGS) -o  $(ZINC_TMP_OBJECT) $(ZINC_OBJ_LIST)endif	############################################################### Clean out the Zinc object file#zincobjclean:	$(RM) $(ZINC_OBJECT) $(ZINC_OBJECT_MUNCH) 	############################################################### build targets to maintain old compatibility#applibs:  zincobjapplibsclean: zincobjclean	@ $(RM)	$(LIB)endif   

⌨️ 快捷键说明

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