competition update
This commit is contained in:
@@ -0,0 +1,96 @@
|
||||
#
|
||||
# File: Makefile.machine.amd64-solaris
|
||||
# Author: The SRI DECIPHER (TM) System
|
||||
# Date: Fri Mar 3 15:30:10 PST 1995
|
||||
#
|
||||
# Description:
|
||||
# Machine dependent compilation options and variable definitions
|
||||
# for AMD64 running SunOS 5.x (a.k.a. Solaris 2.x).
|
||||
#
|
||||
# Copyright (c) 1995-2008 SRI International. All Rights Reserved.
|
||||
#
|
||||
# $Header: /home/srilm/CVS/srilm/common/Makefile.machine.amd64-solaris,v 1.7 2012-10-18 20:55:17 mcintyre Exp $
|
||||
#
|
||||
|
||||
ifeq ($(USE_CC), )
|
||||
# Use the GNU C compiler.
|
||||
GCC_FLAGS = -march=athlon64 -m64 -Wall -Wno-unused-variable -Wno-uninitialized
|
||||
CC = $(GCC_PATH)gcc $(GCC_FLAGS) -Wimplicit-int
|
||||
CXX = $(GCC_PATH)g++ $(GCC_FLAGS) -DINSTANTIATE_TEMPLATES
|
||||
|
||||
OPTIMIZE_FLAGS = -g -O3
|
||||
DEBUG_FLAGS = -g -DDEBUG
|
||||
PROFILE_FLAGS = -g -pg -O3
|
||||
else
|
||||
# Use the Sun C compiler
|
||||
ACC_PATH = /opt/SUNWspro/bin/
|
||||
CC = $(ACC_PATH)cc -Xa
|
||||
CXX = $(ACC_PATH)CC -ptr$(OBJDIR) -ptv
|
||||
|
||||
ARCHIVE = $(CXX) $(CXXFLAGS) -xar -o
|
||||
DEMANGLE_FILTER = 2>&1 | $(ACC_PATH)c++filt
|
||||
|
||||
# Optional compilation flags.
|
||||
OPTIMIZE_FLAGS = -fast -xO2 # -xO4 crashes compiler ...
|
||||
DEBUG_FLAGS = -g -DDEBUG
|
||||
PROFILE_FLAGS = -pg -g -O
|
||||
|
||||
# keep binaries separate from the default
|
||||
OPTIMIZE_OPTION = _CC
|
||||
endif
|
||||
|
||||
# Optional linking flags.
|
||||
EXPORT_LDFLAGS = -s
|
||||
|
||||
# Shared compilation flags.
|
||||
CFLAGS = -DSVR4 -D_FILE_OFFSET_BITS=64 $(ADDITIONAL_CFLAGS) $(INCLUDES)
|
||||
CXXFLAGS = -DSVR4 -D_FILE_OFFSET_BITS=64 $(ADDITIONAL_CXXFLAGS) $(INCLUDES)
|
||||
|
||||
# Shared linking flags.
|
||||
LDFLAGS = $(ADDITIONAL_LDFLAGS) -L$(SRILM_LIBDIR)
|
||||
|
||||
# Other useful compilation flags.
|
||||
ADDITIONAL_CFLAGS =
|
||||
ADDITIONAL_CXXFLAGS =
|
||||
|
||||
# Other useful include directories.
|
||||
ADDITIONAL_INCLUDES =
|
||||
|
||||
# Other useful linking flags.
|
||||
ADDITIONAL_LDFLAGS =
|
||||
|
||||
# Other useful libraries.
|
||||
SYS_LIBRARIES = -lsocket -lnsl -ldl -lpthread
|
||||
|
||||
# no 64bit Tcl libraries
|
||||
NO_TCL = X
|
||||
TCL_INCLUDE =
|
||||
TCL_LIBRARY =
|
||||
|
||||
# run-time linker path flag
|
||||
RLD_FLAG = -R
|
||||
|
||||
# several tools are in nonstandard place
|
||||
AR = /usr/ccs/bin/ar
|
||||
LD = /usr/ccs/bin/ld
|
||||
|
||||
# No ranlib -- this is SVR4
|
||||
RANLIB = :
|
||||
|
||||
# Generate dependencies from source files.
|
||||
ifneq ($(CC), $(subst gcc,,$(CC)))
|
||||
GEN_DEP = $(CC) $(CFLAGS) -MM
|
||||
else
|
||||
GEN_DEP = $(CC) $(CFLAGS) -M
|
||||
endif
|
||||
|
||||
ifneq ($(CXX), $(subst g++,,$(CXX)))
|
||||
GEN_DEP.cc = $(CXX) $(CXXFLAGS) -MM
|
||||
else
|
||||
GEN_DEP.cc = $(CXX) $(CXXFLAGS) -M
|
||||
endif
|
||||
|
||||
# Run lint.
|
||||
LINT = lint
|
||||
LINT_FLAGS = -DDEBUG $(CFLAGS)
|
||||
|
||||
Reference in New Issue
Block a user