1998-03-28 02:44:41 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
##########################################################################
|
|
|
|
#
|
|
|
|
# Makefile for the Mozilla X front end.
|
|
|
|
#
|
|
|
|
# There are N dimensions to a full complement of binaries:
|
|
|
|
#
|
|
|
|
# - target architecture
|
1998-05-04 07:03:58 +00:00
|
|
|
# - debug vs optimized
|
|
|
|
# - normal vs "lite"
|
|
|
|
# - normal vs purified
|
|
|
|
# - dynamic vs statically linked
|
1998-03-28 02:44:41 +00:00
|
|
|
#
|
|
|
|
# A directory is needed for each of the first two dimensions (target
|
|
|
|
# and debug), but executables for all of the others will then be built
|
|
|
|
# in the same directory from the same .o files. The files have names
|
|
|
|
# as follows:
|
|
|
|
#
|
1998-05-04 07:03:58 +00:00
|
|
|
# moz-export (Dynamically linked with libs in
|
|
|
|
# ../../dist/<objdir>/bin)
|
|
|
|
# mozilla-export (Statically linked)
|
1998-03-28 02:44:41 +00:00
|
|
|
# mozilla-nis-export (SunOS 4 only)
|
|
|
|
# mozilla-export.pure (SunOS 4 and Solaris only)
|
|
|
|
# ...etc...
|
|
|
|
#
|
|
|
|
# The only difference in the executables is which version of config-*.o
|
|
|
|
# is linked in, and whether or not -lresolv is used.
|
|
|
|
#
|
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
DEPTH = ../..
|
|
|
|
MODULE = xfe
|
|
|
|
|
|
|
|
USE_3PANE = 1
|
|
|
|
|
|
|
|
MICROLINE_LIB = $(DIST)/lib/libXmL.a
|
|
|
|
|
|
|
|
#
|
|
|
|
# XFE2_DIR:
|
|
|
|
#
|
|
|
|
# HPUX_XMU_EXTRA_DIRS: On some HP-UX releases there is no Xmu. So you
|
|
|
|
# you might need to build your own. See ftp://ftp.x.org
|
|
|
|
#
|
|
|
|
# MOTIF_HACK_DIRS: Some bug fixes require Motif source code access.
|
|
|
|
# Such hackery cannot be released because of OSF/Motif
|
|
|
|
# licensing restrictions.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(DEPTH)/config/config.mk
|
|
|
|
|
|
|
|
DIRS = \
|
|
|
|
$(XFE2_DIR) \
|
|
|
|
$(HPUX_XMU_EXTRA_DIRS) \
|
|
|
|
$(MOTIF_HACK_DIRS) \
|
|
|
|
icons \
|
|
|
|
DtWidgets \
|
|
|
|
XfeWidgets \
|
|
|
|
Microline3.0/XmL \
|
|
|
|
$(NULL)
|
|
|
|
|
1998-05-06 17:36:34 +00:00
|
|
|
REQUIRES =\
|
|
|
|
XfeWidgets \
|
|
|
|
XfeBm \
|
1998-09-18 06:12:45 +00:00
|
|
|
XfeToolBar \
|
1998-05-06 17:36:34 +00:00
|
|
|
Microline \
|
1998-03-28 02:44:41 +00:00
|
|
|
addr \
|
|
|
|
applet \
|
1998-06-01 22:10:13 +00:00
|
|
|
xpcom \
|
|
|
|
caps \
|
1998-03-28 02:44:41 +00:00
|
|
|
img \
|
|
|
|
edtplug \
|
|
|
|
jtools \
|
|
|
|
lay \
|
|
|
|
layer \
|
|
|
|
js \
|
|
|
|
libfont \
|
|
|
|
mariner \
|
|
|
|
plds \
|
|
|
|
nspr20 \
|
|
|
|
parse \
|
1998-07-31 20:19:50 +00:00
|
|
|
plugin \
|
|
|
|
plugimpl \
|
1998-03-28 02:44:41 +00:00
|
|
|
hook \
|
|
|
|
pref \
|
|
|
|
rdf \
|
1998-04-08 04:04:58 +00:00
|
|
|
xml \
|
1998-03-28 02:44:41 +00:00
|
|
|
security \
|
|
|
|
softupdt \
|
|
|
|
libreg \
|
|
|
|
style \
|
|
|
|
util \
|
|
|
|
java \
|
1998-07-29 03:47:59 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifdef MOZ_LDAP
|
|
|
|
REQUIRES += \
|
1998-03-28 02:44:41 +00:00
|
|
|
ldap \
|
1998-07-29 03:47:59 +00:00
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
1998-09-04 19:21:43 +00:00
|
|
|
ifdef MOZ_MAIL_NEWS
|
|
|
|
REQUIRES += \
|
|
|
|
msg \
|
|
|
|
$(NULL)
|
|
|
|
else
|
|
|
|
ifdef MOZ_MAIL_COMPOSE
|
|
|
|
REQUIRES += \
|
|
|
|
mailto \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
1998-07-29 03:47:59 +00:00
|
|
|
REQUIRES += \
|
1998-03-28 02:44:41 +00:00
|
|
|
xfeicons \
|
1998-06-22 21:19:46 +00:00
|
|
|
progress \
|
1998-08-04 03:51:01 +00:00
|
|
|
privacy \
|
1998-03-28 02:44:41 +00:00
|
|
|
$(NULL)
|
|
|
|
|
1998-07-09 04:58:02 +00:00
|
|
|
ifdef MOZ_FULLCIRCLE
|
1998-07-31 20:19:50 +00:00
|
|
|
REQUIRES += fullsoft
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef OJI
|
|
|
|
REQUIRES += oji \
|
|
|
|
ojiimpl
|
1998-07-09 04:58:02 +00:00
|
|
|
endif
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
CSRCS = \
|
|
|
|
pref_helpers.c \
|
|
|
|
colors.c \
|
|
|
|
colorpicker.c \
|
|
|
|
altmail.c \
|
|
|
|
dragdrop.c \
|
|
|
|
e_kit.c \
|
|
|
|
fonts.c \
|
|
|
|
forms.c \
|
|
|
|
locale.c \
|
|
|
|
menu.c \
|
|
|
|
new_manage.c \
|
|
|
|
outline.c \
|
|
|
|
passwd.c \
|
|
|
|
scroller.c \
|
|
|
|
strids.c \
|
|
|
|
strings.c \
|
|
|
|
visual.c \
|
|
|
|
MozillaWm.c \
|
|
|
|
commands.c \
|
|
|
|
dialogs.c \
|
|
|
|
icons.c \
|
|
|
|
images.c \
|
|
|
|
lay.c \
|
|
|
|
mozilla.c \
|
|
|
|
prefs.c \
|
|
|
|
prefdialogs.c \
|
|
|
|
remote-s.c \
|
|
|
|
scroll.c \
|
|
|
|
selection.c \
|
|
|
|
xfe.c \
|
|
|
|
editor.c \
|
|
|
|
editordialogs.c \
|
1998-06-22 21:19:46 +00:00
|
|
|
addrbk.c \
|
1998-03-28 02:44:41 +00:00
|
|
|
$(NULL)
|
|
|
|
|
1998-06-22 21:19:46 +00:00
|
|
|
ifndef MOZ_MAIL_NEWS
|
|
|
|
CSRCS += lite_stubs.c \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
ifdef MOZ_MAIL_NEWS
|
|
|
|
CSRCS += \
|
|
|
|
mailattach.c \
|
|
|
|
mailcompose.c \
|
|
|
|
movemail.c \
|
|
|
|
$(NULL)
|
1998-09-04 19:21:43 +00:00
|
|
|
else
|
|
|
|
ifdef MOZ_MAIL_COMPOSE
|
|
|
|
CSRCS += \
|
|
|
|
mailattach.c \
|
|
|
|
mailcompose.c \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
1998-03-28 02:44:41 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef NO_UNIX_ASYNC_DNS
|
|
|
|
CSRCS += xfe-dns.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
XFE_PROGNAME := mozilla
|
|
|
|
DSO_PROGNAME := moz
|
|
|
|
|
|
|
|
GUESS_CONFIG := $(shell $(DEPTH)/config/config.guess | sed 's/i[23456]86/x86/')
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
|
|
|
|
CCLD = $(CCC)
|
|
|
|
LDFLAGS = $(CFLAGS)
|
|
|
|
NOMD_LDFLAGS = $(NOMD_CFLAGS)
|
1998-07-31 20:19:50 +00:00
|
|
|
BASIC_DSOS = -L$(DIST)/bin
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
ifdef MOZILLA_GPROF
|
|
|
|
CSRCS += gmon.c
|
|
|
|
LDFLAGS = $(OPTIMIZER)
|
|
|
|
$(OBJDIR)/gmon.o: gmon.c gmon.h
|
|
|
|
$(CC) -O -c -o $@ $<
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef SUB_UI
|
|
|
|
CSRCS += subui.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef NO_LAYERS
|
|
|
|
CSRCS += region.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH),HP-UX)
|
|
|
|
#
|
|
|
|
# HP requires C++ programs to have main() in a C++ file.
|
|
|
|
#
|
|
|
|
CPPSRCS = cplusplusmain.cc
|
|
|
|
CFLAGS += -DCPLUSPLUS_LINKAGE
|
|
|
|
endif
|
|
|
|
|
|
|
|
OBJS = $(CSRCS:.c=.o) $(CPPSRCS:.cc=.o)
|
|
|
|
|
|
|
|
GARBAGE += e_kit_resources.h cxxlink-filter
|
|
|
|
|
|
|
|
ICONS_LIB = $(DIST)/lib/lib$(LITE_PREFIX)xfeicons.a
|
|
|
|
|
1998-09-18 06:12:45 +00:00
|
|
|
DTWIDGETS_LIB = $(DIST)/lib/libDtWidgets.a
|
|
|
|
XFE_WIDGETS_LIB = $(DIST)/lib/libXfeWidgets.a
|
|
|
|
XFE_WIDGETS_BM_LIB = $(DIST)/lib/libXfeBm.a
|
|
|
|
XFE_WIDGETS_COMBO_BOX_LIB = $(DIST)/lib/libXfeComboBox.a
|
|
|
|
XFE_WIDGETS_CAPTION_LIB = $(DIST)/lib/libXfeCaption.a
|
|
|
|
XFE_WIDGETS_TOOL_BAR_LIB = $(DIST)/lib/libXfeToolBar.a
|
1998-03-28 02:44:41 +00:00
|
|
|
|
1998-07-31 22:25:23 +00:00
|
|
|
ifneq ($(OS_ARCH),IRIX)
|
1998-08-06 19:49:15 +00:00
|
|
|
ifneq ($(OS_ARCH),FreeBSD)
|
1998-07-31 20:19:50 +00:00
|
|
|
DYNAMIC_SYMBOLS_F = -rdynamic # default
|
1998-07-31 21:34:15 +00:00
|
|
|
endif
|
1998-08-06 19:48:00 +00:00
|
|
|
endif
|
1998-07-31 20:19:50 +00:00
|
|
|
ifeq ($(OS_ARCH),SunOS)
|
|
|
|
ifdef NS_USE_NATIVE
|
|
|
|
DYNAMIC_SYMBOLS_F = -Bdynamic
|
|
|
|
else
|
|
|
|
DYNAMIC_SYMBOLS_F = # nothing for gcc
|
|
|
|
endif
|
|
|
|
endif
|
1998-08-11 00:18:07 +00:00
|
|
|
ifeq ($(OS_ARCH),OSF1)
|
|
|
|
DYNAMIC_SYMBOLS_F =
|
|
|
|
endif
|
1998-07-31 20:19:50 +00:00
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
ifeq ($(OS_ARCH),AIX)
|
|
|
|
NSPR_LIB =
|
|
|
|
else
|
1998-07-31 20:19:50 +00:00
|
|
|
# XXX To a DSO...
|
1998-09-04 19:21:43 +00:00
|
|
|
ifdef FULL_STATIC_BUILD
|
|
|
|
NSPR_LIB = $(DIST)/lib/libplds21.a $(DIST)/lib/libplc21.a $(DIST)/lib/libmsgc21.a $(DIST)/lib/libnspr21.a
|
|
|
|
else
|
1998-07-31 20:19:50 +00:00
|
|
|
BASIC_DSOS += -lplds21 -lplc21 -lmsgc21 -lnspr21
|
1998-03-28 02:44:41 +00:00
|
|
|
endif
|
1998-09-04 19:21:43 +00:00
|
|
|
endif
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
ifdef DBMALLOC
|
|
|
|
NSPR_LIB += $(DIST)/lib/libdbmalloc.a
|
|
|
|
endif
|
|
|
|
|
|
|
|
XFE2_DIR = src
|
|
|
|
XFE2_LIB = $(DIST)/lib/lib$(LITE_PREFIX)xfe2.a
|
|
|
|
|
|
|
|
ifndef DISABLE_MARINER
|
|
|
|
CFLAGS += -DENABLE_MARINER
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# We need libnet.a in there twice because libmsg and libnet have circular
|
|
|
|
# dependencies on functions.
|
|
|
|
#
|
|
|
|
BASIC_LIBS = \
|
|
|
|
$(XFE2_LIB) \
|
|
|
|
$(MICROLINE_LIB) \
|
|
|
|
$(ICONS_LIB) \
|
|
|
|
$(DTWIDGETS_LIB) \
|
1998-05-06 17:36:34 +00:00
|
|
|
$(XFE_WIDGETS_BM_LIB) \
|
1998-09-18 06:12:45 +00:00
|
|
|
$(XFE_WIDGETS_TOOL_BAR_LIB) \
|
1998-03-28 02:44:41 +00:00
|
|
|
$(XFE_WIDGETS_LIB) \
|
|
|
|
$(DIST)/lib/libxlate.a \
|
1998-06-02 01:44:27 +00:00
|
|
|
$(DIST)/lib/libmimetype.a \
|
1998-05-11 22:07:07 +00:00
|
|
|
$(DIST)/lib/libnetcache.a \
|
|
|
|
$(DIST)/lib/libnetcnvts.a \
|
|
|
|
$(DIST)/lib/libnetwork.a \
|
1998-06-06 00:54:45 +00:00
|
|
|
$(DIST)/lib/libnetutil.a \
|
1998-05-11 22:07:07 +00:00
|
|
|
$(DIST)/lib/libnetcnvts.a \
|
|
|
|
$(DIST)/lib/libcnetinit.a \
|
|
|
|
$(DIST)/lib/libabouturl.a \
|
|
|
|
$(DIST)/lib/libdataurl.a \
|
|
|
|
$(DIST)/lib/libfileurl.a \
|
|
|
|
$(DIST)/lib/libftpurl.a \
|
|
|
|
$(DIST)/lib/libgophurl.a \
|
|
|
|
$(DIST)/lib/libhttpurl.a \
|
|
|
|
$(DIST)/lib/libjsurl.a \
|
|
|
|
$(DIST)/lib/libmarimurl.a \
|
|
|
|
$(DIST)/lib/libremoturl.a \
|
1998-03-28 02:44:41 +00:00
|
|
|
$(DIST)/lib/lib$(LITE_PREFIX)rdf.a \
|
1998-09-13 02:02:51 +00:00
|
|
|
$(DIST)/lib/libnetwork.a \
|
1998-04-08 04:04:58 +00:00
|
|
|
$(DIST)/lib/lib$(LITE_PREFIX)xml.a \
|
1998-03-28 02:44:41 +00:00
|
|
|
$(DIST)/lib/lib$(LITE_PREFIX)lay.a \
|
|
|
|
$(DIST)/lib/libpng.a \
|
|
|
|
$(DIST)/lib/libmariner.a \
|
|
|
|
$(DIST)/lib/libimg.a \
|
1998-08-04 03:51:01 +00:00
|
|
|
$(DIST)/lib/libprivacy.a \
|
1998-03-28 02:44:41 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifdef MOZ_LOC_INDEP
|
|
|
|
BASIC_LIBS += $(DIST)/lib/libli.a
|
|
|
|
endif
|
|
|
|
|
1998-07-31 20:19:50 +00:00
|
|
|
ifdef JAVA_OR_NSJVM
|
1998-06-03 00:37:20 +00:00
|
|
|
JAVA_JMC = $(DIST)/lib/libjmc.a # XXX To be removed...
|
1998-03-28 02:44:41 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
BASIC_LIBS += \
|
|
|
|
$(DIST)/lib/libpng.a \
|
|
|
|
$(JAVA_JMC) \
|
|
|
|
$(DIST)/lib/libjpeg.a \
|
|
|
|
$(DIST)/lib/libhook.a \
|
|
|
|
$(DIST)/lib/libparse.a \
|
|
|
|
$(DIST)/lib/lib$(LITE_PREFIX)pref.a \
|
|
|
|
$(DIST)/lib/lib$(LITE_PREFIX)i18n.a \
|
|
|
|
$(DIST)/lib/libpics.a \
|
|
|
|
$(DIST)/lib/libpwcac.a \
|
|
|
|
$(DIST)/lib/libreg.a \
|
|
|
|
$(NULL)
|
|
|
|
|
1998-05-11 22:07:07 +00:00
|
|
|
BASIC_LIBS_2 = \
|
|
|
|
$(DIST)/lib/lib$(LITE_PREFIX)xp.a \
|
|
|
|
$(DIST)/lib/libdbm.a \
|
1998-07-31 20:19:50 +00:00
|
|
|
$(DIST)/lib/libcaps.a \
|
1998-08-08 06:37:47 +00:00
|
|
|
$(DIST)/lib/libxpcom.a \
|
1998-07-31 20:19:50 +00:00
|
|
|
$(DIST)/lib/lib$(LITE_PREFIX)rdf.a \
|
1998-05-11 22:07:07 +00:00
|
|
|
$(NULL)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
1998-08-09 03:53:14 +00:00
|
|
|
|
|
|
|
# jwz: link in libmime all the time.
|
|
|
|
# but it needs to be before libnetutil, and I don't know how to do that,
|
|
|
|
# so just link against libnetutil twice.
|
|
|
|
|
|
|
|
BASIC_LIBS += \
|
|
|
|
$(DIST)/lib/libmime.a \
|
|
|
|
$(DIST)/lib/libnetutil.a \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
ifdef MOZ_MAIL_NEWS
|
1998-06-30 22:06:09 +00:00
|
|
|
ifdef MOZ_SECURITY
|
1998-03-28 02:44:41 +00:00
|
|
|
BASIC_LIBS += \
|
1998-06-22 21:19:46 +00:00
|
|
|
$(DIST)/lib/libns_mime.a \
|
1998-03-28 02:44:41 +00:00
|
|
|
$(NULL)
|
1998-06-30 22:06:09 +00:00
|
|
|
endif
|
1998-06-25 05:50:45 +00:00
|
|
|
BASIC_LIBS_2 += \
|
|
|
|
$(DIST)/lib/libldap.a \
|
|
|
|
$(NULL)
|
1998-03-28 02:44:41 +00:00
|
|
|
endif
|
|
|
|
|
1998-09-04 19:21:43 +00:00
|
|
|
# Do we need libns_mime.a here if MOZ_MAIL_COMPOSE and MOZ_SECURITY?
|
|
|
|
#ifdef MOZ_MAIL_COMPOSE
|
|
|
|
#ifdef MOZ_SECURITY
|
|
|
|
#BASIC_LIBS += \
|
|
|
|
# $(DIST)/lib/libns_mime.a \
|
|
|
|
# $(NULL)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
BASIC_LIBS += \
|
|
|
|
$(DIST)/lib/libmisc.a \
|
1998-06-22 21:19:46 +00:00
|
|
|
$(DIST)/lib/libprgrss.a \
|
1998-03-28 02:44:41 +00:00
|
|
|
$(NULL)
|
|
|
|
|
1998-07-07 19:35:52 +00:00
|
|
|
ifdef MOZ_LDAP
|
1998-07-07 23:21:40 +00:00
|
|
|
BASIC_LIBS += \
|
|
|
|
$(DIST)/lib/libldap.a \
|
|
|
|
$(DIST)/lib/liblber.a \
|
|
|
|
$(NULL)
|
1998-07-07 19:35:52 +00:00
|
|
|
endif
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
ifdef MOZ_MAIL_NEWS
|
|
|
|
BASIC_LIBS += \
|
1998-06-22 21:19:46 +00:00
|
|
|
$(DIST)/lib/libmozmsg.a \
|
1998-07-08 16:54:24 +00:00
|
|
|
$(NULL)
|
1998-07-07 18:28:11 +00:00
|
|
|
ifdef MOZ_SECURITY
|
1998-07-08 16:54:24 +00:00
|
|
|
BASIC_LIBS += $(DIST)/lib/libmsg.a \
|
|
|
|
$(NULL)
|
1998-07-07 18:28:11 +00:00
|
|
|
endif
|
1998-08-09 03:53:14 +00:00
|
|
|
BASIC_LIBS += $(DIST)/lib/libaddr.a \
|
1998-06-25 05:50:45 +00:00
|
|
|
$(DIST)/lib/libneo.a \
|
|
|
|
$(DIST)/lib/libaddr.a \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
1998-09-04 19:21:43 +00:00
|
|
|
ifdef MOZ_MAIL_COMPOSE
|
|
|
|
BASIC_LIBS += $(DIST)/lib/libmailto.a \
|
|
|
|
$(DIST)/lib/libmime.a \
|
|
|
|
$(DIST)/lib/libsmtpurl.a \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
1998-06-25 05:50:45 +00:00
|
|
|
ifdef MOZ_MAIL_NEWS
|
|
|
|
BASIC_LIBS += $(DIST)/lib/libnntpurl.a \
|
|
|
|
$(DIST)/lib/libsmtpurl.a \
|
|
|
|
$(DIST)/lib/libimap4url.a \
|
|
|
|
$(DIST)/lib/libpop3url.a \
|
|
|
|
$(DIST)/lib/libmailbxurl.a \
|
|
|
|
$(DIST)/lib/libcrtldurl.a \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_MAIL_NEWS
|
|
|
|
ifdef MOZ_LDAP
|
|
|
|
BASIC_LIBS += $(DIST)/lib/libldapurl.a \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_CALENDAR
|
|
|
|
BASIC_LIBS += \
|
1998-06-22 21:19:46 +00:00
|
|
|
$(DIST)/lib/libjulian.a \
|
|
|
|
$(DIST)/lib/libnscnv30.a \
|
|
|
|
$(DIST)/lib/libnsuni30.a \
|
|
|
|
$(DIST)/lib/libnsfmt30.a \
|
1998-03-28 02:44:41 +00:00
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
BASIC_LIBS += \
|
|
|
|
$(DIST)/lib/lib$(LITE_PREFIX)plug.a \
|
|
|
|
$(DIST)/lib/libutil.a \
|
|
|
|
$(DIST)/lib/libfont.a \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifndef NO_LAYERS
|
|
|
|
BASIC_LIBS += $(DIST)/lib/liblayer.a
|
|
|
|
endif
|
|
|
|
|
1998-07-31 20:19:50 +00:00
|
|
|
########################################################################
|
|
|
|
# Java
|
|
|
|
#
|
1998-06-05 19:34:23 +00:00
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
ifdef MOZ_JAVA
|
1998-07-31 20:19:50 +00:00
|
|
|
#
|
1998-06-03 00:37:20 +00:00
|
|
|
# Monolithic Java
|
1998-07-31 20:19:50 +00:00
|
|
|
#
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
BASIC_LIBS += \
|
|
|
|
$(DIST)/lib/lib$(LITE_PREFIX)applet.a \
|
|
|
|
$(DIST)/lib/libjrt.a \
|
|
|
|
$(DIST)/lib/libjmd.a \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifdef EDITOR
|
|
|
|
BASIC_LIBS += $(DIST)/lib/libedtplug.a
|
|
|
|
endif
|
|
|
|
|
|
|
|
BASIC_LIBS += \
|
|
|
|
$(DIST)/lib/libnsn.a \
|
|
|
|
$(DIST)/lib/libnsc.a \
|
|
|
|
$(DIST)/lib/libjpw.a \
|
|
|
|
$(DIST)/lib/libzpw.a \
|
|
|
|
$(DIST)/lib/libiawt.a \
|
|
|
|
$(DIST)/lib/libmmedia.a \
|
|
|
|
$(DIST)/lib/libsoftupdate.a \
|
1998-06-10 00:34:04 +00:00
|
|
|
$(DIST)/lib/libprgrss.a \
|
1998-03-28 02:44:41 +00:00
|
|
|
$(DIST)/lib/libcon.a \
|
|
|
|
$(DIST)/lib/libjbn.a \
|
|
|
|
$(NULL)
|
|
|
|
|
1998-09-08 21:06:54 +00:00
|
|
|
ifdef MOZ_SMARTUPDATE
|
|
|
|
BASIC_LIBS += $(DIST)/lib/libsoftupdate.a \
|
1998-09-11 18:59:16 +00:00
|
|
|
$(DIST)/lib/libprgrss.a \
|
1998-09-08 21:06:54 +00:00
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
1998-06-22 21:19:46 +00:00
|
|
|
ifdef MOZ_SECURITY
|
1998-03-28 02:44:41 +00:00
|
|
|
BASIC_LIBS += $(DIST)/lib/libjsl.a
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_MAIL_NEWS
|
|
|
|
BASIC_LIBS += $(DIST)/lib/libjsl.a
|
|
|
|
endif
|
|
|
|
|
|
|
|
BASIC_LIBS += $(DIST)/lib/libjrt.a
|
|
|
|
|
1998-07-31 20:19:50 +00:00
|
|
|
else # !MOZ_JAVA
|
1998-03-28 02:44:41 +00:00
|
|
|
|
1998-07-31 20:19:50 +00:00
|
|
|
#
|
1998-06-03 00:37:20 +00:00
|
|
|
# OJI
|
1998-07-31 20:19:50 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
ifdef MOZ_OJI
|
|
|
|
|
1998-06-03 00:37:20 +00:00
|
|
|
BASIC_LIBS += $(DIST)/lib/liboji.a
|
|
|
|
|
1998-07-31 20:19:50 +00:00
|
|
|
ifdef NSJVM
|
|
|
|
|
1998-06-03 00:37:20 +00:00
|
|
|
ifdef EDITOR
|
|
|
|
BASIC_LIBS += $(DIST)/lib/libedtplug.a
|
|
|
|
endif
|
1998-07-31 20:19:50 +00:00
|
|
|
else # !NSJVM
|
|
|
|
BASIC_LIBS += \
|
|
|
|
$(DIST)/lib/libstubsj.a \
|
|
|
|
$(DIST)/lib/libstubnj.a \
|
|
|
|
$(NULL)
|
|
|
|
endif # !NSJVM
|
1998-06-03 00:37:20 +00:00
|
|
|
|
1998-07-31 20:19:50 +00:00
|
|
|
BASIC_LIBS += $(DIST)/lib/libprgrss.a \
|
1998-06-17 21:12:27 +00:00
|
|
|
$(NULL)
|
1998-06-03 00:37:20 +00:00
|
|
|
|
1998-07-31 20:19:50 +00:00
|
|
|
else # !MOZ_OJI
|
1998-06-03 00:37:20 +00:00
|
|
|
# No Monolithic Java, no OJI, just stubs.
|
1998-07-31 20:19:50 +00:00
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
BASIC_LIBS += \
|
|
|
|
$(DIST)/lib/libstubsj.a \
|
|
|
|
$(DIST)/lib/libstubnj.a \
|
|
|
|
$(NULL)
|
|
|
|
|
1998-07-31 20:19:50 +00:00
|
|
|
endif # !MOZ_OJI
|
|
|
|
endif # !MOZ_JAVA
|
1998-03-28 02:44:41 +00:00
|
|
|
|
1998-07-31 20:19:50 +00:00
|
|
|
# XXX To a DSO...
|
1998-09-04 19:21:43 +00:00
|
|
|
ifdef FULL_STATIC_BUILD
|
|
|
|
BASIC_LIBS += $(DIST)/lib/libzlib.a
|
|
|
|
else
|
1998-07-31 20:19:50 +00:00
|
|
|
BASIC_DSOS += -lzlib
|
1998-09-04 19:21:43 +00:00
|
|
|
endif
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
ifndef NO_MOCHA
|
1998-07-31 20:19:50 +00:00
|
|
|
# XXX To a DSO...
|
1998-09-04 19:21:43 +00:00
|
|
|
ifndef FULL_STATIC_BUILD
|
|
|
|
BASIC_LIBS += $(DIST)/lib/libjs.a $(DIST)/lib/libjsj.a
|
|
|
|
else
|
1998-07-31 20:19:50 +00:00
|
|
|
BASIC_DSOS += -ljs -ljsj
|
1998-09-04 19:21:43 +00:00
|
|
|
endif
|
1998-07-31 20:19:50 +00:00
|
|
|
BASIC_LIBS += $(DIST)/lib/libmocha.a
|
1998-08-27 00:14:34 +00:00
|
|
|
ifdef DOM
|
|
|
|
# the DOM code calls back into layout.
|
|
|
|
BASIC_LIBS += $(DIST)/lib/liblay.a
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef DOM
|
|
|
|
BASIC_LIBS += $(DIST)/lib/libdom.a
|
1998-03-28 02:44:41 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Post-Java libs
|
|
|
|
BASIC_LIBS += $(DIST)/lib/libstyle.a
|
|
|
|
|
1998-06-22 21:19:46 +00:00
|
|
|
ifdef MOZ_SECURITY
|
1998-03-28 02:44:41 +00:00
|
|
|
BASIC_LIBS += $(DIST)/lib/libjar.a
|
|
|
|
else
|
1998-07-31 20:19:50 +00:00
|
|
|
EXPORT_LIB = $(DIST)/lib/libhtmldlgs.a $(DIST)/lib/libsecfree.a
|
1998-03-28 02:44:41 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
LOCALES = $(LOCALE_MAP) $(MAIL_IM_HACK) $(NEWS_IM_HACK)
|
|
|
|
|
|
|
|
ALL_EXPORT_LIBS = $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) $(NSPR_LIB)
|
|
|
|
|
|
|
|
ALL_EXPORT_DSOS = $(ALL_EXPORT_LIBS:$(DIST)/lib/lib%.a=-l%)
|
|
|
|
PLUGIN_DSO = $(DIST)/bin/libnullplugin.so
|
|
|
|
#
|
|
|
|
# WEBFONT dso is not in the OFFICAL build yet. It needs to be hooked in
|
|
|
|
# from the private tree
|
|
|
|
#
|
|
|
|
WEBFONT_DSO =
|
|
|
|
|
|
|
|
ifdef BUILD_UNIX_PLUGINS
|
|
|
|
TEST_PLUGIN = $(DIST)/bin/libtextplugin.so
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MKSHLIB
|
|
|
|
ifndef NO_NETSCAPE_SHARED
|
|
|
|
ifndef NO_BUILD_EXPORT
|
|
|
|
TARGETS += $(OBJDIR)/$(DSO_PROGNAME)-export
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef NO_NETSCAPE_STATIC
|
|
|
|
ifndef NO_BUILD_EXPORT
|
|
|
|
TARGETS += $(OBJDIR)/$(XFE_PROGNAME)-export
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
X_OBJS = $(OBJDIR)/$(LITE_PREFIX)config-YYY.o \
|
|
|
|
$(OBJDIR)/license.o \
|
|
|
|
$(OBJDIR)/resources-YYY.o
|
|
|
|
|
|
|
|
EXPORT_OBJS = $(subst YYY,export,$(X_OBJS))
|
|
|
|
NIS_EXPORT_OBJS = $(subst YYY,nis-export,$(X_OBJS))
|
|
|
|
|
|
|
|
# If the version number changes, all these need to be rebuilt.
|
|
|
|
# (config-* doesn't need to be in here, since that already has a rule.)
|
|
|
|
VERSION_OBJS = $(OBJDIR)/license.o \
|
|
|
|
$(OBJDIR)/resources-export.o \
|
|
|
|
$(OBJDIR)/resources-nis-export.o
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
|
|
|
|
-include $(XFEPRIVDIR)Netscape.mk
|
|
|
|
include $(DEPTH)/config/rules.mk
|
|
|
|
|
|
|
|
NS_RULES_MK = 1
|
|
|
|
-include $(XFEPRIVDIR)Netscape.mk
|
|
|
|
|
|
|
|
DEFINES += -DNEW_DECODERS
|
|
|
|
|
1998-07-27 11:19:28 +00:00
|
|
|
ifdef XFE_PREF_ADVANCED_PASSIVE_FTP
|
|
|
|
DEFINES += -DXFE_PREF_ADVANCED_PASSIVE_FTP
|
|
|
|
endif
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
ifdef USE_3PANE
|
|
|
|
DEFINES += -DUSE_3PANE
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef USE_ABCOM
|
|
|
|
DEFINES += -DUSE_ABCOM
|
|
|
|
endif
|
|
|
|
|
1998-07-18 03:34:26 +00:00
|
|
|
ifdef MOZILLA_XFE_USE_WINNING_FILE_SELECTION
|
|
|
|
DEFINES += -DUSE_WINNING_FILE_SELECTION
|
|
|
|
endif
|
|
|
|
|
1998-06-22 21:19:46 +00:00
|
|
|
INCLUDES += -Isrc -I. -I$(DEPTH)/dist/public/nls -I$(DEPTH)/dist/public/security \
|
1998-09-04 19:21:43 +00:00
|
|
|
-I$(DEPTH)/dist/public/ldap \
|
1998-08-19 20:42:14 +00:00
|
|
|
-I$(DEPTH)/modules/libimg/public \
|
|
|
|
-I$(DEPTH)/l10n/us
|
1998-03-28 02:44:41 +00:00
|
|
|
|
1998-09-04 19:21:43 +00:00
|
|
|
ifdef MOZ_MAIL_NEWS
|
|
|
|
INCLUDES += -Isrc -I. -I$(DEPTH)/lib/libmsg
|
|
|
|
endif
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
#
|
|
|
|
# Set defaults for all platforms. Each OS_ARCH will override this if
|
|
|
|
# necessary.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Developers won't need libTrueDoc.so. No point having a dependency
|
|
|
|
# on this when only official builds (release builds) need this.
|
|
|
|
#
|
|
|
|
ifndef BUILD_OFFICIAL
|
|
|
|
NO_WEBFONTS = 1
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Only SunOS4 needs two versions NIS and DNS.
|
|
|
|
NIS_SRC =
|
|
|
|
NIS_OBJS =
|
|
|
|
NIS_LIB =
|
|
|
|
DNS_LIB =
|
|
|
|
|
|
|
|
# Only SunOS4 needs separate YP versions.
|
|
|
|
NEED_YP_VERSION = 0
|
|
|
|
|
|
|
|
# Only BSDI, Linux, and SunOS4 need the nls directory.
|
|
|
|
NEED_NLS = 0
|
|
|
|
|
|
|
|
# Only SunOS5 (Solaris) has MCS.
|
|
|
|
MCS_CMD = true
|
|
|
|
|
|
|
|
# Only IRIX 5.x uses this.
|
|
|
|
EXTRA_POST_LINK_CMD = echo
|
|
|
|
|
1998-08-05 15:17:43 +00:00
|
|
|
#
|
|
|
|
# The only difference between EXPORT_LDFLAGS and
|
|
|
|
# EXPORT_DYN_MOTIF_LDFLAGS is that OTHER_LIBS is
|
|
|
|
# replaced by OTHER_DYN_MOTIF_LIBS.
|
|
|
|
#
|
|
|
|
# OTHER_DYN_MOTIF_LIBS will use something like
|
|
|
|
# '-L/foo/bar -lXm' instead of '/foo/bar/libXm.a'
|
|
|
|
#
|
|
|
|
EXPORT_LDFLAGS =\
|
|
|
|
$(BASIC_LIBS) \
|
|
|
|
$(EXPORT_LIB) \
|
|
|
|
$(BASIC_LIBS_2) \
|
|
|
|
$(BASIC_DSOS) \
|
1998-08-11 00:18:07 +00:00
|
|
|
$(NSPR_LIB) \
|
|
|
|
$(OTHER_LIBS)
|
1998-08-05 15:17:43 +00:00
|
|
|
|
|
|
|
EXPORT_DYN_MOTIF_LDFLAGS =\
|
|
|
|
$(BASIC_LIBS) \
|
|
|
|
$(EXPORT_LIB) \
|
|
|
|
$(BASIC_LIBS_2) \
|
|
|
|
$(BASIC_DSOS) \
|
1998-08-11 00:18:07 +00:00
|
|
|
$(NSPR_LIB) \
|
|
|
|
$(OTHER_DYN_MOTIF_LIBS)
|
1998-08-05 15:17:43 +00:00
|
|
|
|
|
|
|
EXPORT_DEPLIBS =\
|
|
|
|
$(BASIC_LIBS) \
|
|
|
|
$(EXPORT_LIB) \
|
|
|
|
$(BASIC_LIBS_2) \
|
|
|
|
$(NSPR_LIB)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
DSO_EX_LIBS = $(EXPORT_LDFLAGS:$(DIST)/lib/lib%.a=-l%)
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
#
|
|
|
|
# Adjust build based on OS_ARCH.
|
|
|
|
#
|
|
|
|
|
|
|
|
########################################
|
|
|
|
# IBM Machines
|
|
|
|
ifeq ($(OS_ARCH),AIX)
|
|
|
|
CCLD = svxlC -+
|
|
|
|
#LDFLAGS = -bGhooksyslibs -bGlibpathexec -bGnoproc
|
1998-06-22 21:19:46 +00:00
|
|
|
#LDFLAGS = -bGnoproc
|
|
|
|
#
|
|
|
|
# ??? need to double check
|
|
|
|
#
|
|
|
|
LDFLAGS = -bE:aix_exports -bGhooksyslibs -bGlibpathexec -bGnoproc -bmaxdata:20000000
|
1998-03-28 02:44:41 +00:00
|
|
|
OTHER_LIBS = $(MOTIFLIB) -lXt -lXmu -lX11 $(OS_LIBS)
|
|
|
|
US_LDFLAGS += $(AIX_NSPR_LINK)
|
|
|
|
EXPORT_LDFLAGS += $(AIX_NSPR_LINK)
|
|
|
|
FRANCE_LDFLAGS += $(AIX_NSPR_LINK)
|
|
|
|
EXTRA_REL_FILES += $(AIX_NSPR)
|
|
|
|
|
|
|
|
ifndef NO_WEBFONTS
|
|
|
|
EXTRA_REL_FILES += $(WEBFONT_DSO)
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
########################################
|
|
|
|
# FreeBSD
|
|
|
|
ifeq ($(OS_ARCH),FreeBSD)
|
|
|
|
OTHER_LIBS = /usr/X11R6/lib/libXm.a -L/usr/X11R6/lib -lXt -lXmu -lXext -lX11 -lSM -lICE -lm $(OS_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
########################################
|
1998-08-25 19:41:07 +00:00
|
|
|
# NetBSD
|
|
|
|
ifeq ($(OS_ARCH),NetBSD)
|
|
|
|
OTHER_LIBS = /usr/X11R6/lib/libXm.a -L/usr/X11R6/lib -lXt -lXmu -lXext -lX11 -lSM -lICE -lm $(OS_LIBS)
|
|
|
|
endif
|
|
|
|
|
1998-09-02 12:36:18 +00:00
|
|
|
########################################
|
|
|
|
# NetBSD
|
|
|
|
# Work around linker semantics that will never find our own libutil on 1.3.x
|
|
|
|
ifeq ($(OS_ARCH),NetBSD)
|
|
|
|
ifeq ($(OS_MINOR),3)
|
|
|
|
FOOL_GMAKE = $(EXPORT_LDFLAGS:$(DIST)/lib/lib%.a=-l%)
|
|
|
|
DSO_EX_LIBS = $(FOOL_GMAKE:-lutil=$(DIST)/lib/libutil.a)
|
|
|
|
endif
|
|
|
|
ifdef LIBRUNPATH
|
|
|
|
OS_LIBS += -R$(LIBRUNPATH)
|
|
|
|
endif
|
|
|
|
OTHER_LIBS = -L/usr/X11R6/lib -lXm -lXt -lXmu -lXext -lX11 -lSM -lICE -lm $(OS_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
########################################
|
|
|
|
# OpenBSD
|
|
|
|
# Copied from NetBSD...
|
|
|
|
ifeq ($(OS_ARCH),OpenBSD)
|
|
|
|
#ifeq ($(OS_MINOR),3)
|
|
|
|
#FOOL_GMAKE = $(EXPORT_LDFLAGS:$(DIST)/lib/lib%.a=-l%)
|
|
|
|
#DSO_EX_LIBS = $(FOOL_GMAKE:-lutil=$(DIST)/lib/libutil.a)
|
|
|
|
#endif
|
|
|
|
ifdef LIBRUNPATH
|
|
|
|
OS_LIBS += -R$(LIBRUNPATH)
|
|
|
|
endif
|
|
|
|
OTHER_LIBS = -L/usr/X11R6/lib -lXm -lXt -lXmu -lXext -lX11 -lSM -lICE -lm $(OS_LIBS)
|
|
|
|
endif
|
|
|
|
|
1998-08-25 19:41:07 +00:00
|
|
|
########################################
|
1998-03-28 02:44:41 +00:00
|
|
|
# BSDI
|
|
|
|
ifeq ($(OS_ARCH),BSD_OS)
|
|
|
|
OTHER_LIBS = $(MOTIF)/libXm.a $(LOC_LIB_DIR)/libXt.a $(X11R6LIBS) $(LOC_LIB_DIR)/libXmu.a \
|
|
|
|
$(LOC_LIB_DIR)/libXext.a $(LOC_LIB_DIR)/libX11.a -lm $(OS_LIBS)
|
|
|
|
|
|
|
|
ifeq ($(OS_RELEASE),2.1)
|
|
|
|
X11R6LIBS = $(LOC_LIB_DIR)/libSM.a $(LOC_LIB_DIR)/libICE.a
|
|
|
|
OTHER_LIBS += -lipc
|
|
|
|
endif
|
|
|
|
|
|
|
|
NEED_NLS = 1
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
########################################
|
|
|
|
# HP Machines
|
|
|
|
ifeq ($(OS_ARCH),HP-UX)
|
|
|
|
|
1998-07-15 10:19:36 +00:00
|
|
|
ifeq ($(OS_RELEASE),A.09)
|
|
|
|
HPUX_XLIBS = -L/usr/lib/X11R5 -L/usr/contrib/X11R5/lib -L/usr/lib/Motif1.2
|
|
|
|
endif
|
1998-03-28 02:44:41 +00:00
|
|
|
ifeq ($(OS_RELEASE),B.10)
|
1998-07-15 10:19:36 +00:00
|
|
|
INCLUDES += -I.
|
|
|
|
HPUX_XLIBS = -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -L/usr/lib/Motif1.2_R6 -L/usr/lib/Motif1.2
|
|
|
|
endif
|
|
|
|
ifeq ($(OS_RELEASE),B.11)
|
|
|
|
HPUX_XLIBS = -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -L/usr/lib/Motif2.1
|
1998-03-28 02:44:41 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
HPUX_RESOURCE_HACK = -Wp,-H16384
|
|
|
|
|
1998-07-15 10:19:36 +00:00
|
|
|
OTHER_LIBS = $(HPUX_XLIBS) -lXm -L$(DIST)/lib -lXmu -lXt -lX11 -lXext $(OS_LIBS)
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
ifndef NO_EDITOR
|
1998-07-15 10:19:36 +00:00
|
|
|
|
|
|
|
ifdef NS_USE_GCC
|
|
|
|
CCLD = $(CCC)
|
|
|
|
else
|
1998-03-28 02:44:41 +00:00
|
|
|
EXPORT_DEPLIBS += cxxlink-filter
|
|
|
|
US_DEPLIBS += cxxlink-filter
|
|
|
|
CCLD = CC -tl,./cxxlink-filter
|
1998-07-15 10:19:36 +00:00
|
|
|
endif
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
ifndef NO_WEBFONTS
|
|
|
|
EXTRA_REL_FILES += $(WEBFONT_DSO)
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# On HP, enable SHLIB_PATH
|
|
|
|
#
|
|
|
|
EXTRA_POST_LINK_CMD = chatr +s enable
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
########################################
|
|
|
|
# SGI Machines
|
|
|
|
ifeq ($(OS_ARCH),IRIX)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Linker will report that '-lSgm' does not resolve any symbols, but it
|
|
|
|
# should not be removed. SGI dynamically opens the library depending on
|
|
|
|
# the setting of some resources (e.g. "useEnhancedFSB")
|
|
|
|
#
|
|
|
|
OTHER_LIBS = -lSgm $(MOTIFPATCH_LIB) -lXm -lXmu -lXt -lX11 -lXext -lgen -laudio -lm $(OS_LIBS)
|
|
|
|
|
|
|
|
#
|
|
|
|
# On Irix, tag the executable for use by the Indigo Magic Desktop.
|
|
|
|
# This magic number comes from /usr/lib/filetype/install/netscape.ftr
|
|
|
|
# shipped by SGI along with their n.nnS version of Mozilla.
|
|
|
|
#
|
|
|
|
ifeq ($(OS_RELEASE),5)
|
|
|
|
EXTRA_POST_LINK_CMD = /usr/sbin/tag 67150
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# If we are using gtscc, we must use it as the linker, and we
|
|
|
|
# can only build statically (no shared libs).
|
|
|
|
#
|
|
|
|
CCLD = CC
|
|
|
|
ifdef USE_GTSCC
|
|
|
|
ifndef NO_GTSCC
|
|
|
|
CCLD = $(DIST)/bin/gtscc $(GTSCC_LD_OPTIONS) -gtsfile $(DEPTH)/config/$(OBJDIR)/db.gts -gtsrootdir $(DEPTH)
|
|
|
|
TARGETS = $(OBJDIR)/$(XFE_PROGNAME)-export
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef NO_WEBFONTS
|
|
|
|
EXTRA_REL_FILES += $(WEBFONT_DSO)
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
########################################
|
|
|
|
# Linux
|
|
|
|
ifeq ($(OS_ARCH),Linux)
|
|
|
|
|
1998-08-11 00:18:07 +00:00
|
|
|
# Override the definition of OS_LIBS in config/Linux.mk.
|
|
|
|
ifeq ($(USE_PTHREADS),1)
|
|
|
|
OS_LIBS = -lpthread -lm -ldl -lc
|
|
|
|
else
|
|
|
|
OS_LIBS = -lm -ldl
|
|
|
|
endif
|
|
|
|
|
1998-07-18 03:34:26 +00:00
|
|
|
XFE_MOTIF_LDFLAGS =\
|
|
|
|
$(MOZILLA_XFE_GLIBC_BROKEN_LOCALE_FLAGS) \
|
|
|
|
$(MOZILLA_XFE_MOTIF_STATIC_FLAGS) \
|
|
|
|
$(MOZILLA_XFE_MOTIF_PRINT_SHELL_FLAGS)
|
|
|
|
|
|
|
|
XFE_X11_LDFLAGS =\
|
|
|
|
$(MOZILLA_XFE_X11_DYNAMIC_PATHS) \
|
|
|
|
-lXt \
|
|
|
|
-lXmu \
|
|
|
|
$(MOZILLA_XFE_MOTIF_XPM_FLAGS) \
|
|
|
|
$(MOZILLA_XFE_X11_DYNAMIC_FLAGS) \
|
|
|
|
-lXext \
|
|
|
|
$(MOZILLA_XFE_X11_SM_FLAGS)
|
|
|
|
|
|
|
|
OTHER_LIBS =\
|
|
|
|
$(XFE_MOTIF_LDFLAGS) \
|
|
|
|
$(XFE_X11_LDFLAGS) \
|
1998-08-11 00:18:07 +00:00
|
|
|
$(OS_LIBS)
|
1998-07-18 03:34:26 +00:00
|
|
|
|
|
|
|
# Dynamic motif binary
|
|
|
|
ifdef MOZILLA_XFE_MOTIF_HAVE_DYNAMIC_LIB
|
|
|
|
|
1998-08-05 15:17:43 +00:00
|
|
|
XFE_DYN_MOTIF_LDFLAGS =\
|
1998-05-03 06:36:27 +00:00
|
|
|
$(MOTIFPATCH_LIB) \
|
1998-07-18 03:34:26 +00:00
|
|
|
$(MOZILLA_XFE_GLIBC_BROKEN_LOCALE_FLAGS) \
|
|
|
|
$(MOZILLA_XFE_MOTIF_DYNAMIC_PATHS) \
|
|
|
|
$(MOZILLA_XFE_MOTIF_DYNAMIC_FLAGS) \
|
|
|
|
$(MOZILLA_XFE_MOTIF_PRINT_SHELL_FLAGS)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
EXTRA_EXPORT_OBJS = $(OBJDIR)/$(XFE_PROGNAME)-motif-export
|
|
|
|
EXTRA_EXPORT_BINARY = $(EXTRA_EXPORT_OBJS)
|
|
|
|
|
|
|
|
PLUGIN_DSO += $(DIST)/bin/libnullplugin-dynMotif.so
|
|
|
|
|
1998-08-05 15:17:43 +00:00
|
|
|
OTHER_DYN_MOTIF_LIBS =\
|
|
|
|
$(XFE_DYN_MOTIF_LDFLAGS) \
|
|
|
|
$(XFE_X11_LDFLAGS) \
|
1998-08-11 00:18:07 +00:00
|
|
|
$(OS_LIBS)
|
1998-08-05 15:17:43 +00:00
|
|
|
|
1998-07-18 03:34:26 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Web fonts are only available on x86
|
|
|
|
ifeq ($(OS_RELEASE)$(CPU_ARCH),2.0x86)
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
ifndef NO_WEBFONTS
|
|
|
|
EXTRA_REL_FILES += $(WEBFONT_DSO)
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
########################################
|
|
|
|
# NCR SYSV 4.0
|
|
|
|
ifeq ($(OS_ARCH),NCR)
|
|
|
|
OTHER_LIBS = -L/usr/X/lib $(MOTIFLIB) -lXt -lXmu -lXext -lX11 -lgen -lm $(OS_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
########################################
|
|
|
|
# NEC SYSV 4.2
|
|
|
|
ifeq ($(OS_ARCH),NEC)
|
|
|
|
OTHER_LIBS = -L/usr/abiccs/lib/X11R5 $(MOTIFLIB) -lXt -lXmu -lXext -lX11 -lresolv -lgen -lm $(OS_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
########################################
|
|
|
|
# Dec Machines
|
|
|
|
ifeq ($(OS_ARCH),OSF1)
|
|
|
|
|
|
|
|
#
|
|
|
|
# We would like to link OSF1 static.
|
|
|
|
# This is because of motif problems (BadMatch errors on non-default visual)
|
|
|
|
# on 3.2 and 3.0 (and not on 2.0).
|
|
|
|
# But libX11 needs to be dynamic, otherwise the locale stuff doesn't work
|
|
|
|
# and you get warnings and core dump when pasting into Mozilla.
|
|
|
|
# Also, libXm must be dynamic, otherwise Japanese text widgets hang
|
|
|
|
# the process.
|
|
|
|
#
|
|
|
|
OTHER_LIBS = -lXm -lXmu -lXt -lX11 -lXext -ldnet_stub -lm -lots $(OS_LIBS)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
########################################
|
|
|
|
# SNI ReliantUNIX (SINIX)
|
|
|
|
ifeq ($(OS_ARCH),SINIX)
|
|
|
|
OTHER_LIBS = -lXm -lXmu -lXt -lX11 -lXext $(OS_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
########################################
|
|
|
|
# SCO OpenServer
|
|
|
|
ifeq ($(OS_ARCH),SCOOS)
|
|
|
|
OTHER_LIBS = $(LIB_XMOS) -lXm -lXt -lXmu -lXext -lX11 -lm -lPW $(OS_LIBS)
|
|
|
|
|
|
|
|
ifdef NEED_XMOS
|
|
|
|
LIB_XMOS = $(OBJDIR)/Xmos.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
########################################
|
|
|
|
# Sun Machines
|
|
|
|
ifeq ($(OS_ARCH),SunOS)
|
|
|
|
|
|
|
|
ifeq ($(OS_RELEASE),4.1)
|
|
|
|
|
|
|
|
ALL_TARGETS += $(OBJDIR)/$(XFE_PROGNAME)-nis-export
|
|
|
|
|
|
|
|
OTHER_LIBS = -L$(MOTIF)/lib $(MOTIF)/lib/libXm.a $(MOTIF)/lib/libXmu.a $(MOTIF)/lib/libXt.a \
|
|
|
|
$(MOTIF)/lib/libXext.a $(MOTIF)/lib/libX11.a
|
|
|
|
|
|
|
|
ifndef NO_WEBFONTS
|
|
|
|
EXTRA_REL_FILES += $(WEBFONT_DSO)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef NO_EDITOR
|
|
|
|
OTHER_LIBS += -L$(NS_LIB)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Need this guy because the one in libg++.a is (still?) broken.
|
|
|
|
#
|
|
|
|
BASIC_LIBS += $(OBJDIR)/regex.o
|
|
|
|
$(OBJDIR)/regex.o: /lib/libc.a
|
|
|
|
ar x /lib/libc.a regex.o && mv regex.o $@
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# Need our own popen to fix the SunOS popen problem.
|
|
|
|
#
|
|
|
|
BASIC_LIBS += $(OBJDIR)/popen.o
|
|
|
|
CSRCS += popen.c
|
|
|
|
|
|
|
|
EXPORT_LDFLAGS += -lm
|
|
|
|
|
|
|
|
# SunOS had 2 executables. Only the non-nis version need this
|
|
|
|
NIS_OBJS = $(OBJDIR)/dns-stub.o
|
|
|
|
NIS_SRCS = dns-stub.c
|
|
|
|
NIS_LIB = $(NIS_OBJS)
|
|
|
|
DNS_LIB = -lresolv
|
|
|
|
|
|
|
|
# For release only.
|
|
|
|
# This is only for SunOS as it has both nis and non-nis
|
|
|
|
# version of the browser packaged together.
|
|
|
|
EXTRA_EXPORT_OBJS = $(XFE_PROGNAME)-nis-export
|
|
|
|
|
|
|
|
NEED_YP_VERSION = 1
|
|
|
|
NEED_NLS = 1
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
########################################
|
|
|
|
ifneq (,$(filter 5 5.5,$(OS_RELEASE)))
|
|
|
|
|
|
|
|
USRLIBDIR := /usr/openwin/lib
|
|
|
|
MCS_CMD = mcs -d
|
|
|
|
|
|
|
|
ifeq ($(CPU_ARCH),sparc)
|
|
|
|
OTHER_LIBS = $(MOTIFPATCH_LIB) $(MOTIFLIB) -lXt -lXmu -lXext -lX11 $(OS_LIBS) -lgen -lresolv -lm
|
|
|
|
ifndef NO_WEBFONTS
|
|
|
|
EXTRA_REL_FILES += $(WEBFONT_DSO)
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
OTHER_LIBS = $(MOTIFLIB) -lXt -lXmu -lXext -lX11 $(OS_LIBS) -lm
|
|
|
|
LDFLAGS = $(NOMD_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
EXPORT_LDFLAGS = -z defs -L$(MOTIF)/lib -L$(USRLIBDIR) -R$(MOTIF)/lib \
|
|
|
|
-R$(USRLIBDIR) $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) \
|
1998-08-11 00:18:07 +00:00
|
|
|
$(BASIC_DSOS) $(NSPR_LIB) $(OTHER_LIBS)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
########################################
|
|
|
|
# SCO Unixware 2.1
|
|
|
|
ifeq ($(OS_ARCH),UNIXWARE)
|
|
|
|
|
|
|
|
ifdef NEED_XMOS
|
|
|
|
LIB_XMOS = $(OBJDIR)/Xmos.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
OTHER_LIBS = $(LIB_XMOS) -L/usr/X/lib -lXm -lXt -lXmu -lXext -lX11 -lm
|
|
|
|
|
|
|
|
EXPORT_LDFLAGS += -lresolv -lsocket -lc /usr/ucblib/libucb.a
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
1998-08-25 19:35:56 +00:00
|
|
|
########################################
|
|
|
|
# Data General DG/UX
|
|
|
|
ifeq ($(OS_ARCH),dgux)
|
|
|
|
|
|
|
|
OTHER_LIBS = $(MOTIFLIB) $(OS_LIBS)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
#######################################################################
|
|
|
|
|
|
|
|
$(MICROLINE_LIB):
|
|
|
|
cd Microline3.0/XmL; $(MAKE)
|
|
|
|
|
|
|
|
$(ICONS_LIB):
|
|
|
|
cd icons; $(MAKE)
|
|
|
|
|
|
|
|
$(DTWIDGETS_LIB):
|
|
|
|
cd DtWidgets; $(MAKE)
|
|
|
|
|
|
|
|
$(XFE_WIDGETS_LIB):
|
|
|
|
cd XfeWidgets/Xfe; $(MAKE)
|
|
|
|
|
1998-05-06 17:36:34 +00:00
|
|
|
$(XFE_WIDGETS_BM_LIB):
|
|
|
|
cd XfeWidgets/XfeBm; $(MAKE)
|
|
|
|
|
1998-09-18 06:12:45 +00:00
|
|
|
$(XFE_WIDGETS_COMBO_BOX_LIB):
|
|
|
|
cd XfeWidgets/XfeComboBox; $(MAKE)
|
|
|
|
|
|
|
|
$(XFE_WIDGETS_CAPTION_LIB):
|
|
|
|
cd XfeWidgets/XfeCaption; $(MAKE)
|
|
|
|
|
|
|
|
$(XFE_WIDGETS_TOOL_BAR_LIB):
|
|
|
|
cd XfeWidgets/XfeToolBar; $(MAKE)
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
$(XFE2_LIB):
|
|
|
|
cd src; $(MAKE)
|
|
|
|
|
|
|
|
$(TARGETS): $(OBJS)
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
# Rules to build license.o files
|
|
|
|
|
|
|
|
$(OBJDIR)/license.o: $(OBJDIR)/LICENSE.c Makefile
|
|
|
|
$(CC) -c -o $@ $<
|
|
|
|
|
|
|
|
ifndef NETSCAPE_MK
|
|
|
|
$(OBJDIR)/LICENSE.c:
|
|
|
|
@echo 'const char fe_LicenseData[] = "This license intentionally left blank.";' > $@
|
|
|
|
endif
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
# Rules to build config*.o files
|
|
|
|
|
|
|
|
$(OBJDIR)/$(LITE_PREFIX)config-export.o: config.c versionn.h Makefile $(OBJS) $(EXPORT_DEPLIBS)
|
|
|
|
@echo Generating $@ from config.c...; \
|
|
|
|
X=' '; \
|
|
|
|
VN=`sed -n$$X 's/^#define VERSION_NUMBER[ ]*\(.*\)$$/\1/p' versionn.h` ; \
|
|
|
|
$(CC) -c $(CFLAGS) -o $@ config.c \
|
|
|
|
-DCONFIG="$(GUESS_CONFIG)" \
|
|
|
|
-DDATE="`date +%d-%h-%y`" \
|
|
|
|
-DVERSION=$${VN} \
|
|
|
|
-UHAVE_NIS -UFRANCE_VERSION -DEXPORT_VERSION -UUS_VERSION -UVENDOR_ANIM
|
|
|
|
|
|
|
|
$(OBJDIR)/$(LITE_PREFIX)config-nis-export.o: config.c versionn.h Makefile $(OBJS) $(NIS_OBJS) $(EXPORT_DEPLIBS)
|
|
|
|
@echo Generating $@ from config.c...; \
|
|
|
|
X=' '; \
|
|
|
|
VN=`sed -n$$X 's/^#define VERSION_NUMBER[ ]*\(.*\)$$/\1/p' versionn.h` ; \
|
|
|
|
$(CC) -c $(CFLAGS) -o $@ config.c \
|
|
|
|
-DCONFIG="$(GUESS_CONFIG)" \
|
|
|
|
-DDATE="`date +%d-%h-%y`" \
|
|
|
|
-DVERSION=$${VN} \
|
|
|
|
-DHAVE_NIS -UFRANCE_VERSION -DEXPORT_VERSION -UUS_VERSION -UVENDOR_ANIM
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
# Rules to build resources
|
|
|
|
|
|
|
|
.SUFFIXES: .ad
|
|
|
|
|
|
|
|
# DO NOT CHANGE THE ORDER OF THE DEPENDENCIES. Add new ones to the end.
|
|
|
|
resources-%.o: RESOURCES-%.c Makefile
|
|
|
|
$(CC) -c $(HPUX_RESOURCE_HACK) -o $@ $<
|
|
|
|
|
|
|
|
RESOURCES-%.c: Netscape-%.ad ad2c Makefile
|
|
|
|
@echo 'char *fe_fallbackResources[] = {' > $@; \
|
|
|
|
./ad2c $< >> $@; \
|
|
|
|
echo '0};' >> $@
|
|
|
|
|
|
|
|
# Explicit dependency list to ensure that e_kit_resources.h gets built.
|
|
|
|
$(OBJDIR)/e_kit.o: e_kit.c e_kit_resources.h
|
|
|
|
|
|
|
|
# Turn ekit app-defaults into a C file
|
|
|
|
e_kit_resources.h: e_kit.ad
|
|
|
|
@echo 'char* fe_ekitDefaultDatabase = ' > $@
|
|
|
|
cat $< | tr '[\001-\272]' '[\106-\377]' | \
|
|
|
|
od -b | sed 's/^[0-7][0-7]* *\(.*\)/\\\1/; \
|
|
|
|
s/ /\\/g;s/\(.*\)/ "\1"/;s/^ *"\\"$$//' >> $@
|
|
|
|
@echo ';' >> $@
|
|
|
|
|
1998-09-11 18:59:16 +00:00
|
|
|
$(OBJDIR)/Netscape-nis-export.ad $(OBJDIR)/Netscape-export.ad: Makefile resources resources-translations versionn.h strs make-resources $(LOCALE_MAP)
|
1998-08-19 20:42:14 +00:00
|
|
|
@./make-resources $@ Netscape Netscape versionn.h strs resources $(MOZ_USER_DIR) "" export $(LOCALES)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
# The "-export" targets
|
|
|
|
|
|
|
|
$(OBJDIR)/$(DSO_PROGNAME)-export: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS)
|
|
|
|
@$(MAKE_OBJDIR)
|
|
|
|
rm -f $@
|
1998-09-02 03:20:44 +00:00
|
|
|
ifdef NETSCAPE_OFFICIAL
|
1998-09-02 02:25:40 +00:00
|
|
|
rm -rf $(OBJDIR)/objs.txt
|
|
|
|
@echo Creating a list of all object files ... objs.txt
|
|
|
|
@echo $(OBJS) > $(OBJDIR)/objs.txt
|
|
|
|
@echo $(EXPORT_OBJS) >> $(OBJDIR)/objs.txt
|
|
|
|
@echo $(DSO_EX_LIBS) >> $(OBJDIR)/objs.txt
|
|
|
|
@echo Creating a list of all symbols ... symbols.txt
|
|
|
|
$(PERL) listsymb.pl objs.txt symbols.txt
|
|
|
|
@echo Generating dispatch table ... dispunix.h dispunix.c cmoffset.h
|
|
|
|
$(PERL) gendisp.pl symbols.txt dispunix.h dispunix.c cmoffset.h
|
|
|
|
$(CC) -c -o $(OBJDIR)/dispunix.o -I$(DIST)/include dispunix.c
|
|
|
|
$(CCLD) -o $@ $(LDFLAGS) $(OBJDIR)/dispunix.o $(OBJS) $(EXPORT_OBJS) -L$(DIST)/bin -L$(DIST)/lib $(DSO_EX_LIBS) $(DNS_LIB)
|
|
|
|
else
|
1998-03-28 02:44:41 +00:00
|
|
|
$(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(EXPORT_OBJS) -L$(DIST)/bin -L$(DIST)/lib $(DSO_EX_LIBS) $(DNS_LIB)
|
1998-09-02 02:25:40 +00:00
|
|
|
endif
|
1998-03-28 02:44:41 +00:00
|
|
|
@$(EXTRA_POST_LINK_CMD) $@
|
|
|
|
|
|
|
|
$(OBJDIR)/$(DSO_PROGNAME)-export.mcv: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS)
|
|
|
|
@$(MAKE_OBJDIR)
|
|
|
|
rm -f $@
|
|
|
|
$(CCLD) -o $@ $(CFLAGS) $(OBJS) $(EXPORT_OBJS) -L$(DIST)/bin -L$(DIST)/lib $(DSO_EX_LIBS) $(DNS_LIB) -lmalloc_cv
|
|
|
|
@$(EXTRA_POST_LINK_CMD) $@
|
|
|
|
|
|
|
|
$(OBJDIR)/$(DSO_PROGNAME)-export.pure: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS)
|
|
|
|
@$(MAKE_OBJDIR)
|
|
|
|
rm -f $@
|
|
|
|
$(PURIFY) $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(EXPORT_OBJS) -L$(DIST)/bin -L$(DIST)/lib $(DSO_EX_LIBS) $(DNS_LIB)
|
|
|
|
@$(EXTRA_POST_LINK_CMD) $@
|
|
|
|
|
|
|
|
$(OBJDIR)/$(DSO_PROGNAME)-export.quantify: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS)
|
|
|
|
@$(MAKE_OBJDIR)
|
|
|
|
rm -f $@
|
|
|
|
$(QUANTIFY) $(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(EXPORT_OBJS) -L$(DIST)/bin -L$(DIST)/lib $(DSO_EX_LIBS) $(DNS_LIB)
|
|
|
|
@$(EXTRA_POST_LINK_CMD) $@
|
|
|
|
|
|
|
|
$(OBJDIR)/$(XFE_PROGNAME)-export: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS)
|
|
|
|
@$(MAKE_OBJDIR)
|
|
|
|
rm -f $@
|
1998-07-31 20:19:50 +00:00
|
|
|
$(CCLD) -o $@ $(DYNAMIC_SYMBOLS_F) $(LDFLAGS) $(OBJS) $(EXPORT_OBJS) $(EXPORT_LDFLAGS) $(DNS_LIB)
|
1998-03-28 02:44:41 +00:00
|
|
|
@$(EXTRA_POST_LINK_CMD) $@
|
|
|
|
|
|
|
|
$(OBJDIR)/$(XFE_PROGNAME)-export.pure: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS)
|
|
|
|
@$(MAKE_OBJDIR)
|
|
|
|
rm -f $@
|
|
|
|
$(PURIFY) $(CCLD) -o $@ $(NOMD_LDFLAGS) $(OBJS) $(EXPORT_OBJS) $(EXPORT_LDFLAGS) $(DNS_LIB)
|
|
|
|
@$(EXTRA_POST_LINK_CMD) $@
|
|
|
|
|
|
|
|
$(OBJDIR)/$(XFE_PROGNAME)-export.quantify: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS)
|
|
|
|
@$(MAKE_OBJDIR)
|
|
|
|
rm -f $@
|
|
|
|
$(QUANTIFY) $(CCLD) -o $@ $(NOMD_LDFLAGS) $(OBJS) $(EXPORT_OBJS) $(EXPORT_LDFLAGS) $(DNS_LIB)
|
|
|
|
@$(EXTRA_POST_LINK_CMD) $@
|
|
|
|
|
|
|
|
$(OBJDIR)/$(XFE_PROGNAME)-export.prof: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS)
|
|
|
|
@$(MAKE_OBJDIR)
|
|
|
|
rm -f $@
|
|
|
|
$(CCLD) -p -o $@ $(LDFLAGS) $(OBJS) $(EXPORT_OBJS) $(EXPORT_LDFLAGS) $(DNS_LIB)
|
|
|
|
@$(EXTRA_POST_LINK_CMD) $@
|
|
|
|
|
|
|
|
$(OBJDIR)/$(XFE_PROGNAME)-nis-export: $(OBJS) $(NIS_EXPORT_OBJS) $(NIS_OBJS) $(EXPORT_DEPLIBS)
|
|
|
|
@$(MAKE_OBJDIR)
|
|
|
|
rm -f $@
|
|
|
|
$(CCLD) -o $@ $(LDFLAGS) $(OBJS) $(NIS_EXPORT_OBJS) $(EXPORT_LDFLAGS) $(NIS_LIB)
|
|
|
|
@$(EXTRA_POST_LINK_CMD) $@
|
|
|
|
|
|
|
|
#
|
|
|
|
# Build a dynamic Motif version.
|
|
|
|
#
|
1998-07-18 03:34:26 +00:00
|
|
|
ifeq ($(OS_ARCH),Linux)
|
|
|
|
ifdef MOZILLA_XFE_MOTIF_HAVE_DYNAMIC_LIB
|
1998-03-28 02:44:41 +00:00
|
|
|
$(OBJDIR)/$(XFE_PROGNAME)-motif-export: $(OBJS) $(EXPORT_OBJS) $(EXPORT_DEPLIBS)
|
|
|
|
@$(MAKE_OBJDIR)
|
|
|
|
rm -f $@
|
1998-08-05 15:17:43 +00:00
|
|
|
$(CCLD) -o $@ $(DYNAMIC_SYMBOLS_F) $(LDFLAGS) $(OBJS) $(EXPORT_OBJS) $(EXPORT_DYN_MOTIF_LDFLAGS) $(DNS_LIB)
|
1998-03-28 02:44:41 +00:00
|
|
|
@$(EXTRA_POST_LINK_CMD) $@
|
|
|
|
endif
|
1998-07-18 03:34:26 +00:00
|
|
|
endif
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
#---------------- Misc link targets follow ----------------------#
|
|
|
|
|
|
|
|
# Make a dynamic export executable using malloc_cv by default.
|
|
|
|
mcv: $(OBJDIR)/$(DSO_PROGNAME)-export $(OBJDIR)/$(DSO_PROGNAME)-export.mcv
|
|
|
|
|
|
|
|
# Make a purified, static export executable by default.
|
|
|
|
pure: $(OBJDIR)/$(XFE_PROGNAME)-export $(OBJDIR)/$(XFE_PROGNAME)-export.pure
|
|
|
|
|
|
|
|
# Trying out quantify.
|
|
|
|
quantify: $(OBJDIR)/$(XFE_PROGNAME)-export $(OBJDIR)/$(XFE_PROGNAME)-export.quantify
|
|
|
|
|
|
|
|
# Use gtscc to find dead code globals.
|
|
|
|
unreferenced: $(OBJS) $(NET_EXPORT_OBJS) $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) $(NSPR_LIB) $(DIST)/bin/gtscc
|
|
|
|
@$(MAKE_OBJDIR)
|
|
|
|
rm -f $@
|
|
|
|
$(DIST)/bin/gtscc -gtsrootdir $(DEPTH) -gtsdump -gtsnorecompile -gtsnolink $(DEPTH) $(OBJS) $(NET_EXPORT_OBJS) $(BASIC_LIBS) $(EXPORT_LIB) $(BASIC_LIBS_2) $(NSPR_LIB) | awk -n '/ 0 0 / { print $$5 " " $$1 }' | sort > $@
|
|
|
|
|
|
|
|
# Some dependencies that -MDupdate isn't getting.
|
|
|
|
$(OBJDIR)/strids.o: xfe_err.h
|
|
|
|
$(OBJDIR)/strings.o: xfe_err.h
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH),AIX)
|
1998-06-22 21:19:46 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# In first. Need to double check
|
|
|
|
#
|
|
|
|
# This fixes a 4.5-specific problem caused by including /usr/include/strings.h unnecessarily.
|
|
|
|
$(OBJDIR)/mozilla.o: mozilla.c
|
|
|
|
@$(MAKE_OBJDIR)
|
|
|
|
$(CC) -o $@ -c $(CFLAGS) -D_H_STRINGS $<
|
|
|
|
#
|
|
|
|
# end
|
|
|
|
#
|
1998-03-28 02:44:41 +00:00
|
|
|
AIX_HACK := $(notdir $(AIX_NSPR))
|
|
|
|
|
|
|
|
# Install nspr dynamic library for AIX.
|
|
|
|
$(AIX_HACK): $(AIX_NSPR)
|
|
|
|
$(INSTALL) -m 644 $< .
|
|
|
|
endif
|
|
|
|
|
1998-07-08 05:05:21 +00:00
|
|
|
install:: $(AIX_HACK) $(EXTRA_REL_FILES) $(TARGETS)
|
1998-03-28 02:44:41 +00:00
|
|
|
ifdef TARGETS
|
1998-07-08 05:05:21 +00:00
|
|
|
$(INSTALL) $(filter-out tweak_nspr,$(TARGETS)) $(DIST)/bin
|
1998-03-28 02:44:41 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(VERSION_OBJS): versionn.h
|
|
|
|
|
|
|
|
#
|
|
|
|
# For some reason the -include's in this file aren't working,
|
|
|
|
# so until I figure it out, if Netscape.mk doesn't exist, just
|
|
|
|
# create a dummy file. --briano
|
|
|
|
#
|
|
|
|
$(XFEPRIVDIR)Netscape.mk:
|
|
|
|
ifdef XFEPRIVDIR
|
|
|
|
@-mkdir -p $(XFEPRIVDIR)
|
|
|
|
endif
|
|
|
|
@touch $@
|
|
|
|
|
|
|
|
everything: all $(ALL_TARGETS)
|
|
|
|
|
|
|
|
symbols:
|
|
|
|
@echo "ALL_TARGETS = $(ALL_TARGETS)"
|
|
|
|
@echo "RELEASES = $(RELEASES)"
|
|
|
|
@echo "OS_ARCH = $(OS_ARCH)"
|
1998-07-09 04:58:02 +00:00
|
|
|
@echo "FC_PLATFORM = $(FC_PLATFORM)"
|