?? makefile.common.variables
字號:
## File: Makefile.common.variables# Author: The SRI DECIPHER (TM) System# Date: Tue Nov 3 23:54:18 1992## Description:# This file provides the common "make" variables shared by the# DECIPHER (TM) subsystems. Include this file in the variables# a makefile to use the shared definitions. (Typically, the# "include" should be the first command in the makefile.)## Copyright (c) 1992-2001 SRI International. All Rights Reserved.## $Header: /home/srilm/devel/common/RCS/Makefile.common.variables,v 1.26 2006/01/11 06:28:30 stolcke Exp $## Define variables# Determine the current host machine type.ifeq ($(MACHINE_TYPE), ) MACHINE_TYPE := $(shell $(SRILM)/sbin/machine-type)endififeq ($(OS_TYPE), ) OS_TYPE := $(shell uname -s)endififeq ($(OS_VERSION), ) OS_VERSION := $(shell uname -r)endif# Define options.OPTIMIZE_OPTION =COMPACT_OPTION = _cSHORT_OPTION = _sDEBUG_OPTION = _gPROFILE_OPTION = _pEXPORT_OPTION = _x# Flags for generating "compact" data structures (nothing by default)COMPACT_FLAGS = $(OPTIMIZE_FLAGS)# Flags for generating "short" data structures (nothing by default)SHORT_FLAGS = $(COMPACT_FLAGS)# Purify support (can be changed in Makefile.machine.$(MACHINE_TYPE))PURIFY = purifyPURIFY_FLAGS = -best-effort# Flag for generating "exported" code:# omit third-party functionality and strip binariesEXPORT_FLAGS = -DEXCLUDE_CONTRIBEXPORT_LDFLAGS = -s# How to create an archive libraryARCHIVE = $(AR) ruvAR_OUTPUT_OPTION = $@# This is appended to certain commands to demangle C++ symbolsDEMANGLE_FILTER = 2>&1 | c++filt# Path to GNU awk; used in editing scripts GAWK = /usr/local/bin/gawk# Path to Perl; used in editing scripts PERL = /usr/local/bin/perl# Keep the source and object files in separate directories.OUTPUT_OPTION = -o $@LD_OUTPUT_OPTION = -o $@# by default, linking uses same optimization switches as compilerLD_OPTION_FLAGS = $(OPTION_FLAGS)# File suffixesEXE_SUFFIX =OBJ_SUFFIX = .oLIB_SUFFIX = .aLIB_PREFIX = libMATH_LIBRARY = -lm# How to force linking with the math error handlerMATHERR_LINK = -u $(SYMBOL_PREFIX)matherrSYMBOL_PREFIX =# Include machine-type dependent variablesinclude $(SRILM)/common/Makefile.machine.$(MACHINE_TYPE)# Search in the SRILM library directories for things of the form "-l<LibName>".ifeq ($(EXTRA_LIBDIR), ) VPATH = $(SRILM_LIBDIR)else VPATH = $(SRILM_LIBDIR):$(EXTRA_LIBDIR)endif# Install script for all machines (based on GNU ginstall utility)INSTALL = $(SRILM)/sbin/decipher-install# Note: The current directory must be searched before the main SRILM include# directory to ensure that local versions of included files will be used.INCLUDES = $(ADDITIONAL_INCLUDES) -I. -I$(SRILM_INCDIR)DEPENDENCIES = Dependencies.$(MACHINE_TYPE)# Which of the above options is to be used by default?OPTION = $(OPTIMIZE_OPTION)# The make option determines the object and binary directory suffixes.OBJ_OPTION = $(OPTION)BIN_OPTION = $(OPTION)# Choose the appropriate compilation options.ifeq ($(OPTION), $(OPTIMIZE_OPTION)) OPTION_FLAGS = $(OPTIMIZE_FLAGS)else ifeq ($(OPTION), $(COMPACT_OPTION)) OPTION_FLAGS = $(COMPACT_FLAGS) else ifeq ($(OPTION), $(SHORT_OPTION)) OPTION_FLAGS = $(SHORT_FLAGS) else ifeq ($(OPTION), $(DEBUG_OPTION)) OPTION_FLAGS = $(DEBUG_FLAGS) else ifeq ($(OPTION), $(PROFILE_OPTION)) OPTION_FLAGS = $(PROFILE_FLAGS) # We also need to link with the profiling flags. ADDITIONAL_LDFLAGS := $(ADDITIONAL_LDFLAGS) $(PROFILE_FLAGS) else ifeq ($(OPTION), $(EXPORT_OPTION)) # Export programs are compiled with optimization # and linked with special export flags. OPTION_FLAGS = $(OPTIMIZE_FLAGS) $(EXPORT_FLAGS) ADDITIONAL_LDFLAGS := $(ADDITIONAL_LDFLAGS) $(EXPORT_LDFLAGS) endif endif endif endif endifendif# Define directories.# SRILM directories.SRILM_INCDIR = $(SRILM)/includeSRILM_LIB = $(SRILM)/libSRILM_LIBDIR = $(SRILM_LIB)/$(MACHINE_TYPE)$(OBJ_OPTION)SRILM_BIN = $(SRILM)/binSRILM_BINDIR = $(SRILM_BIN)/$(MACHINE_TYPE)$(BIN_OPTION)# Default directories.SRCDIR = .BASE_OBJDIR = ../obj/$(MACHINE_TYPE)OBJDIR = $(BASE_OBJDIR)$(OBJ_OPTION)BASE_BINDIR = ../bin/$(MACHINE_TYPE)BINDIR = $(BASE_BINDIR)$(BIN_OPTION)# Lint output files:ALL_LINT = $(ALL_SOURCES:$(SRCDIR)/%.c=$(SRCDIR)/%.lint)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -