2012-05-21 04:12:37 -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/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2007-03-22 10:30:00 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
2012-08-04 11:26:44 -07:00
|
|
|
relativesrcdir = @relativesrcdir@
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2012-10-19 16:21:02 -07:00
|
|
|
FAIL_ON_WARNINGS = 1
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2011-04-15 02:03:17 -07:00
|
|
|
VPATH += $(topsrcdir)/build
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
|
2008-12-04 01:13:14 -08:00
|
|
|
LIBS += $(XPCOM_LIBS)
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
# Needed to resolve __yylex (?)
|
|
|
|
ifeq ($(OS_ARCH)$(OS_RELEASE),FreeBSD2)
|
|
|
|
LIBS += -lpcap
|
|
|
|
endif
|
|
|
|
|
2008-08-11 17:01:47 -07:00
|
|
|
# Make sure we have symbols in case we need to debug these.
|
|
|
|
MOZ_DEBUG_SYMBOLS = 1
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
LOCAL_INCLUDES = \
|
|
|
|
-I$(srcdir)/../ds \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
libs::
|
|
|
|
$(INSTALL) $(srcdir)/test.properties $(DIST)/bin/res
|
2011-04-14 02:23:13 -07:00
|
|
|
ifneq (,$(SIMPLE_PROGRAMS))
|
2010-08-26 14:47:28 -07:00
|
|
|
$(INSTALL) $(SIMPLE_PROGRAMS) $(DEPTH)/_tests/xpcshell/$(relativesrcdir)/unit
|
2011-04-14 02:23:13 -07:00
|
|
|
endif
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
install::
|
|
|
|
$(SYSINSTALL) $(IFLAGS1) $(srcdir)/test.properties $(DESTDIR)$(mozappdir)/res
|
|
|
|
|
2011-05-01 11:59:24 -07:00
|
|
|
ifeq (,$(filter-out WINNT os2-emx, $(HOST_OS_ARCH)))
|
2012-07-25 10:06:12 -07:00
|
|
|
getnativepath = $(call normalizepath,$(1))
|
2008-04-01 06:06:18 -07:00
|
|
|
else
|
|
|
|
getnativepath = $(1)
|
|
|
|
endif
|
|
|
|
|
2012-05-07 15:21:11 -07:00
|
|
|
abs_srcdir = $(call core_abspath,$(srcdir))
|
2008-04-10 09:14:01 -07:00
|
|
|
|
2010-03-10 10:36:45 -08:00
|
|
|
DIST_PATH = $(DIST)/bin/
|
|
|
|
RM_DIST = rm -f
|
|
|
|
regOrderDir="$(call getnativepath,$(abs_srcdir)/regorder)";
|
|
|
|
DOCOPY=
|
2011-05-01 11:59:24 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
check::
|
2008-04-01 06:06:18 -07:00
|
|
|
XPCOM_DEBUG_BREAK=stack-and-abort $(RUN_TEST_PROGRAM) \
|
2010-03-10 10:36:45 -08:00
|
|
|
$(DIST)/bin/TestRegistrationOrder$(BIN_SUFFIX) $(regOrderDir)
|
2010-03-03 07:25:14 -08:00
|
|
|
|
|
|
|
GARBAGE += TestScriptable.h
|