1998-12-08 22:43:20 +00:00
|
|
|
#
|
2004-04-17 16:52:41 +00:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
1998-12-08 22:43:20 +00:00
|
|
|
#
|
2004-04-17 16:52:41 +00:00
|
|
|
# The contents of this file are subject to the Mozilla 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/MPL/
|
|
|
|
#
|
|
|
|
# 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.
|
1998-12-08 22:43:20 +00:00
|
|
|
#
|
1999-11-06 03:43:54 +00:00
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
2004-04-17 16:52:41 +00:00
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Netscape Communications Corporation.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 1998
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
|
|
|
# Jeremy Morton (jez9999@runbox.com)
|
1999-11-06 03:43:54 +00:00
|
|
|
#
|
2004-04-17 16:52:41 +00:00
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either of the GNU General Public License Version 2 or later (the "GPL"),
|
|
|
|
# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
# the provisions above, a recipient may use your version of this file under
|
|
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
1999-05-19 01:08:52 +00:00
|
|
|
#
|
2004-04-17 16:52:41 +00:00
|
|
|
# ***** END LICENSE BLOCK *****
|
1998-12-08 22:43:20 +00:00
|
|
|
|
1999-05-19 01:08:52 +00:00
|
|
|
DEPTH = ../..
|
1998-12-08 22:43:20 +00:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
1999-07-27 23:27:44 +00:00
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2004-02-10 18:21:24 +00:00
|
|
|
DIRS = init.d
|
|
|
|
|
2005-07-25 20:22:31 +00:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
|
|
|
|
DIRS += os2turbo
|
|
|
|
endif
|
|
|
|
|
2002-09-02 02:22:10 +00:00
|
|
|
# This code removes the console from release builds
|
|
|
|
# (unless you've set MOZ_WINCONSOLE=1).
|
|
|
|
ifndef MOZ_WINCONSOLE
|
|
|
|
ifdef MOZ_DEBUG
|
|
|
|
MOZ_WINCONSOLE=1
|
|
|
|
else
|
|
|
|
MOZ_WINCONSOLE=0
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2003-01-17 04:09:29 +00:00
|
|
|
|
2004-10-27 05:27:37 +00:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
2003-01-17 03:08:36 +00:00
|
|
|
ifndef BUILD_STATIC_LIBS
|
2003-01-21 06:33:50 +00:00
|
|
|
ifndef MOZ_TIMELINE
|
2003-01-17 03:08:36 +00:00
|
|
|
GRE_BUILD = 1;
|
|
|
|
endif
|
|
|
|
endif
|
2003-01-21 06:33:50 +00:00
|
|
|
endif
|
2003-01-17 03:08:36 +00:00
|
|
|
|
|
|
|
ifdef GRE_BUILD
|
2005-04-06 03:35:24 +00:00
|
|
|
DEFINES += -DXPCOM_GLUE
|
2005-04-05 14:50:16 +00:00
|
|
|
else
|
|
|
|
MOZILLA_INTERNAL_API = 1
|
2003-01-17 03:08:36 +00:00
|
|
|
endif
|
2003-01-16 19:25:47 +00:00
|
|
|
|
2005-04-10 23:40:39 +00:00
|
|
|
DEFINES += -DMOZ_APP_NAME="$(MOZ_APP_NAME)"
|
|
|
|
DEFINES += -DMOZ_APP_DISPLAYNAME="$(MOZ_APP_DISPLAYNAME)"
|
|
|
|
DEFINES += -DMOZ_APP_VERSION="$(MOZ_APP_VERSION)"
|
2005-03-29 22:02:23 +00:00
|
|
|
|
1999-05-19 01:08:52 +00:00
|
|
|
MODULE = apprunner
|
2001-09-18 13:41:47 +00:00
|
|
|
REQUIRES = xpcom \
|
|
|
|
string \
|
|
|
|
webbrwsr \
|
|
|
|
widget \
|
|
|
|
dom \
|
|
|
|
necko \
|
2003-12-22 05:23:10 +00:00
|
|
|
content \
|
2001-09-18 13:41:47 +00:00
|
|
|
pref \
|
|
|
|
appshell \
|
2005-04-04 19:08:55 +00:00
|
|
|
toolkitcomps \
|
2004-10-29 19:28:38 +00:00
|
|
|
appcomps \
|
2001-09-18 13:41:47 +00:00
|
|
|
gfx \
|
|
|
|
xpinstall \
|
|
|
|
windowwatcher \
|
|
|
|
embed_base \
|
|
|
|
embedcomponents \
|
|
|
|
docshell \
|
2002-04-01 05:56:35 +00:00
|
|
|
locale \
|
2002-04-26 01:37:04 +00:00
|
|
|
profile \
|
2004-09-21 20:19:48 +00:00
|
|
|
chrome \
|
2005-04-04 19:08:55 +00:00
|
|
|
xremoteclient \
|
2001-09-18 13:41:47 +00:00
|
|
|
$(NULL)
|
2001-08-15 04:34:46 +00:00
|
|
|
# for jprof
|
|
|
|
REQUIRES += jprof
|
2000-05-04 11:00:47 +00:00
|
|
|
|
2003-01-15 20:40:06 +00:00
|
|
|
ifdef NS_TRACE_MALLOC
|
|
|
|
REQUIRES += tracemalloc
|
|
|
|
endif
|
|
|
|
|
2003-07-13 22:29:00 +00:00
|
|
|
ifdef MOZ_ENABLE_XREMOTE
|
|
|
|
REQUIRES += xremoteservice
|
|
|
|
endif
|
|
|
|
|
2002-09-13 21:15:59 +00:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
|
2000-05-04 11:00:47 +00:00
|
|
|
ifeq ($(USE_SHORT_LIBNAME),1)
|
2005-03-29 22:02:23 +00:00
|
|
|
PROGRAM = $(MOZ_APP_NAME)$(BIN_SUFFIX)
|
2000-05-04 11:00:47 +00:00
|
|
|
else
|
2005-03-29 22:02:23 +00:00
|
|
|
PROGRAM = $(MOZ_APP_NAME)-bin$(BIN_SUFFIX)
|
2000-05-04 11:00:47 +00:00
|
|
|
endif
|
2000-09-02 00:12:07 +00:00
|
|
|
|
2003-04-17 19:19:42 +00:00
|
|
|
# Force applications to be built non-statically
|
|
|
|
# when building the mozcomps meta component
|
|
|
|
ifneq (,$(filter mozcomps,$(MOZ_META_COMPONENTS)))
|
|
|
|
BUILD_STATIC_LIBS=
|
2003-06-09 22:25:25 +00:00
|
|
|
ifdef MOZ_COMPONENTLIB
|
|
|
|
DEFINES += -D_MOZCOMPS_SHARED_LIBRARY -D_BUILD_STATIC_BIN
|
|
|
|
endif
|
2003-04-17 19:19:42 +00:00
|
|
|
endif
|
|
|
|
|
2004-01-16 21:54:44 +00:00
|
|
|
PREF_JS_EXPORTS = $(srcdir)/browser-prefs.js
|
|
|
|
|
1999-07-27 23:27:44 +00:00
|
|
|
CPPSRCS = \
|
|
|
|
nsAppRunner.cpp \
|
2001-12-14 23:49:04 +00:00
|
|
|
showOSAlert.cpp \
|
1999-07-27 23:27:44 +00:00
|
|
|
$(NULL)
|
1999-06-26 07:42:19 +00:00
|
|
|
|
2002-01-01 00:03:57 +00:00
|
|
|
|
2003-01-20 13:47:49 +00:00
|
|
|
ifneq (,$(filter-out OS2 WINNT,$(OS_ARCH)))
|
2003-01-16 19:25:47 +00:00
|
|
|
STACKWALK_SRC_LCSRCS = \
|
|
|
|
nsStackFrameUnix.cpp \
|
|
|
|
nsStackFrameUnix.h \
|
2001-05-18 01:06:02 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2003-01-16 19:25:47 +00:00
|
|
|
STACKWALK_CPPSRCS := $(addprefix $(topsrcdir)/xpcom/base/, $(STACKWALK_SRC_LCSRCS))
|
2001-06-20 20:21:49 +00:00
|
|
|
|
2003-01-16 19:25:47 +00:00
|
|
|
CPPSRCS += nsSigHandlers.cpp nsStackFrameUnix.cpp
|
2001-05-18 01:06:02 +00:00
|
|
|
endif
|
|
|
|
|
2003-06-19 00:01:48 +00:00
|
|
|
ifdef BUILD_STATIC_LIBS
|
2005-06-09 08:54:12 +00:00
|
|
|
ifneq ($(MOZ_OS2_TOOLS),VACPP)
|
|
|
|
ifneq (WINNT_,$(OS_ARCH)_$(GNU_CC))
|
2003-06-19 00:01:48 +00:00
|
|
|
STATIC_COMPONENTS_LINKER_PATH = -L$(DIST)/lib/components
|
|
|
|
endif
|
2005-06-09 08:54:12 +00:00
|
|
|
endif
|
|
|
|
endif
|
2003-06-19 00:01:48 +00:00
|
|
|
|
|
|
|
LIBS = \
|
|
|
|
$(STATIC_COMPONENTS_LINKER_PATH) \
|
|
|
|
$(EXTRA_DSO_LIBS) \
|
|
|
|
$(NULL)
|
2003-01-16 19:25:47 +00:00
|
|
|
|
2005-06-13 14:57:20 +00:00
|
|
|
ifdef MOZ_ENABLE_XREMOTE
|
|
|
|
LIBS += $(DEPTH)/widget/src/xremoteclient/$(LIB_PREFIX)xremote_client_s.$(LIB_SUFFIX)
|
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/widget/src/xremoteclient
|
|
|
|
endif
|
2003-01-16 19:25:47 +00:00
|
|
|
|
|
|
|
ifndef BUILD_STATIC_LIBS
|
|
|
|
|
2003-01-15 20:40:06 +00:00
|
|
|
ifdef NS_TRACE_MALLOC
|
|
|
|
EXTRA_DSO_LIBS += tracemalloc
|
|
|
|
endif
|
|
|
|
|
2003-06-09 22:25:25 +00:00
|
|
|
ifdef MOZ_COMPONENTLIB
|
|
|
|
EXTRA_DSO_LIBS += $(MOZ_COMPONENTLIB_EXTRA_DSO_LIBS)
|
|
|
|
LIBS += $(MOZ_COMPONENTLIB_EXTRA_LIBS)
|
|
|
|
endif
|
|
|
|
|
2002-02-19 10:01:05 +00:00
|
|
|
else
|
|
|
|
include $(topsrcdir)/config/static-config.mk
|
2001-11-13 01:48:29 +00:00
|
|
|
|
2002-02-19 10:01:05 +00:00
|
|
|
EXTRA_DEPS += \
|
|
|
|
$(STATIC_EXTRA_DEPS) \
|
|
|
|
$(NULL)
|
|
|
|
DEFINES += $(STATIC_DEFINES)
|
|
|
|
CPPSRCS += $(STATIC_CPPSRCS)
|
|
|
|
EXTRA_DSO_LIBS += $(STATIC_EXTRA_DSO_LIBS)
|
|
|
|
REQUIRES += $(STATIC_REQUIRES)
|
2004-04-10 22:54:43 +00:00
|
|
|
EXTRA_LIBS += $(STATIC_EXTRA_LIBS)
|
2001-11-15 08:23:53 +00:00
|
|
|
|
2001-06-20 20:21:49 +00:00
|
|
|
endif
|
|
|
|
|
2003-01-16 19:25:47 +00:00
|
|
|
# If you change anything that mozilla links to, please talk to dougt@netscape.com
|
2003-01-17 03:08:36 +00:00
|
|
|
ifdef GRE_BUILD
|
|
|
|
LIBS += \
|
2003-01-16 19:25:47 +00:00
|
|
|
$(DIST)/lib/$(LIB_PREFIX)xpcomglue.$(LIB_SUFFIX) \
|
1999-08-24 12:37:15 +00:00
|
|
|
$(NULL)
|
2003-01-17 03:08:36 +00:00
|
|
|
else
|
|
|
|
LIBS += $(XPCOM_LIBS)
|
|
|
|
endif
|
1999-08-24 12:37:15 +00:00
|
|
|
|
2003-01-17 06:11:55 +00:00
|
|
|
LIBS += \
|
2003-02-28 23:37:37 +00:00
|
|
|
$(MOZ_JS_LIBS) \
|
2003-01-17 06:11:55 +00:00
|
|
|
$(NSPR_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
|
2000-01-18 03:05:10 +00:00
|
|
|
ifdef MOZ_JPROF
|
2003-01-16 19:25:47 +00:00
|
|
|
LIBS += -ljprof
|
2000-01-18 03:05:10 +00:00
|
|
|
endif
|
|
|
|
|
1999-10-14 23:27:45 +00:00
|
|
|
ifdef GC_LEAK_DETECTOR
|
|
|
|
LIBS += -lboehm
|
|
|
|
endif
|
|
|
|
|
2000-12-08 15:33:19 +00:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),beos)
|
|
|
|
BEOS_PROGRAM_RESOURCE = $(srcdir)/apprunner-beos.rsrc
|
2001-07-25 02:22:54 +00:00
|
|
|
CPPSRCS += nsNativeAppSupportBeOS.cpp
|
|
|
|
CPPSRCS += nsNativeAppSupportBase.cpp
|
2000-12-08 15:33:19 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),photon)
|
|
|
|
CPPSRCS += nsNativeAppSupportPh.cpp
|
2002-04-06 07:13:16 +00:00
|
|
|
LIBS += -lphexlib -lph
|
2000-12-08 15:33:19 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
|
2003-07-13 22:29:00 +00:00
|
|
|
REQUIRES += xpconnect intl profile
|
2000-12-08 15:33:19 +00:00
|
|
|
CPPSRCS += nsNativeAppSupportOS2.cpp
|
|
|
|
CPPSRCS += nsNativeAppSupportBase.cpp
|
2002-03-21 13:45:32 +00:00
|
|
|
RESFILE = splashos2.res
|
2000-12-08 15:33:19 +00:00
|
|
|
endif
|
|
|
|
|
2002-11-06 15:35:57 +00:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),mac)
|
2002-11-19 05:16:50 +00:00
|
|
|
CPPSRCS += nsNativeAppSupportMac.cpp
|
|
|
|
CPPSRCS += nsNativeAppSupportBase.cpp
|
2002-11-06 15:35:57 +00:00
|
|
|
LIBS += $(TK_LIBS)
|
|
|
|
endif
|
|
|
|
|
2001-12-18 05:00:33 +00:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk)
|
2002-01-08 06:39:47 +00:00
|
|
|
SPLASH_XPM = $(srcdir)/splash.xpm
|
2001-12-17 21:58:15 +00:00
|
|
|
CPPSRCS += nsNativeAppSupportGtk.cpp \
|
|
|
|
nsNativeAppSupportBase.cpp
|
2002-01-08 06:39:47 +00:00
|
|
|
DEFINES += -DSPLASH_XPM=\"$(SPLASH_XPM)\"
|
2001-05-17 18:35:38 +00:00
|
|
|
LIBS += $(MOZ_GTK_LDFLAGS)
|
2001-12-18 05:00:33 +00:00
|
|
|
endif
|
2000-12-08 15:33:19 +00:00
|
|
|
|
2003-02-17 02:15:28 +00:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)
|
|
|
|
SPLASH_XPM = $(srcdir)/splash.xpm
|
|
|
|
CPPSRCS += nsNativeAppSupportGtk.cpp \
|
|
|
|
nsNativeAppSupportBase.cpp
|
|
|
|
DEFINES += -DSPLASH_XPM=\"$(SPLASH_XPM)\"
|
|
|
|
LIBS += $(MOZ_GTK2_LIBS)
|
|
|
|
endif
|
|
|
|
|
2004-12-21 17:16:21 +00:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),qt)
|
|
|
|
LIBS += $(MOZ_QT_LDFLAGS)
|
|
|
|
endif
|
|
|
|
|
2004-03-09 17:59:51 +00:00
|
|
|
# Add explicit X11 dependency when building against X11 toolkits
|
2004-10-11 04:01:49 +00:00
|
|
|
ifneq (,$(filter gtk gtk2 qt xlib,$(MOZ_WIDGET_TOOLKIT)))
|
2004-03-09 17:59:51 +00:00
|
|
|
LIBS += $(XLDFLAGS) $(XLIBS)
|
2004-03-06 09:05:25 +00:00
|
|
|
endif
|
|
|
|
|
2001-12-18 09:14:29 +00:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
2003-07-13 22:29:00 +00:00
|
|
|
REQUIRES += xpconnect intl appcomps
|
2004-02-15 23:51:58 +00:00
|
|
|
ifdef MOZ_PHOENIX
|
|
|
|
REQUIRES += winhooks
|
|
|
|
endif
|
|
|
|
|
2002-08-19 22:51:52 +00:00
|
|
|
RCINCLUDE = splash.rc
|
2001-12-18 09:14:29 +00:00
|
|
|
CPPSRCS += nsNativeAppSupportWin.cpp nsNativeAppSupportBase.cpp
|
2003-03-08 05:57:15 +00:00
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,comctl32 comdlg32 uuid shell32 ole32 oleaut32 version winspool gdi32)
|
2001-12-18 09:14:29 +00:00
|
|
|
endif
|
|
|
|
|
2002-08-15 12:34:50 +00:00
|
|
|
ifneq (,$(filter windows os2 gtk gtk2,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
ifneq (,$(filter windows os2,$(MOZ_WIDGET_TOOLKIT)))
|
2002-08-15 00:36:57 +00:00
|
|
|
ICON_SUFFIX=.ico
|
|
|
|
else
|
|
|
|
ICON_SUFFIX=.xpm
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)
|
|
|
|
ICON_DIR=gtk
|
|
|
|
else
|
|
|
|
ICON_DIR=$(MOZ_WIDGET_TOOLKIT)
|
|
|
|
endif
|
|
|
|
|
2004-02-19 19:11:32 +00:00
|
|
|
# Include icons based on widget toolkit; not all platforms need the same set.
|
|
|
|
|
|
|
|
# All-platform icons
|
2002-07-21 23:04:48 +00:00
|
|
|
DESKTOP_ICONS = \
|
2002-08-15 00:36:57 +00:00
|
|
|
abcardWindow \
|
|
|
|
addressbookWindow \
|
|
|
|
bmPropsWindow \
|
|
|
|
bookmark-window \
|
|
|
|
calendar-window \
|
|
|
|
chatzilla-window \
|
|
|
|
downloadManager \
|
|
|
|
editorWindow \
|
|
|
|
findBookmarkWindow \
|
|
|
|
findHistoryWindow \
|
|
|
|
history-window \
|
|
|
|
jsconsoleWindow \
|
|
|
|
main-window \
|
|
|
|
messengerWindow \
|
|
|
|
msgcomposeWindow \
|
|
|
|
venkman-window \
|
|
|
|
winInspectorMain \
|
2002-07-21 23:04:48 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2004-02-19 19:11:32 +00:00
|
|
|
ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
# Windows icons
|
|
|
|
DESKTOP_ICONS += \
|
|
|
|
gif-file \
|
|
|
|
html-file \
|
|
|
|
misc-file \
|
|
|
|
image-file \
|
|
|
|
jpeg-file \
|
|
|
|
script-file \
|
|
|
|
xml-file \
|
|
|
|
xul-file \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2002-08-15 00:36:57 +00:00
|
|
|
ifeq ($(ICON_DIR),gtk)
|
|
|
|
DESKTOP_ICONS_SMALL=$(patsubst %,%16,$(DESKTOP_ICONS))
|
|
|
|
endif
|
|
|
|
|
|
|
|
DESKTOP_ICON_FILES = $(addsuffix $(ICON_SUFFIX), $(DESKTOP_ICONS) $(DESKTOP_ICONS_SMALL))
|
|
|
|
|
|
|
|
GARBAGE += $(addprefix $(DIST)/bin/chrome/icons/default/,$(DESKTOP_ICON_FILES))
|
2002-07-21 23:04:48 +00:00
|
|
|
|
2005-02-19 21:02:29 +00:00
|
|
|
all::
|
|
|
|
|
2002-08-15 00:36:57 +00:00
|
|
|
libs:: $(addprefix icons/$(ICON_DIR)/,$(DESKTOP_ICON_FILES))
|
2002-07-21 23:04:48 +00:00
|
|
|
$(INSTALL) $^ $(DIST)/bin/chrome/icons/default
|
2002-08-21 04:09:14 +00:00
|
|
|
|
|
|
|
install:: $(addprefix icons/$(ICON_DIR)/,$(DESKTOP_ICON_FILES))
|
|
|
|
$(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(mozappdir)/chrome/icons/default
|
2002-07-21 23:04:48 +00:00
|
|
|
endif
|
|
|
|
|
2002-01-25 22:01:41 +00:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
2002-01-30 01:23:23 +00:00
|
|
|
CMMSRCS += nsNativeAppSupportForCocoa.mm
|
2003-03-05 08:00:17 +00:00
|
|
|
LIBS += -framework Cocoa $(TK_LIBS)
|
2002-01-25 22:01:41 +00:00
|
|
|
endif
|
|
|
|
|
2001-07-01 12:11:13 +00:00
|
|
|
ifeq ($(OS_ARCH),OS2)
|
|
|
|
ifdef BUILD_STATIC_LIBS
|
|
|
|
EXE_DEF_FILE = mozilla.def
|
2005-03-28 16:39:24 +00:00
|
|
|
RCFLAGS += -DMOZ_STATIC_BUILD -i $(DIST)/include/widget
|
2002-11-14 19:38:21 +00:00
|
|
|
endif
|
2001-07-01 12:11:13 +00:00
|
|
|
endif
|
2001-06-20 20:21:49 +00:00
|
|
|
|
2003-01-16 19:25:47 +00:00
|
|
|
SRCS_IN_OBJDIR=1
|
|
|
|
|
2003-01-20 13:47:49 +00:00
|
|
|
ifneq (,$(filter-out OS2 WINNT,$(OS_ARCH)))
|
2003-01-16 19:25:47 +00:00
|
|
|
GARBAGE += $(STACKWALK_SRC_LCSRCS) $(wildcard *.$(OBJ_SUFFIX))
|
|
|
|
endif
|
|
|
|
|
2000-12-08 15:33:19 +00:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2003-01-20 13:47:49 +00:00
|
|
|
ifneq (,$(filter-out OS2 WINNT,$(OS_ARCH)))
|
2003-01-16 19:25:47 +00:00
|
|
|
export:: $(STACKWALK_CPPSRCS)
|
|
|
|
$(INSTALL) $^ .
|
|
|
|
endif
|
|
|
|
|
2002-02-19 10:01:05 +00:00
|
|
|
ifdef BUILD_STATIC_LIBS
|
|
|
|
include $(topsrcdir)/config/static-rules.mk
|
|
|
|
endif
|
|
|
|
|
2002-01-08 06:39:47 +00:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk)
|
|
|
|
$(PROGRAM): $(SPLASH_XPM)
|
|
|
|
endif
|
|
|
|
|
2003-03-04 04:06:33 +00:00
|
|
|
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
2002-03-27 03:15:58 +00:00
|
|
|
ifdef BUILD_STATIC_LIBS
|
2003-10-31 20:07:44 +00:00
|
|
|
LIBS += -framework QuickTime -framework IOKit
|
2002-03-27 03:15:58 +00:00
|
|
|
endif
|
|
|
|
|
2001-10-27 07:38:18 +00:00
|
|
|
endif
|
|
|
|
|
2002-04-02 22:20:57 +00:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
#
|
|
|
|
# Control the default heap size.
|
|
|
|
# This is the heap returned by GetProcessHeap().
|
|
|
|
# As we use the CRT heap, the default size is too large and wastes VM.
|
|
|
|
#
|
|
|
|
# The default heap size is 1MB on Win32.
|
|
|
|
# The heap will grow if need be.
|
|
|
|
#
|
|
|
|
# Set it to 256k. See bug 127069.
|
|
|
|
#
|
2003-03-08 05:57:15 +00:00
|
|
|
ifndef GNU_CC
|
2002-04-02 22:20:57 +00:00
|
|
|
LDFLAGS += /HEAP:0x40000
|
|
|
|
endif
|
2003-03-08 05:57:15 +00:00
|
|
|
endif
|
2002-04-02 22:20:57 +00:00
|
|
|
|
1999-07-07 04:38:18 +00:00
|
|
|
CXXFLAGS += $(MOZ_TOOLKIT_REGISTRY_CFLAGS)
|
1999-04-01 08:01:07 +00:00
|
|
|
|
2005-04-04 19:08:55 +00:00
|
|
|
LOCAL_INCLUDES += -I$(srcdir) -I.
|
2002-01-08 06:39:47 +00:00
|
|
|
|
2001-12-06 22:17:24 +00:00
|
|
|
ifneq (,$(filter-out OS2 WINNT,$(OS_ARCH)))
|
2004-02-25 03:27:11 +00:00
|
|
|
$(MOZ_APP_NAME).1: mozilla.man.in Makefile.in Makefile $(DEPTH)/config/autoconf.mk
|
2005-04-03 00:07:04 +00:00
|
|
|
@sed -e "s|\@bindir\@|$(bindir)|g" -e "s|\@mozappdir\@|$(mozappdir)|g" \
|
|
|
|
-e "s|\@MOZ_APP_DISPLAYNAME\@|$(MOZ_APP_DISPLAYNAME)|g" \
|
|
|
|
-e "s|\@MOZ_APP_NAME\@|$(MOZ_APP_NAME)|g" \
|
|
|
|
-e "s|\@MOZ_APP_VERSION\@|${MOZ_APP_VERSION}|g" < $< > $@
|
2001-12-06 22:17:24 +00:00
|
|
|
|
2004-02-25 03:27:11 +00:00
|
|
|
libs:: $(MOZ_APP_NAME).1
|
2002-04-25 02:52:44 +00:00
|
|
|
$(INSTALL) $< $(DIST)/man/man1
|
2001-12-06 22:17:24 +00:00
|
|
|
|
2004-02-25 03:27:11 +00:00
|
|
|
install:: $(MOZ_APP_NAME).1
|
2002-08-21 04:09:14 +00:00
|
|
|
$(SYSINSTALL) $(IFLAGS1) $< $(DESTDIR)$(mandir)/man1
|
2002-04-25 02:52:44 +00:00
|
|
|
|
2005-03-29 22:02:23 +00:00
|
|
|
MOZILLA_SCRIPT=$(MOZ_APP_NAME)
|
2002-08-07 09:26:30 +00:00
|
|
|
|
|
|
|
$(MOZILLA_SCRIPT):: mozilla.in Makefile.in Makefile $(DEPTH)/config/autoconf.mk
|
2002-04-25 02:52:44 +00:00
|
|
|
cat $< | sed -e "s|%MOZAPPDIR%|$(mozappdir)|" \
|
2004-02-04 00:25:14 +00:00
|
|
|
-e "s|%MOZ_USER_DIR%|.mozilla|" \
|
2002-08-09 01:07:06 +00:00
|
|
|
-e "s|%MREDIR%|$(mredir)|" \
|
2005-03-29 22:02:23 +00:00
|
|
|
-e "s|%MOZ_APP_DISPLAYNAME%|$(MOZ_APP_DISPLAYNAME)|" \
|
2004-02-04 00:25:14 +00:00
|
|
|
-e "s|%MOZILLA-BIN%|$(PROGRAM)|g" > $@
|
2002-04-25 02:52:44 +00:00
|
|
|
chmod +x $@
|
|
|
|
|
2002-08-07 09:26:30 +00:00
|
|
|
libs:: $(MOZILLA_SCRIPT)
|
1999-05-19 01:08:52 +00:00
|
|
|
$(INSTALL) $< $(DIST)/bin
|
2002-04-25 02:52:44 +00:00
|
|
|
|
2002-08-07 09:26:30 +00:00
|
|
|
install:: $(MOZILLA_SCRIPT)
|
2002-08-21 04:09:14 +00:00
|
|
|
$(SYSINSTALL) $(IFLAGS2) $< $(DESTDIR)$(bindir)
|
2002-04-25 02:52:44 +00:00
|
|
|
|
2004-02-25 03:27:11 +00:00
|
|
|
GARBAGE += $(MOZ_APP_NAME).1 $(MOZILLA_SCRIPT)
|
2002-04-25 02:52:44 +00:00
|
|
|
|
2000-10-31 21:49:38 +00:00
|
|
|
endif
|
1999-09-18 03:45:06 +00:00
|
|
|
|
2000-02-11 14:37:43 +00:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),photon)
|
2001-11-21 08:55:59 +00:00
|
|
|
libs:: $(srcdir)/splash.bmp
|
2000-02-11 14:37:43 +00:00
|
|
|
$(INSTALL) $< $(DIST)/bin
|
|
|
|
endif
|
2000-02-13 15:23:28 +00:00
|
|
|
|
2001-07-01 12:11:13 +00:00
|
|
|
ifeq ($(OS_ARCH),OS2)
|
2003-03-21 22:13:43 +00:00
|
|
|
LDFLAGS += -Zlinker /NOE
|
2001-07-01 12:11:13 +00:00
|
|
|
ifdef BUILD_STATIC_LIBS
|
|
|
|
$(EXE_DEF_FILE):
|
|
|
|
rm -f $@
|
|
|
|
@echo NAME mozilla >$(EXE_DEF_FILE)
|
|
|
|
@echo IMPORTS >>$(EXE_DEF_FILE)
|
|
|
|
@echo WinQueryProperty = PMMERGE.5450 >>$(EXE_DEF_FILE)
|
|
|
|
@echo WinRemoveProperty = PMMERGE.5451 >>$(EXE_DEF_FILE)
|
|
|
|
@echo WinSetProperty = PMMERGE.5452 >>$(EXE_DEF_FILE)
|
2003-01-15 20:40:06 +00:00
|
|
|
|
2001-07-01 12:11:13 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2001-06-20 20:21:49 +00:00
|
|
|
ifeq ($(MOZ_REORDER),1)
|
|
|
|
|
|
|
|
LDSCRIPT = ldscript
|
|
|
|
LDFLAGS += -Wl,-T,$(LDSCRIPT)
|
|
|
|
GARBAGE += $(LDSCRIPT)
|
2001-08-17 02:03:34 +00:00
|
|
|
ORDERFILE = $(srcdir)/mozilla-bin.order
|
2001-06-20 20:21:49 +00:00
|
|
|
|
|
|
|
$(PROGRAM) : $(LDSCRIPT) $(ORDERFILE)
|
|
|
|
|
|
|
|
$(LDSCRIPT): $(ORDERFILE)
|
2001-08-10 21:01:19 +00:00
|
|
|
$(PERL) $(topsrcdir)/config/mklinkscript.pl -o $@ $<
|
2001-06-20 20:21:49 +00:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
2002-11-22 15:26:38 +00:00
|
|
|
libs::
|
|
|
|
touch $(DIST)/bin/.autoreg
|
|
|
|
|
2002-01-24 15:11:18 +00:00
|
|
|
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
2001-11-14 01:45:03 +00:00
|
|
|
|
2002-11-19 05:16:50 +00:00
|
|
|
INCLUDES += -I$(srcdir)/../appshell/src -I$(srcdir)/appleevents
|
|
|
|
|
2001-11-14 01:45:03 +00:00
|
|
|
ifdef MOZ_DEBUG
|
2005-03-29 22:02:23 +00:00
|
|
|
APP_NAME = $(MOZ_APP_DISPLAYNAME)Debug
|
2001-11-14 01:45:03 +00:00
|
|
|
else
|
2005-03-29 22:02:23 +00:00
|
|
|
APP_NAME = $(MOZ_APP_DISPLAYNAME)
|
2001-11-14 01:45:03 +00:00
|
|
|
endif
|
|
|
|
|
2001-11-21 08:55:59 +00:00
|
|
|
libs:: $(PROGRAM)
|
2002-11-22 15:26:38 +00:00
|
|
|
mkdir -p $(DIST)/$(APP_NAME).app/Contents/MacOS
|
2005-02-19 21:02:29 +00:00
|
|
|
rsync -a --exclude CVS --exclude "*.in" $(srcdir)/macbuild/Contents $(DIST)/$(APP_NAME).app
|
2005-03-29 22:02:23 +00:00
|
|
|
sed -e "s/MOZ_APP_NAME/$(MOZ_APP_NAME)/" -e "s/MOZ_APP_DISPLAYNAME/$(MOZ_APP_DISPLAYNAME)/" -e "s/MOZ_APP_VERSION/$(MOZ_APP_VERSION)/" $(srcdir)/macbuild/Contents/Info.plist.in > $(DIST)/$(APP_NAME).app/Contents/Info.plist
|
2003-02-23 15:54:21 +00:00
|
|
|
rsync -a $(DIST)/bin/ $(DIST)/$(APP_NAME).app/Contents/MacOS
|
|
|
|
rm -f $(DIST)/$(APP_NAME).app/Contents/MacOS/$(PROGRAM)
|
|
|
|
rsync -aL $(PROGRAM) $(DIST)/$(APP_NAME).app/Contents/MacOS
|
2003-04-03 19:20:27 +00:00
|
|
|
mkdir -p $(DIST)/$(APP_NAME).app/Contents/Plug-Ins
|
2005-06-13 19:54:10 +00:00
|
|
|
# Bug 297227: the next line only exists to repair broken depend builds, it can
|
|
|
|
# go away once that bug has been closed for a while.
|
|
|
|
rm -rf $(DIST)/$(APP_NAME).app/Contents/Plug-Ins/PrintPDE.plugin
|
|
|
|
rsync -a --copy-unsafe-links $(DIST)/package/PrintPDE.plugin $(DIST)/$(APP_NAME).app/Contents/Plug-Ins
|
2003-04-18 20:54:06 +00:00
|
|
|
cp -RL $(DIST)/package/mozillaSuite.rsrc $(DIST)/$(APP_NAME).app/Contents/Resources/$(PROGRAM).rsrc
|
2002-12-07 01:10:44 +00:00
|
|
|
echo -n APPLMOZZ > $(DIST)/$(APP_NAME).app/Contents/PkgInfo
|
2003-04-18 20:54:06 +00:00
|
|
|
|
2002-11-22 15:26:38 +00:00
|
|
|
clean clobber::
|
|
|
|
rm -rf $(DIST)/$(APP_NAME).app
|
2001-10-27 07:38:18 +00:00
|
|
|
endif
|
|
|
|
|
2002-01-08 06:39:47 +00:00
|
|
|
echo_objs:
|
|
|
|
@echo $(OBJS)
|
2002-10-24 05:14:50 +00:00
|
|
|
|
2005-01-05 15:40:59 +00:00
|
|
|
ifeq ($(OS_ARCH),OS2)
|
|
|
|
README_FILE = $(topsrcdir)/README/mozilla/README.os2
|
|
|
|
else
|
2002-10-24 05:14:50 +00:00
|
|
|
README_FILE = $(topsrcdir)/README.txt
|
2005-01-05 15:40:59 +00:00
|
|
|
endif
|
2002-10-24 05:14:50 +00:00
|
|
|
|
|
|
|
libs::
|
2005-07-27 23:45:06 +00:00
|
|
|
ifndef MOZ_SUITE
|
2005-03-07 18:56:48 +00:00
|
|
|
ifeq ($(OS_ARCH),OS2)
|
|
|
|
cp $(README_FILE) $(DIST)/bin/README.txt
|
|
|
|
else
|
2002-10-24 05:14:50 +00:00
|
|
|
$(INSTALL) $(README_FILE) $(DIST)/bin
|
2005-07-27 23:45:06 +00:00
|
|
|
endif
|
2005-03-07 18:56:48 +00:00
|
|
|
endif
|
2002-10-24 05:14:50 +00:00
|
|
|
$(INSTALL) $(topsrcdir)/LICENSE $(DIST)/bin
|
2003-01-16 19:25:47 +00:00
|
|
|
|