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