bug 751375 - structure webapp runtime Makefiles correctly; r=bsmedberg
--- a/webapprt/Makefile.in
+++ b/webapprt/Makefile.in
@@ -2,24 +2,27 @@
# 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/.
DEPTH = ..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
+include $(DEPTH)/config/autoconf.mk
+
+DIRS = $(NULL)
+
+# Include config.mk explicitly so we can override FINAL_TARGET.
include $(topsrcdir)/config/config.mk
# config.mk sets FINAL_TARGET to $(DIST)/bin, but we want to copy build products
# into a WebappRT-specific subdirectory, so we redefine it here.
FINAL_TARGET = $(DIST)/bin/webapprt
-DIRS = $(NULL)
-
ifneq (,$(filter WINNT,$(OS_ARCH)))
DIRS += win
else
ifeq ($(OS_ARCH),Darwin)
DIRS += mac
endif # mac
endif # windows
--- a/webapprt/mac/Makefile.in
+++ b/webapprt/mac/Makefile.in
@@ -2,22 +2,22 @@
# 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/.
DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
+include $(DEPTH)/config/autoconf.mk
+
# This switches $(INSTALL) to copy mode, like $(SYSINSTALL), so things that
# shouldn't get 755 perms need $(IFLAGS1) for either way of calling nsinstall.
NSDISTMODE = copy
-include $(topsrcdir)/config/config.mk
-
PROGRAM = webapprt-stub$(BIN_SUFFIX)
CMMSRCS = webapprt.mm
# Don't create a dependency on mozglue, which is impossible (difficult?)
# to dynamically link into our executable, as we copy it to arbitrary locations.
MOZ_GLUE_LDFLAGS =
MOZ_GLUE_PROGRAM_LDFLAGS =