Instead of MOZ_TOOLKIT, we now have MOZ_WIDGET_TOOLKIT and MOZ_GFX_TOOLKIT. There is also a new configure flag, --enable-gfx-toolkit which does what its name implies. The configure script should continue to work as before. git-svn-id: svn://10.0.0.236/trunk@38035 18797224-902f-48f8-a5cc-f745e15eee43
90 lines
2.3 KiB
Makefile
90 lines
2.3 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
|
|
|
|
REQUIRES = js pref dbm security ldap img layer xpcom util
|
|
|
|
|
|
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
|
|
CSRCS = 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
|
|
|
|
CSRCS += prefapi.c
|
|
|
|
CPPSRCS += nsPref.cpp
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
#INCLUDES += -I$(srcdir)/unix -Iunix
|
|
|
|
DEFINES += -DB1M
|
|
|
|
GARBAGE += $(DIST)/bin/components/initpref.js \
|
|
$(DIST)/bin/components/all.js \
|
|
$(DIST)/bin/components/mailnews.js \
|
|
$(DIST)/bin/components/editor.js \
|
|
$(DIST)/bin/components/config.js \
|
|
$(DIST)/bin/netscape.cfg \
|
|
$(NULL)
|
|
|
|
ifneq ($(subst /,_,$(shell uname -s)),OS2)
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),beos)
|
|
GARBAGE += $(DIST)/bin/components/beos.js
|
|
else
|
|
GARBAGE += $(DIST)/bin/components/unix.js
|
|
endif
|
|
else
|
|
GARBAGE += $(DIST)/bin/components/winpref.js $(DIST)/bin/components/os2prefs.js
|
|
endif
|
|
|
|
$(LIBRARY): $(OBJS)
|
|
|
|
install::
|
|
$(INSTALL) -m 444 $(srcdir)/init/netscape.cfg $(DIST)/bin
|