briano%netscape.com 1be96e2703 General cleanup.
git-svn-id: svn://10.0.0.236/trunk@47265 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 02:51:42 +00:00

84 lines
2.0 KiB
Makefile

#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
#
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) \
-lxpcom \
-lmozjs \
-lsecfree \
$(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