b2g/gaia/Makefile.in
author Gina Yeh <gyeh@mozilla.com>
Wed, 31 Oct 2012 11:53:36 +0800
changeset 111999 f6ced9fd4fc54fe680e3eeb37fb796bc160edb21
parent 109353 58f3ccaa02b89bf3436a5af454cd214c1f3707ba
permissions -rw-r--r--
Bug 805708 - Patch 1: Cannot answer a waiting call during a phone call when press the headset, r=qdot

# 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     = @DEPTH@
topsrcdir = @top_srcdir@
srcdir    = @srcdir@
VPATH     = @srcdir@

include $(DEPTH)/config/autoconf.mk

GAIA_PATH := gaia/profile

PROGRAM = $(MOZ_APP_NAME)$(BIN_SUFFIX)

ifeq ($(OS_ARCH),WINNT)
CPPSRCS = run-b2g.cpp
DEFINES += \
  -DB2G_NAME=L\"$(MOZ_APP_NAME)-bin$(BIN_SUFFIX)\" \
  -DGAIA_PATH=L\"$(subst /,\\\\,$(GAIA_PATH))\" \
  $(NULL)
GAIA_MAKE=make
else # Non-windows machines use the same wrapper program
CSRCS = run-b2g.c
DEFINES += \
  -DB2G_NAME=\"$(MOZ_APP_NAME)-bin$(BIN_SUFFIX)\" \
  -DGAIA_PATH=\"$(GAIA_PATH)\" \
  $(NULL)
GAIA_MAKE=$(MAKE)
endif

# This is needed to avoid making run-b2g depend on mozglue
WRAP_LDFLAGS :=

GENERATED_DIRS += $(DIST)/bin/$(GAIA_PATH)

include $(topsrcdir)/config/rules.mk

libs::
	$(GAIA_MAKE) -j1 -C $(GAIADIR) clean
	$(GAIA_MAKE) -j1 -C $(GAIADIR) profile
	(cd $(GAIADIR)/profile && tar $(TAR_CREATE_FLAGS) - .) | (cd $(abspath $(DIST))/bin/$(GAIA_PATH) && tar -xf -)