modules/libpref/src/Makefile.in
author Peter Van der Beken <peterv@propagandism.org>
Thu, 06 Dec 2012 11:41:14 +0100
changeset 120775 f23cff8ec6c9ab4cac0c4582967647140855a625
parent 104557 162130598df094e19b044610902abecd403278d3
child 123421 eaeae002559b1910eb84eb0e715dd08bed1588fb
permissions -rw-r--r--
Fix for bug 818219 (Replace HTMLElement quickstubs with new binding methods) - Add a constructor to callbacks to allow conversion between callback types. r=bz.

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

MODULE		= pref
LIBRARY_NAME	= pref
EXPORT_LIBRARY = 1
IS_COMPONENT	= 1
MODULE_NAME	= nsPrefModule
GRE_MODULE	= 1
LIBXUL_LIBRARY = 1

CPPSRCS		= \
			  nsPrefBranch.cpp	\
			  nsPrefsFactory.cpp	\
			  prefapi.cpp \
			  prefread.cpp \
			  Preferences.cpp	\
			 $(NULL)

DEFINES += -DOS_ARCH=$(OS_ARCH) \
           -DMOZ_WIDGET_TOOLKIT=$(MOZ_WIDGET_TOOLKIT) \
           $(NULL)

include $(topsrcdir)/config/config.mk
include $(topsrcdir)/ipc/chromium/chromium-config.mk
include $(topsrcdir)/config/rules.mk

GARBAGE		+= $(addprefix $(DIST)/bin/defaults/pref/, \
			mailnews.js editor.js \
			aix.js unix.js winpref.js os2prefs.js)

GARBAGE		+= greprefs.js

GREPREF_FILES = $(topsrcdir)/netwerk/base/public/security-prefs.js $(srcdir)/init/all.js

# Optimizer bug with GCC 3.2.2 on OS/2
ifeq ($(OS_ARCH), OS2)
nsPrefService.$(OBJ_SUFFIX): nsPrefService.cpp
	$(REPORT_BUILD)
	@$(MAKE_DEPS_AUTO_CXX)
	$(ELOG) $(CCC) $(OUTOPTION)$@ -c $(COMPILE_CXXFLAGS:-O2=-O1) $(_VPATH_SRCS)
endif


greprefs.js: $(GREPREF_FILES)
	$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(PREF_PPFLAGS) $(DEFINES) $(ACDEFINES) $(XULPPFLAGS) $^ > $@

libs:: greprefs.js
	$(INSTALL) $^ $(DIST)/bin/