2010-01-18 14:49:33 +08:00
|
|
|
# Options which may be overriden for platforms, etc.
|
|
|
|
#
|
|
|
|
# This list of such variables should be kept up to date with AvailableOptions in
|
|
|
|
# 'make/lib_info.mk'.
|
|
|
|
|
|
|
|
# The compiler to use.
|
|
|
|
CC := gcc
|
|
|
|
|
|
|
|
# The compiler flags to use.
|
|
|
|
CFLAGS := -Wall -Werror
|
|
|
|
|
|
|
|
# The list of functions to include in the library.
|
|
|
|
FUNCTIONS :=
|
|
|
|
|
|
|
|
# Whether optimized function implementations should be used.
|
|
|
|
OPTIMIZED := 1
|
|
|
|
|
2010-01-19 06:19:34 +08:00
|
|
|
# Whether function definitions should use hidden visibility. This adds the
|
|
|
|
# -fvisibility=hidden compiler option and uses .private_extern annotations in
|
|
|
|
# assembly files.
|
|
|
|
#
|
|
|
|
# FIXME: Make this more portable. When that is done, it should probably be the
|
|
|
|
# default.
|
|
|
|
VISIBILITY_HIDDEN := 0
|
|
|
|
|
2012-09-08 03:57:23 +08:00
|
|
|
# Whether the library is being built for kernel use.
|
|
|
|
KERNEL_USE := 0
|
|
|
|
|
|
|
|
# Whether the library should be built as a shared object.
|
|
|
|
SHARED_LIBRARY := 0
|
|
|
|
|
2010-01-18 14:49:33 +08:00
|
|
|
# Miscellaneous tools.
|
|
|
|
|
|
|
|
AR := ar
|
|
|
|
# FIXME: Remove these pipes once ranlib errors are fixed.
|
|
|
|
ARFLAGS := cru 2> /dev/null
|
2012-09-08 03:57:23 +08:00
|
|
|
|
|
|
|
LDFLAGS :=
|
|
|
|
|
2010-01-18 14:49:33 +08:00
|
|
|
RANLIB := ranlib
|
|
|
|
# FIXME: Remove these pipes once ranlib errors are fixed.
|
|
|
|
RANLIBFLAGS := 2> /dev/null
|
2011-06-21 07:47:02 +08:00
|
|
|
|
|
|
|
STRIP := strip
|
|
|
|
LIPO := lipo
|
2012-11-27 06:48:51 +08:00
|
|
|
DSYMUTIL := dsymutil
|
2012-10-24 22:03:41 +08:00
|
|
|
|
|
|
|
SHARED_LIBRARY_SUFFIX := so
|