1999-02-16 18:29:51 +00:00
|
|
|
#! /bin/sh
|
|
|
|
#
|
2012-04-02 17:06:06 +00: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/.
|
1999-02-16 18:29:51 +00:00
|
|
|
|
2007-08-31 04:23:04 +00:00
|
|
|
# allmakefiles.sh - List of all makefiles.
|
1999-02-17 18:25:39 +00:00
|
|
|
# Appends the list of makefiles to the variable, MAKEFILES.
|
1999-02-16 18:29:51 +00:00
|
|
|
# There is no need to rerun autoconf after adding makefiles.
|
|
|
|
# You only need to run configure.
|
|
|
|
|
2011-11-30 18:37:58 +00:00
|
|
|
# Turn on exit on error
|
|
|
|
set -o errexit
|
|
|
|
|
1999-09-10 18:05:38 +00:00
|
|
|
MAKEFILES=""
|
|
|
|
|
1999-02-17 18:25:39 +00:00
|
|
|
# add_makefiles - Shell function to add makefiles to MAKEFILES
|
1999-02-16 18:29:51 +00:00
|
|
|
add_makefiles() {
|
2007-08-31 04:23:04 +00:00
|
|
|
MAKEFILES="$MAKEFILES $*"
|
1999-02-16 18:29:51 +00:00
|
|
|
}
|
|
|
|
|
2000-05-20 02:45:59 +00:00
|
|
|
if [ "$srcdir" = "" ]; then
|
2007-08-31 04:23:04 +00:00
|
|
|
srcdir=.
|
1999-03-06 20:38:24 +00:00
|
|
|
fi
|
|
|
|
|
2000-05-20 02:45:59 +00:00
|
|
|
# Common makefiles used by everyone
|
|
|
|
add_makefiles "
|
2012-08-04 06:47:28 +00:00
|
|
|
mozilla-config.h
|
2000-05-18 19:37:33 +00:00
|
|
|
Makefile
|
|
|
|
build/Makefile
|
2009-06-27 23:12:56 +00:00
|
|
|
build/pgo/Makefile
|
|
|
|
build/pgo/blueprint/Makefile
|
|
|
|
build/pgo/js-input/Makefile
|
2000-05-18 19:37:33 +00:00
|
|
|
config/Makefile
|
|
|
|
config/autoconf.mk
|
2009-06-27 23:12:56 +00:00
|
|
|
config/nspr/Makefile
|
2002-03-22 19:22:13 +00:00
|
|
|
config/doxygen.cfg
|
2011-02-25 14:05:08 +00:00
|
|
|
config/expandlibs_config.py
|
2012-02-10 12:40:30 +00:00
|
|
|
mfbt/Makefile
|
2007-10-10 23:03:14 +00:00
|
|
|
probes/Makefile
|
2012-12-21 20:43:46 +00:00
|
|
|
python/Makefile
|
1999-03-29 22:51:11 +00:00
|
|
|
extensions/Makefile
|
2000-05-20 02:45:59 +00:00
|
|
|
"
|
|
|
|
|
2012-04-17 14:11:53 +00:00
|
|
|
if [ "$MOZ_WEBAPP_RUNTIME" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
webapprt/Makefile
|
|
|
|
"
|
|
|
|
fi
|
|
|
|
|
2011-11-30 18:37:57 +00:00
|
|
|
if [ ! "$LIBXUL_SDK" ]; then
|
2012-03-23 16:35:09 +00:00
|
|
|
if [ "$STLPORT_SOURCES" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
build/stlport/Makefile
|
|
|
|
build/stlport/stl/config/_android.h
|
|
|
|
"
|
|
|
|
fi
|
2008-02-05 03:16:24 +00:00
|
|
|
add_makefiles "
|
2011-11-30 18:37:57 +00:00
|
|
|
memory/mozalloc/Makefile
|
2011-12-28 07:24:02 +00:00
|
|
|
mozglue/Makefile
|
|
|
|
mozglue/build/Makefile
|
2008-02-05 03:16:24 +00:00
|
|
|
"
|
2012-12-07 08:32:24 +00:00
|
|
|
if [ "$MOZ_JEMALLOC3" -o "$MOZ_REPLACE_MALLOC" ] && [ -z "$MOZ_NATIVE_JEMALLOC" ]; then
|
2012-06-07 08:41:59 +00:00
|
|
|
add_makefiles "
|
|
|
|
memory/jemalloc/Makefile
|
|
|
|
"
|
|
|
|
fi
|
2011-11-30 18:37:57 +00:00
|
|
|
if [ "$MOZ_MEMORY" ]; then
|
|
|
|
add_makefiles "
|
2012-12-07 08:32:24 +00:00
|
|
|
memory/Makefile
|
2012-06-07 08:41:58 +00:00
|
|
|
memory/mozjemalloc/Makefile
|
2012-03-31 07:23:19 +00:00
|
|
|
memory/build/Makefile
|
2011-11-30 18:37:57 +00:00
|
|
|
"
|
|
|
|
fi
|
2012-12-07 08:32:24 +00:00
|
|
|
if [ "$MOZ_REPLACE_MALLOC" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
memory/replace/Makefile
|
|
|
|
"
|
|
|
|
if [ -z "$MOZ_JEMALLOC3" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
memory/replace/jemalloc/Makefile
|
|
|
|
"
|
|
|
|
fi
|
|
|
|
fi
|
2012-12-07 08:32:24 +00:00
|
|
|
if [ "$MOZ_REPLACE_MALLOC_LINKAGE" = "dummy library" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
memory/replace/dummy/Makefile
|
|
|
|
"
|
|
|
|
fi
|
2011-11-30 18:37:57 +00:00
|
|
|
if [ "$MOZ_WIDGET_TOOLKIT" = "android" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
other-licenses/android/Makefile
|
2011-12-03 21:01:34 +00:00
|
|
|
other-licenses/skia-npapi/Makefile
|
2011-12-12 15:22:25 +00:00
|
|
|
mozglue/android/Makefile
|
2011-11-30 18:37:57 +00:00
|
|
|
"
|
|
|
|
fi
|
2012-01-11 10:10:59 +00:00
|
|
|
if [ "$MOZ_LINKER" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
mozglue/linker/Makefile
|
|
|
|
"
|
|
|
|
fi
|
2011-11-30 18:37:57 +00: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-30 06:03:59 +00:00
|
|
|
if [ "$STDCXX_COMPAT" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
build/unix/stdc++compat/Makefile
|
|
|
|
"
|
|
|
|
fi
|
2011-11-30 18:37:57 +00:00
|
|
|
if [ "$USE_ELF_HACK" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
build/unix/elfhack/Makefile
|
|
|
|
"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2012-03-22 15:19:57 +00:00
|
|
|
if [ "$ENABLE_MARIONETTE" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
testing/marionette/Makefile
|
|
|
|
testing/marionette/components/Makefile
|
|
|
|
"
|
|
|
|
fi
|
|
|
|
|
2011-11-30 18:37:57 +00:00
|
|
|
if [ "$ENABLE_TESTS" ]; then
|
2011-12-03 21:01:34 +00:00
|
|
|
add_makefiles "
|
2012-04-03 17:32:46 +00:00
|
|
|
config/makefiles/test/Makefile
|
2012-04-02 17:06:06 +00:00
|
|
|
config/tests/makefiles/autodeps/Makefile
|
2012-04-03 17:32:46 +00:00
|
|
|
config/tests/src-simple/Makefile
|
2012-07-30 23:12:58 +00:00
|
|
|
mfbt/tests/Makefile
|
2011-12-03 21:01:34 +00:00
|
|
|
"
|
2012-02-10 12:40:30 +00:00
|
|
|
if [ ! "$LIBXUL_SDK" ]; then
|
|
|
|
add_makefiles "
|
|
|
|
mozglue/tests/Makefile
|
|
|
|
"
|
|
|
|
fi
|
2011-11-30 18:37:57 +00: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 12:40:30 +00:00
|
|
|
build/mobile/robocop/Makefile
|
2011-11-30 18:37:57 +00: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-05 03:16:24 +00:00
|
|
|
fi
|
|
|
|
|
2007-08-31 04:23:04 +00:00
|
|
|
# Application-specific makefiles
|
2011-11-30 18:37:57 +00:00
|
|
|
if [ -f "${srcdir}/${MOZ_BUILD_APP}/makefiles.sh" ]; then
|
2007-08-31 04:23:04 +00:00
|
|
|
. "${srcdir}/${MOZ_BUILD_APP}/makefiles.sh"
|
2005-12-15 17:50:47 +00:00
|
|
|
fi
|
|
|
|
|
2007-08-31 04:23:04 +00:00
|
|
|
# Extension makefiles
|
2000-05-24 22:54:58 +00:00
|
|
|
for extension in $MOZ_EXTENSIONS; do
|
2007-05-23 20:08:44 +00:00
|
|
|
if [ -f "${srcdir}/extensions/${extension}/makefiles.sh" ]; then
|
2007-05-24 17:45:55 +00:00
|
|
|
. "${srcdir}/extensions/${extension}/makefiles.sh"
|
2007-05-23 20:08:44 +00:00
|
|
|
fi
|
2000-05-20 02:45:59 +00:00
|
|
|
done
|
1999-11-09 23:30:32 +00:00
|
|
|
|
2007-08-31 04:23:04 +00:00
|
|
|
# Toolkit makefiles
|
2011-11-30 18:37:57 +00:00
|
|
|
if [ ! "$LIBXUL_SDK" ]; then
|
2007-08-31 04:23:04 +00:00
|
|
|
. "${srcdir}/toolkit/toolkit-makefiles.sh"
|
2007-05-23 20:08:44 +00:00
|
|
|
fi
|
2010-06-22 00:07:13 +00:00
|
|
|
|
|
|
|
# Services makefiles
|
|
|
|
. "${srcdir}/services/makefiles.sh"
|
2011-11-30 18:37:58 +00:00
|
|
|
|
|
|
|
# Turn off exit on error, since it breaks the rest of configure
|
|
|
|
set +o errexit
|