1998-12-09 01:43:20 +03:00
|
|
|
#
|
1999-11-06 06:43:54 +03:00
|
|
|
# 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/
|
1998-12-09 01:43:20 +03:00
|
|
|
#
|
1999-11-06 06:43:54 +03:00
|
|
|
# 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-09 01:43:20 +03:00
|
|
|
#
|
1999-11-06 06:43:54 +03:00
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is Netscape
|
1998-12-09 01:43:20 +03:00
|
|
|
# Communications Corporation. Portions created by Netscape are
|
1999-11-06 06:43:54 +03:00
|
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
# Rights Reserved.
|
|
|
|
#
|
2004-02-19 22:11:32 +03:00
|
|
|
# Contributor(s): Jeremy Morton (jez9999@runbox.com)
|
1999-05-19 05:08:52 +04:00
|
|
|
#
|
1998-12-09 01:43:20 +03:00
|
|
|
|
1999-05-19 05:08:52 +04:00
|
|
|
DEPTH = ../..
|
1998-12-09 01:43:20 +03:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
1999-07-28 03:27:44 +04:00
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2004-02-10 21:21:24 +03:00
|
|
|
DIRS = init.d
|
|
|
|
|
2002-09-02 06:22:10 +04: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 07:09:29 +03:00
|
|
|
|
2003-01-25 05:18:29 +03:00
|
|
|
ifeq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
2003-01-17 06:08:36 +03:00
|
|
|
ifndef BUILD_STATIC_LIBS
|
2003-01-21 09:33:50 +03:00
|
|
|
ifndef MOZ_TIMELINE
|
2003-01-17 06:08:36 +03:00
|
|
|
GRE_BUILD = 1;
|
|
|
|
endif
|
|
|
|
endif
|
2003-01-21 09:33:50 +03:00
|
|
|
endif
|
2003-01-17 06:08:36 +03:00
|
|
|
|
|
|
|
ifdef GRE_BUILD
|
2003-01-16 22:25:47 +03:00
|
|
|
DEFINES += -DXPCOM_GLUE
|
2003-01-17 06:08:36 +03:00
|
|
|
endif
|
2003-01-16 22:25:47 +03:00
|
|
|
|
1999-05-19 05:08:52 +04:00
|
|
|
MODULE = apprunner
|
2001-09-18 17:41:47 +04:00
|
|
|
REQUIRES = xpcom \
|
|
|
|
string \
|
|
|
|
webbrwsr \
|
|
|
|
widget \
|
|
|
|
dom \
|
|
|
|
necko \
|
2003-12-22 08:23:10 +03:00
|
|
|
content \
|
2001-09-18 17:41:47 +04:00
|
|
|
pref \
|
|
|
|
appshell \
|
|
|
|
gfx \
|
|
|
|
xpinstall \
|
|
|
|
uriloader \
|
|
|
|
windowwatcher \
|
|
|
|
embed_base \
|
|
|
|
embedcomponents \
|
|
|
|
docshell \
|
2002-04-01 09:56:35 +04:00
|
|
|
locale \
|
2002-04-26 05:37:04 +04:00
|
|
|
profile \
|
2001-09-18 17:41:47 +04:00
|
|
|
$(NULL)
|
2001-08-15 08:34:46 +04:00
|
|
|
# for jprof
|
|
|
|
REQUIRES += jprof
|
2000-05-04 15:00:47 +04:00
|
|
|
|
2003-01-15 23:40:06 +03:00
|
|
|
ifdef NS_TRACE_MALLOC
|
|
|
|
REQUIRES += tracemalloc
|
|
|
|
endif
|
|
|
|
|
2003-07-14 02:29:00 +04:00
|
|
|
ifdef MOZ_ENABLE_XREMOTE
|
|
|
|
REQUIRES += xremoteservice
|
|
|
|
endif
|
|
|
|
|
2002-09-14 01:15:59 +04:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
|
2000-05-04 15:00:47 +04:00
|
|
|
ifeq ($(USE_SHORT_LIBNAME),1)
|
|
|
|
PROGRAM = mozilla$(BIN_SUFFIX)
|
|
|
|
else
|
2001-12-18 12:14:29 +03:00
|
|
|
PROGRAM = mozilla-bin$(BIN_SUFFIX)
|
2000-05-04 15:00:47 +04:00
|
|
|
endif
|
2000-09-02 04:12:07 +04:00
|
|
|
|
2003-04-17 23:19:42 +04:00
|
|
|
# Force applications to be built non-statically
|
|
|
|
# when building the mozcomps meta component
|
|
|
|
ifneq (,$(filter mozcomps,$(MOZ_META_COMPONENTS)))
|
|
|
|
BUILD_STATIC_LIBS=
|
|
|
|
BUILD_SHARED_LIBS=1
|
2003-06-10 02:25:25 +04:00
|
|
|
ifdef MOZ_COMPONENTLIB
|
|
|
|
DEFINES += -D_MOZCOMPS_SHARED_LIBRARY -D_BUILD_STATIC_BIN
|
|
|
|
endif
|
2003-04-17 23:19:42 +04:00
|
|
|
endif
|
|
|
|
|
2004-01-17 00:54:44 +03:00
|
|
|
PREF_JS_EXPORTS = $(srcdir)/browser-prefs.js
|
|
|
|
|
1999-07-28 03:27:44 +04:00
|
|
|
CPPSRCS = \
|
|
|
|
nsAppRunner.cpp \
|
2001-02-26 03:30:58 +03:00
|
|
|
nsWindowCreator.cpp \
|
2001-12-15 02:49:04 +03:00
|
|
|
showOSAlert.cpp \
|
1999-07-28 03:27:44 +04:00
|
|
|
$(NULL)
|
1999-06-26 11:42:19 +04:00
|
|
|
|
2002-01-01 03:03:57 +03:00
|
|
|
|
2003-01-20 16:47:49 +03:00
|
|
|
ifneq (,$(filter-out OS2 WINNT,$(OS_ARCH)))
|
2003-01-16 22:25:47 +03:00
|
|
|
STACKWALK_SRC_LCSRCS = \
|
|
|
|
nsStackFrameUnix.cpp \
|
|
|
|
nsStackFrameUnix.h \
|
2001-05-18 05:06:02 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2003-01-16 22:25:47 +03:00
|
|
|
STACKWALK_CPPSRCS := $(addprefix $(topsrcdir)/xpcom/base/, $(STACKWALK_SRC_LCSRCS))
|
2001-06-21 00:21:49 +04:00
|
|
|
|
2003-01-16 22:25:47 +03:00
|
|
|
CPPSRCS += nsSigHandlers.cpp nsStackFrameUnix.cpp
|
2001-05-18 05:06:02 +04:00
|
|
|
endif
|
|
|
|
|
2003-06-19 04:01:48 +04:00
|
|
|
ifdef BUILD_STATIC_LIBS
|
|
|
|
STATIC_COMPONENTS_LINKER_PATH = -L$(DIST)/lib/components
|
|
|
|
endif
|
|
|
|
|
|
|
|
LIBS = \
|
|
|
|
$(STATIC_COMPONENTS_LINKER_PATH) \
|
|
|
|
$(EXTRA_DSO_LIBS) \
|
|
|
|
$(NULL)
|
2003-01-16 22:25:47 +03:00
|
|
|
|
|
|
|
|
|
|
|
ifndef BUILD_STATIC_LIBS
|
|
|
|
|
2003-01-15 23:40:06 +03:00
|
|
|
ifdef NS_TRACE_MALLOC
|
|
|
|
EXTRA_DSO_LIBS += tracemalloc
|
|
|
|
endif
|
|
|
|
|
2003-06-10 02:25:25 +04:00
|
|
|
ifdef MOZ_COMPONENTLIB
|
|
|
|
EXTRA_DSO_LIBS += $(MOZ_COMPONENTLIB_EXTRA_DSO_LIBS)
|
|
|
|
LIBS += $(MOZ_COMPONENTLIB_EXTRA_LIBS)
|
|
|
|
endif
|
|
|
|
|
2002-02-19 13:01:05 +03:00
|
|
|
else
|
|
|
|
include $(topsrcdir)/config/static-config.mk
|
2001-11-13 04:48:29 +03:00
|
|
|
|
2002-02-19 13:01:05 +03:00
|
|
|
EXTRA_DEPS += \
|
|
|
|
$(STATIC_EXTRA_DEPS) \
|
|
|
|
$(NULL)
|
|
|
|
DEFINES += $(STATIC_DEFINES)
|
|
|
|
CPPSRCS += $(STATIC_CPPSRCS)
|
|
|
|
EXTRA_DSO_LIBS += $(STATIC_EXTRA_DSO_LIBS)
|
|
|
|
REQUIRES += $(STATIC_REQUIRES)
|
2003-01-16 22:25:47 +03:00
|
|
|
LIBS += $(STATIC_EXTRA_LIBS)
|
2001-11-15 11:23:53 +03:00
|
|
|
|
2001-06-21 00:21:49 +04:00
|
|
|
endif
|
|
|
|
|
2003-01-16 22:25:47 +03:00
|
|
|
# If you change anything that mozilla links to, please talk to dougt@netscape.com
|
2003-01-17 06:08:36 +03:00
|
|
|
ifdef GRE_BUILD
|
|
|
|
LIBS += \
|
2003-01-16 22:25:47 +03:00
|
|
|
$(DIST)/lib/$(LIB_PREFIX)string_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)xpcomglue.$(LIB_SUFFIX) \
|
1999-08-24 16:37:15 +04:00
|
|
|
$(NULL)
|
2003-01-17 06:08:36 +03:00
|
|
|
else
|
|
|
|
LIBS += $(XPCOM_LIBS)
|
|
|
|
endif
|
1999-08-24 16:37:15 +04:00
|
|
|
|
2003-01-17 09:11:55 +03:00
|
|
|
LIBS += \
|
2003-03-01 02:37:37 +03:00
|
|
|
$(MOZ_JS_LIBS) \
|
2003-01-17 09:11:55 +03:00
|
|
|
$(NSPR_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
|
2000-01-18 06:05:10 +03:00
|
|
|
ifdef MOZ_JPROF
|
2003-01-16 22:25:47 +03:00
|
|
|
LIBS += -ljprof
|
2000-01-18 06:05:10 +03:00
|
|
|
endif
|
|
|
|
|
1999-10-15 03:27:45 +04:00
|
|
|
ifdef GC_LEAK_DETECTOR
|
|
|
|
LIBS += -lboehm
|
|
|
|
endif
|
|
|
|
|
2000-12-08 18:33:19 +03:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),beos)
|
|
|
|
BEOS_PROGRAM_RESOURCE = $(srcdir)/apprunner-beos.rsrc
|
2001-07-25 06:22:54 +04:00
|
|
|
CPPSRCS += nsNativeAppSupportBeOS.cpp
|
|
|
|
CPPSRCS += nsNativeAppSupportBase.cpp
|
2000-12-08 18:33:19 +03:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),photon)
|
|
|
|
CPPSRCS += nsNativeAppSupportPh.cpp
|
2002-04-06 11:13:16 +04:00
|
|
|
LIBS += -lphexlib -lph
|
2000-12-08 18:33:19 +03:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
|
2003-07-14 02:29:00 +04:00
|
|
|
DIRS += os2turbo
|
|
|
|
REQUIRES += xpconnect intl profile
|
2000-12-08 18:33:19 +03:00
|
|
|
CPPSRCS += nsNativeAppSupportOS2.cpp
|
|
|
|
CPPSRCS += nsNativeAppSupportBase.cpp
|
2002-03-21 16:45:32 +03:00
|
|
|
RESFILE = splashos2.res
|
2000-12-08 18:33:19 +03:00
|
|
|
endif
|
|
|
|
|
2002-11-06 18:35:57 +03:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),mac)
|
2002-11-19 08:16:50 +03:00
|
|
|
CPPSRCS += nsNativeAppSupportMac.cpp
|
|
|
|
CPPSRCS += nsNativeAppSupportBase.cpp
|
2002-11-06 18:35:57 +03:00
|
|
|
LIBS += $(TK_LIBS)
|
|
|
|
endif
|
|
|
|
|
2001-12-18 08:00:33 +03:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk)
|
2002-01-08 09:39:47 +03:00
|
|
|
SPLASH_XPM = $(srcdir)/splash.xpm
|
2001-12-18 00:58:15 +03:00
|
|
|
CPPSRCS += nsNativeAppSupportGtk.cpp \
|
|
|
|
nsNativeAppSupportBase.cpp
|
2002-01-08 09:39:47 +03:00
|
|
|
DEFINES += -DSPLASH_XPM=\"$(SPLASH_XPM)\"
|
2001-05-17 22:35:38 +04:00
|
|
|
LIBS += $(MOZ_GTK_LDFLAGS)
|
2001-12-18 08:00:33 +03:00
|
|
|
endif
|
2000-12-08 18:33:19 +03:00
|
|
|
|
2003-02-17 05:15:28 +03: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-03-09 20:59:51 +03:00
|
|
|
# Add explicit X11 dependency when building against X11 toolkits
|
|
|
|
ifneq (,$(filter gtk gtk2 xlib,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
LIBS += $(XLDFLAGS) $(XLIBS)
|
2004-03-06 12:05:25 +03:00
|
|
|
endif
|
|
|
|
|
2001-12-18 12:14:29 +03:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
2003-07-14 02:29:00 +04:00
|
|
|
REQUIRES += xpconnect intl appcomps
|
2004-02-16 02:51:58 +03:00
|
|
|
ifdef MOZ_PHOENIX
|
|
|
|
REQUIRES += winhooks
|
|
|
|
endif
|
|
|
|
|
2002-08-20 02:51:52 +04:00
|
|
|
RCINCLUDE = splash.rc
|
2001-12-18 12:14:29 +03:00
|
|
|
CPPSRCS += nsNativeAppSupportWin.cpp nsNativeAppSupportBase.cpp
|
2003-03-08 08:57:15 +03:00
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,comctl32 comdlg32 uuid shell32 ole32 oleaut32 version winspool gdi32)
|
2001-12-18 12:14:29 +03:00
|
|
|
endif
|
|
|
|
|
2002-08-15 16:34:50 +04:00
|
|
|
ifneq (,$(filter windows os2 gtk gtk2,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
ifneq (,$(filter windows os2,$(MOZ_WIDGET_TOOLKIT)))
|
2002-08-15 04:36:57 +04: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 22:11:32 +03:00
|
|
|
# Include icons based on widget toolkit; not all platforms need the same set.
|
|
|
|
|
|
|
|
# All-platform icons
|
2002-07-22 03:04:48 +04:00
|
|
|
DESKTOP_ICONS = \
|
2002-08-15 04:36:57 +04: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-22 03:04:48 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2004-02-19 22:11:32 +03: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 04:36:57 +04: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-22 03:04:48 +04:00
|
|
|
|
2002-08-15 04:36:57 +04:00
|
|
|
libs:: $(addprefix icons/$(ICON_DIR)/,$(DESKTOP_ICON_FILES))
|
2002-07-22 03:04:48 +04:00
|
|
|
$(INSTALL) $^ $(DIST)/bin/chrome/icons/default
|
2002-08-21 08:09:14 +04:00
|
|
|
|
|
|
|
install:: $(addprefix icons/$(ICON_DIR)/,$(DESKTOP_ICON_FILES))
|
|
|
|
$(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(mozappdir)/chrome/icons/default
|
2002-07-22 03:04:48 +04:00
|
|
|
endif
|
|
|
|
|
2002-01-26 01:01:41 +03:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
2002-01-30 04:23:23 +03:00
|
|
|
CMMSRCS += nsNativeAppSupportForCocoa.mm
|
2003-03-05 11:00:17 +03:00
|
|
|
LIBS += -framework Cocoa $(TK_LIBS)
|
2002-01-26 01:01:41 +03:00
|
|
|
endif
|
|
|
|
|
2001-07-01 16:11:13 +04:00
|
|
|
ifeq ($(OS_ARCH),OS2)
|
|
|
|
ifdef BUILD_STATIC_LIBS
|
|
|
|
EXE_DEF_FILE = mozilla.def
|
2002-11-14 22:38:21 +03:00
|
|
|
endif
|
2001-07-01 16:11:13 +04:00
|
|
|
endif
|
2001-06-21 00:21:49 +04:00
|
|
|
|
2003-01-16 22:25:47 +03:00
|
|
|
SRCS_IN_OBJDIR=1
|
|
|
|
|
2003-01-20 16:47:49 +03:00
|
|
|
ifneq (,$(filter-out OS2 WINNT,$(OS_ARCH)))
|
2003-01-16 22:25:47 +03:00
|
|
|
GARBAGE += $(STACKWALK_SRC_LCSRCS) $(wildcard *.$(OBJ_SUFFIX))
|
|
|
|
endif
|
|
|
|
|
2000-12-08 18:33:19 +03:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2003-01-20 16:47:49 +03:00
|
|
|
ifneq (,$(filter-out OS2 WINNT,$(OS_ARCH)))
|
2003-01-16 22:25:47 +03:00
|
|
|
export:: $(STACKWALK_CPPSRCS)
|
|
|
|
$(INSTALL) $^ .
|
|
|
|
endif
|
|
|
|
|
2002-02-19 13:01:05 +03:00
|
|
|
ifdef BUILD_STATIC_LIBS
|
|
|
|
include $(topsrcdir)/config/static-rules.mk
|
|
|
|
endif
|
|
|
|
|
2002-01-08 09:39:47 +03:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk)
|
|
|
|
$(PROGRAM): $(SPLASH_XPM)
|
|
|
|
endif
|
|
|
|
|
2003-03-04 07:06:33 +03:00
|
|
|
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
2002-03-27 06:15:58 +03:00
|
|
|
ifdef BUILD_STATIC_LIBS
|
2003-10-31 23:07:44 +03:00
|
|
|
LIBS += -framework QuickTime -framework IOKit
|
2002-03-27 06:15:58 +03:00
|
|
|
endif
|
|
|
|
|
2001-10-27 11:38:18 +04:00
|
|
|
endif
|
|
|
|
|
2002-04-03 02:20:57 +04: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 08:57:15 +03:00
|
|
|
ifndef GNU_CC
|
2002-04-03 02:20:57 +04:00
|
|
|
LDFLAGS += /HEAP:0x40000
|
|
|
|
endif
|
2003-08-02 23:39:02 +04:00
|
|
|
# Get rid of console window
|
|
|
|
ifdef GNU_CC
|
|
|
|
LDFLAGS += -mwindows
|
|
|
|
endif
|
2003-03-08 08:57:15 +03:00
|
|
|
endif
|
2002-04-03 02:20:57 +04:00
|
|
|
|
1999-07-07 08:38:18 +04:00
|
|
|
CXXFLAGS += $(MOZ_TOOLKIT_REGISTRY_CFLAGS)
|
1999-04-01 12:01:07 +04:00
|
|
|
|
2003-01-17 04:31:18 +03:00
|
|
|
LOCAL_INCLUDES = -I$(srcdir) -I.
|
2002-01-08 09:39:47 +03:00
|
|
|
|
2001-12-07 01:17:24 +03:00
|
|
|
ifneq (,$(filter-out OS2 WINNT,$(OS_ARCH)))
|
2004-02-25 06:27:11 +03:00
|
|
|
$(MOZ_APP_NAME).1: mozilla.man.in Makefile.in Makefile $(DEPTH)/config/autoconf.mk
|
2001-12-07 01:17:24 +03:00
|
|
|
@sed -e "s|\@bindir\@|${bindir}|" -e "s|\@libdir\@|${libdir}|" \
|
2004-02-25 06:27:11 +03:00
|
|
|
-e "s|\@mozilla_version\@|${MOZ_APP_VERSION}|" < $< > $@
|
2001-12-07 01:17:24 +03:00
|
|
|
|
2004-02-25 06:27:11 +03:00
|
|
|
libs:: $(MOZ_APP_NAME).1
|
2002-04-25 06:52:44 +04:00
|
|
|
$(INSTALL) $< $(DIST)/man/man1
|
2001-12-07 01:17:24 +03:00
|
|
|
|
2004-02-25 06:27:11 +03:00
|
|
|
install:: $(MOZ_APP_NAME).1
|
2002-08-21 08:09:14 +04:00
|
|
|
$(SYSINSTALL) $(IFLAGS1) $< $(DESTDIR)$(mandir)/man1
|
2002-04-25 06:52:44 +04:00
|
|
|
|
2002-08-07 13:26:30 +04:00
|
|
|
MOZILLA_SCRIPT=mozilla
|
|
|
|
|
|
|
|
$(MOZILLA_SCRIPT):: mozilla.in Makefile.in Makefile $(DEPTH)/config/autoconf.mk
|
2002-04-25 06:52:44 +04:00
|
|
|
cat $< | sed -e "s|%MOZAPPDIR%|$(mozappdir)|" \
|
2004-02-04 03:25:14 +03:00
|
|
|
-e "s|%MOZ_USER_DIR%|.mozilla|" \
|
2002-08-09 05:07:06 +04:00
|
|
|
-e "s|%MREDIR%|$(mredir)|" \
|
2004-02-04 03:25:14 +03:00
|
|
|
-e "s|%MOZILLA-BIN%|$(PROGRAM)|g" > $@
|
2002-04-25 06:52:44 +04:00
|
|
|
chmod +x $@
|
|
|
|
|
2002-08-07 13:26:30 +04:00
|
|
|
libs:: $(MOZILLA_SCRIPT)
|
1999-05-19 05:08:52 +04:00
|
|
|
$(INSTALL) $< $(DIST)/bin
|
2002-04-25 06:52:44 +04:00
|
|
|
|
2002-08-07 13:26:30 +04:00
|
|
|
install:: $(MOZILLA_SCRIPT)
|
2002-08-21 08:09:14 +04:00
|
|
|
$(SYSINSTALL) $(IFLAGS2) $< $(DESTDIR)$(bindir)
|
2002-04-25 06:52:44 +04:00
|
|
|
|
2004-02-25 06:27:11 +03:00
|
|
|
GARBAGE += $(MOZ_APP_NAME).1 $(MOZILLA_SCRIPT)
|
2002-04-25 06:52:44 +04:00
|
|
|
|
2000-11-01 00:49:38 +03:00
|
|
|
endif
|
1999-09-18 07:45:06 +04:00
|
|
|
|
2000-02-11 17:37:43 +03:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),photon)
|
2001-11-21 11:55:59 +03:00
|
|
|
libs:: $(srcdir)/splash.bmp
|
2000-02-11 17:37:43 +03:00
|
|
|
$(INSTALL) $< $(DIST)/bin
|
|
|
|
endif
|
2000-02-13 18:23:28 +03:00
|
|
|
|
2001-07-01 16:11:13 +04:00
|
|
|
ifeq ($(OS_ARCH),OS2)
|
2003-03-22 01:13:43 +03:00
|
|
|
LDFLAGS += -Zlinker /NOE
|
2001-07-01 16:11:13 +04: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 23:40:06 +03:00
|
|
|
|
2001-07-01 16:11:13 +04:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2001-06-21 00:21:49 +04:00
|
|
|
ifeq ($(MOZ_REORDER),1)
|
|
|
|
|
|
|
|
LDSCRIPT = ldscript
|
|
|
|
LDFLAGS += -Wl,-T,$(LDSCRIPT)
|
|
|
|
GARBAGE += $(LDSCRIPT)
|
2001-08-17 06:03:34 +04:00
|
|
|
ORDERFILE = $(srcdir)/mozilla-bin.order
|
2001-06-21 00:21:49 +04:00
|
|
|
|
|
|
|
$(PROGRAM) : $(LDSCRIPT) $(ORDERFILE)
|
|
|
|
|
|
|
|
$(LDSCRIPT): $(ORDERFILE)
|
2001-08-11 01:01:19 +04:00
|
|
|
$(PERL) $(topsrcdir)/config/mklinkscript.pl -o $@ $<
|
2001-06-21 00:21:49 +04:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
2002-11-22 18:26:38 +03:00
|
|
|
libs::
|
|
|
|
touch $(DIST)/bin/.autoreg
|
|
|
|
|
2002-01-24 18:11:18 +03:00
|
|
|
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
2001-11-14 04:45:03 +03:00
|
|
|
|
2002-11-19 08:16:50 +03:00
|
|
|
INCLUDES += -I$(srcdir)/../appshell/src -I$(srcdir)/appleevents
|
|
|
|
|
2001-11-14 04:45:03 +03:00
|
|
|
ifdef MOZ_DEBUG
|
|
|
|
APP_NAME = MozillaDebug
|
|
|
|
else
|
|
|
|
APP_NAME = Mozilla
|
|
|
|
endif
|
|
|
|
|
2001-11-21 11:55:59 +03:00
|
|
|
libs:: $(PROGRAM)
|
2002-11-22 18:26:38 +03:00
|
|
|
mkdir -p $(DIST)/$(APP_NAME).app/Contents/MacOS
|
2003-02-23 18:54:21 +03:00
|
|
|
rsync -a $(srcdir)/macbuild/Contents $(DIST)/$(APP_NAME).app
|
|
|
|
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 23:20:27 +04:00
|
|
|
mkdir -p $(DIST)/$(APP_NAME).app/Contents/Plug-Ins
|
2003-04-19 00:54:06 +04:00
|
|
|
cp -R $(DIST)/package/PrintPDE.plugin $(DIST)/$(APP_NAME).app/Contents/Plug-Ins/
|
|
|
|
cp -RL $(DIST)/package/mozillaSuite.rsrc $(DIST)/$(APP_NAME).app/Contents/Resources/$(PROGRAM).rsrc
|
2002-12-07 04:10:44 +03:00
|
|
|
echo -n APPLMOZZ > $(DIST)/$(APP_NAME).app/Contents/PkgInfo
|
2003-04-19 00:54:06 +04:00
|
|
|
|
2002-11-22 18:26:38 +03:00
|
|
|
clean clobber::
|
|
|
|
rm -rf $(DIST)/$(APP_NAME).app
|
2001-10-27 11:38:18 +04:00
|
|
|
endif
|
|
|
|
|
2002-01-08 09:39:47 +03:00
|
|
|
echo_objs:
|
|
|
|
@echo $(OBJS)
|
2002-10-24 09:14:50 +04:00
|
|
|
|
|
|
|
README_FILE = $(topsrcdir)/README.txt
|
|
|
|
|
|
|
|
libs::
|
|
|
|
$(INSTALL) $(README_FILE) $(DIST)/bin
|
|
|
|
$(INSTALL) $(topsrcdir)/LICENSE $(DIST)/bin
|
2003-01-16 22:25:47 +03:00
|
|
|
|