# # File: Makefile.sparc-elf # Author: The SRI DECIPHER (TM) System # Date: Fri Mar 3 15:30:10 PST 1995 # # Description: # Machine dependent compilation options and variable definitions # for Sun Sparcstations running SunOS 5.x (a.k.a. Solaris 2.x). # # Copyright (c) 1995-2001 SRI International. All Rights Reserved. # # $Header: /home/srilm/CVS/srilm/common/Makefile.machine.sparc-elf,v 1.30 2012/10/19 05:38:47 stolcke Exp $ # ifeq ($(USE_CC), ) # Use the GNU C compiler. # XXX: Since most of our fast machines are UltraSPARC based, optimize # the code for that platform. GCC_FLAGS = -mtune=ultrasparc -Wall -Wno-unused-variable -Wno-uninitialized CC = $(GCC_PATH)gcc $(GCC_FLAGS) CXX = $(GCC_PATH)g++ $(GCC_FLAGS) -DINSTANTIATE_TEMPLATES # Optional compilation flags. OPTIMIZE_FLAGS = -g -O3 DEBUG_FLAGS = -g -DDEBUG PROFILE_FLAGS = -pg -g -O3 else # Use the Sun C compiler 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 # Tcl support TCL_INCLUDE = -I/usr/sfw/include TCL_LIBRARY = -L/usr/sfw/lib -R/usr/sfw/lib -ltcl8.3 # 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)