2007-03-22 10:30:00 -07:00
|
|
|
#! /bin/sh
|
|
|
|
#
|
2012-04-02 10:06:06 -07:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
# You can obtain one at http://mozilla.org/MPL/2.0/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2007-08-30 21:23:04 -07:00
|
|
|
# allmakefiles.sh - List of all makefiles.
|
2007-03-22 10:30:00 -07:00
|
|
|
# Appends the list of makefiles to the variable, MAKEFILES.
|
|
|
|
# There is no need to rerun autoconf after adding makefiles.
|
|
|
|
# You only need to run configure.
|
|
|
|
|
2011-11-30 10:37:58 -08:00
|
|
|
# Turn on exit on error
|
|
|
|
set -o errexit
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
MAKEFILES=""
|
|
|
|
|
|
|
|
# add_makefiles - Shell function to add makefiles to MAKEFILES
|
|
|
|
add_makefiles() {
|
2007-08-30 21:23:04 -07:00
|
|
|
MAKEFILES="$MAKEFILES $*"
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
if [ "$srcdir" = "" ]; then
|
2007-08-30 21:23:04 -07:00
|
|
|
srcdir=.
|
2007-03-22 10:30:00 -07:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Common makefiles used by everyone
|
|
|
|
add_makefiles "
|
2012-08-03 23:47:28 -07:00
|
|
|
mozilla-config.h
|
2007-03-22 10:30:00 -07:00
|
|
|
Makefile
|
|
|
|
build/Makefile
|
2009-06-27 16:12:56 -07:00
|
|
|
build/pgo/Makefile
|
|
|
|
build/pgo/blueprint/Makefile
|
|
|
|
build/pgo/js-input/Makefile
|
2007-03-22 10:30:00 -07:00
|
|
|
config/Makefile
|
|
|
|
config/autoconf.mk
|
2009-06-27 16:12:56 -07:00
|
|
|
config/nspr/Makefile
|
2007-03-22 10:30:00 -07:00
|
|
|
config/doxygen.cfg
|
2011-02-25 06:05:08 -08:00
|
|
|
config/expandlibs_config.py
|
2012-02-10 04:40:30 -08:00
|
|
|
mfbt/Makefile
|
2007-10-10 16:03:14 -07:00
|
|
|
probes/Makefile
|
2007-03-22 10:30:00 -07:00
|
|
|
extensions/Makefile
|
|
|
|
"
|
|
|
|
|
2012-04-17 07:11:53 -07:00
|
|
|
if [ "$MOZ_WEBAPP_RUNTIME" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
webapprt/Makefile
|
|
|
|
"
|
|
|
|
fi
|
|
|
|
|
2011-11-30 10:37:57 -08:00
|
|
|
if [ ! "$LIBXUL_SDK" ]; then
|
2012-03-23 09:35:09 -07:00
|
|
|
if [ "$STLPORT_SOURCES" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
build/stlport/Makefile
|
|
|
|
build/stlport/stl/config/_android.h
|
|
|
|
"
|
|
|
|
fi
|
2008-02-04 19:16:24 -08:00
|
|
|
add_makefiles "
|
2011-11-30 10:37:57 -08:00
|
|
|
memory/mozalloc/Makefile
|
2011-12-27 23:24:02 -08:00
|
|
|
mozglue/Makefile
|
|
|
|
mozglue/build/Makefile
|
2008-02-04 19:16:24 -08:00
|
|
|
"
|
2012-12-07 00:32:24 -08:00
|
|
|
if [ "$MOZ_JEMALLOC3" -a -z "$MOZ_NATIVE_JEMALLOC" ]; then
|
2012-06-07 01:41:59 -07:00
|
|
|
add_makefiles "
|
|
|
|
memory/jemalloc/Makefile
|
|
|
|
"
|
|
|
|
fi
|
2011-11-30 10:37:57 -08:00
|
|
|
if [ "$MOZ_MEMORY" ]; then
|
|
|
|
add_makefiles "
|
2012-12-07 00:32:24 -08:00
|
|
|
memory/Makefile
|
2012-06-07 01:41:58 -07:00
|
|
|
memory/mozjemalloc/Makefile
|
2012-03-31 00:23:19 -07:00
|
|
|
memory/build/Makefile
|
2011-11-30 10:37:57 -08:00
|
|
|
"
|
|
|
|
fi
|
2012-12-07 00:32:24 -08:00
|
|
|
if [ "$MOZ_REPLACE_MALLOC_LINKAGE" = "dummy library" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
memory/replace/dummy/Makefile
|
|
|
|
"
|
|
|
|
fi
|
2011-11-30 10:37:57 -08:00
|
|
|
if [ "$MOZ_WIDGET_TOOLKIT" = "android" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
other-licenses/android/Makefile
|
2011-12-03 13:01:34 -08:00
|
|
|
other-licenses/skia-npapi/Makefile
|
2011-12-12 07:22:25 -08:00
|
|
|
mozglue/android/Makefile
|
2011-11-30 10:37:57 -08:00
|
|
|
"
|
|
|
|
fi
|
2012-01-11 02:10:59 -08:00
|
|
|
if [ "$MOZ_LINKER" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
mozglue/linker/Makefile
|
|
|
|
"
|
|
|
|
fi
|
2011-11-30 10:37:57 -08:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$OS_ARCH" = "WINNT" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
build/win32/Makefile
|
|
|
|
build/win32/crashinjectdll/Makefile
|
|
|
|
"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$OS_ARCH" != "WINNT" -a "$OS_ARCH" != "OS2" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
build/unix/Makefile
|
|
|
|
"
|
2012-04-29 23:03:59 -07:00
|
|
|
if [ "$STDCXX_COMPAT" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
build/unix/stdc++compat/Makefile
|
|
|
|
"
|
|
|
|
fi
|
2011-11-30 10:37:57 -08:00
|
|
|
if [ "$USE_ELF_HACK" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
build/unix/elfhack/Makefile
|
|
|
|
"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2012-03-22 08:19:57 -07:00
|
|
|
if [ "$ENABLE_MARIONETTE" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
testing/marionette/Makefile
|
|
|
|
testing/marionette/components/Makefile
|
|
|
|
"
|
|
|
|
fi
|
|
|
|
|
2011-11-30 10:37:57 -08:00
|
|
|
if [ "$ENABLE_TESTS" ]; then
|
2011-12-03 13:01:34 -08:00
|
|
|
add_makefiles "
|
2012-04-03 10:32:46 -07:00
|
|
|
config/makefiles/test/Makefile
|
2012-04-02 10:06:06 -07:00
|
|
|
config/tests/makefiles/autodeps/Makefile
|
2012-04-03 10:32:46 -07:00
|
|
|
config/tests/src-simple/Makefile
|
2012-07-30 16:12:58 -07:00
|
|
|
mfbt/tests/Makefile
|
2011-12-03 13:01:34 -08:00
|
|
|
"
|
2012-02-10 04:40:30 -08:00
|
|
|
if [ ! "$LIBXUL_SDK" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
mozglue/tests/Makefile
|
|
|
|
"
|
|
|
|
fi
|
2011-11-30 10:37:57 -08:00
|
|
|
if [ "$_MSC_VER" -a "$OS_TEST" != "x86_64" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
build/win32/vmwarerecordinghelper/Makefile
|
|
|
|
"
|
|
|
|
fi
|
|
|
|
if [ "$OS_ARCH" != "WINNT" -a "$OS_ARCH" != "OS2" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
build/unix/test/Makefile
|
|
|
|
"
|
|
|
|
fi
|
|
|
|
if [ "$MOZ_WIDGET_TOOLKIT" = "android" ]; then
|
|
|
|
add_makefiles "
|
2012-02-10 04:40:30 -08:00
|
|
|
build/mobile/robocop/Makefile
|
2011-11-30 10:37:57 -08:00
|
|
|
build/mobile/sutagent/android/Makefile
|
|
|
|
build/mobile/sutagent/android/fencp/Makefile
|
|
|
|
build/mobile/sutagent/android/ffxcp/Makefile
|
|
|
|
build/mobile/sutagent/android/watcher/Makefile
|
|
|
|
"
|
|
|
|
fi
|
2008-02-04 19:16:24 -08:00
|
|
|
fi
|
|
|
|
|
2007-08-30 21:23:04 -07:00
|
|
|
# Application-specific makefiles
|
2011-11-30 10:37:57 -08:00
|
|
|
if [ -f "${srcdir}/${MOZ_BUILD_APP}/makefiles.sh" ]; then
|
2007-08-30 21:23:04 -07:00
|
|
|
. "${srcdir}/${MOZ_BUILD_APP}/makefiles.sh"
|
2007-03-22 10:30:00 -07:00
|
|
|
fi
|
|
|
|
|
2007-08-30 21:23:04 -07:00
|
|
|
# Extension makefiles
|
2007-03-22 10:30:00 -07:00
|
|
|
for extension in $MOZ_EXTENSIONS; do
|
2007-05-23 13:08:44 -07:00
|
|
|
if [ -f "${srcdir}/extensions/${extension}/makefiles.sh" ]; then
|
2007-05-24 10:45:55 -07:00
|
|
|
. "${srcdir}/extensions/${extension}/makefiles.sh"
|
2007-05-23 13:08:44 -07:00
|
|
|
fi
|
2007-03-22 10:30:00 -07:00
|
|
|
done
|
|
|
|
|
2007-08-30 21:23:04 -07:00
|
|
|
# Toolkit makefiles
|
2011-11-30 10:37:57 -08:00
|
|
|
if [ ! "$LIBXUL_SDK" ]; then
|
2007-08-30 21:23:04 -07:00
|
|
|
. "${srcdir}/toolkit/toolkit-makefiles.sh"
|
2007-05-23 13:08:44 -07:00
|
|
|
fi
|
2010-06-21 17:07:13 -07:00
|
|
|
|
|
|
|
# Services makefiles
|
|
|
|
. "${srcdir}/services/makefiles.sh"
|
2011-11-30 10:37:58 -08:00
|
|
|
|
|
|
|
# Turn off exit on error, since it breaks the rest of configure
|
|
|
|
set +o errexit
|