87 lines
2.1 KiB
Makefile

#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = pref
LIBRARY_NAME = pref
IS_COMPONENT = 1
REQUIRES = js pref security ldap img layer xpcom util
CSRCS = $(OS2CSRCS) prefapi.c
CPPSRCS = nsPref.cpp
PREF_JS_EXPORTS = \
$(srcdir)/initpref.js \
$(srcdir)/init/all.js \
$(srcdir)/init/mailnews.js \
$(srcdir)/init/editor.js \
$(srcdir)/init/config.js \
$(NULL)
ifneq ($(subst /,_,$(shell uname -s)),OS2)
ifeq ($(MOZ_WIDGET_TOOLKIT),beos)
PREF_JS_EXPORTS += $(srcdir)/beos/beos.js
else
PREF_JS_EXPORTS += $(srcdir)/unix/unix.js
endif
else
PREF_JS_EXPORTS += $(srcdir)/win/winpref.js $(srcdir)/os2/os2pref.js
OS2CSRCS = prefldap.c
LIBRARY = xppref32.$(LIB_SUFFIX)
OS2_IMPLIB = 1
DEF_FILE = xpOS2.def
EXTRA_LIBS = \
$(DIST)/lib/js$(MOZ_BITS)$(VERSION_NUMBER).lib \
$(LIBNSPR) \
$(DIST)/lib/libldap.lib \
$(DIST)/lib/liblber.lib \
$(DIST)/lib/libldap.lib \
$(DIST)/lib/libhash.lib \
$(NULL)
endif
EXTRA_DSO_LDOPTS = \
-L$(DIST)/bin \
$(NSPR_LIBS) \
$(XPCOM_LIBS) \
-lmozjs \
$(NULL)
include $(topsrcdir)/config/rules.mk
DEFINES += -DB1M
GARBAGE += $(addprefix $(DIST)/bin/components/, \
initpref.js all.js mailnews.js editor.js config.js beos.js unix.js winpref.js os2prefs.js) \
$(DIST)/bin/netscape.cfg
install::
$(INSTALL) -m 444 $(srcdir)/init/netscape.cfg $(DIST)/bin