2012-04-17 07:11:53 -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/.
|
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2012-04-17 07:11:53 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
2012-05-07 10:45:53 -07:00
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2012-04-17 07:11:53 -07:00
|
|
|
# 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 =
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
2013-04-12 01:23:10 -07:00
|
|
|
PROGRAMS_DEST = $(DIST)/bin
|
|
|
|
|
2012-04-17 07:11:53 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
GRE_BUILDID := $(shell cat $(DEPTH)/config/buildid)
|
|
|
|
DEFINES += -DGRE_BUILDID=$(GRE_BUILDID)
|
|
|
|
|
|
|
|
webapprt.$(OBJ_SUFFIX): $(DEPTH)/config/buildid
|