webapprt/mac/Makefile.in
author Myk Melez <myk@mozilla.org>
Mon, 07 May 2012 10:45:53 -0700
changeset 93372 6a2e890ebcab92a78f27ab25b0b28f4226a786b6
parent 91848 ef55c163a23a0fb7dc361791a53b6149d69f3ca2
child 96954 01844720b147314475896425f6c5ae9e6f363053
permissions -rw-r--r--
bug 751375 - structure webapp runtime Makefiles correctly; r=bsmedberg

# 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/.

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

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 =

# mozglue uses mfbt's Assertions.cpp, which provides MOZ_ASSERT, which lots
# of code in libxpcom uses, so we have to do the same.
VPATH += $(topsrcdir)/mfbt
CPPSRCS = Assertions.cpp

LOCAL_INCLUDES += -I$(topsrcdir)/toolkit/xre
LOCAL_INCLUDES += -I$(topsrcdir)/xpcom/base
LOCAL_INCLUDES += -I$(topsrcdir)/xpcom/build
LOCAL_INCLUDES += -I$(DEPTH)/build

DEFINES += -DXPCOM_GLUE
STL_FLAGS=

LIBS = \
  $(XPCOM_STANDALONE_GLUE_LDOPTS) \
  $(NULL)

include $(topsrcdir)/config/rules.mk

GRE_BUILDID := $(shell cat $(DEPTH)/config/buildid)
DEFINES += -DGRE_BUILDID=$(GRE_BUILDID)

webapprt.$(OBJ_SUFFIX): $(DEPTH)/config/buildid