2001-03-02 00:10:10 +00:00
|
|
|
#
|
2004-04-17 14:37:35 +00:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
2001-03-02 00:10:10 +00:00
|
|
|
#
|
2004-04-17 14:37:35 +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/
|
2001-03-02 00:10:10 +00:00
|
|
|
#
|
2004-04-17 14:37:35 +00: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.
|
2001-03-02 00:10:10 +00:00
|
|
|
#
|
2004-04-17 14:37:35 +00:00
|
|
|
# The Original Code is Mozilla Communicator client code, released
|
|
|
|
# March 31, 1998.
|
|
|
|
#
|
|
|
|
# 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.
|
2001-03-02 00:10:10 +00:00
|
|
|
#
|
|
|
|
# Contributor(s):
|
2004-04-17 14:37:35 +00:00
|
|
|
# Samir Gehani <sgehani@netscape.com>
|
|
|
|
#
|
|
|
|
# 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.
|
2001-03-02 00:10:10 +00:00
|
|
|
#
|
2004-04-17 14:37:35 +00:00
|
|
|
# ***** END LICENSE BLOCK *****
|
2001-03-02 00:10:10 +00:00
|
|
|
|
|
|
|
DEPTH = ../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2001-09-09 07:43:48 +00:00
|
|
|
MODULE = xpinstall
|
2001-05-02 00:36:54 +00:00
|
|
|
PROGRAM = xpicleanup$(BIN_SUFFIX)
|
2002-12-28 01:15:07 +00:00
|
|
|
GRE_MODULE = 1
|
2001-09-18 13:41:47 +00:00
|
|
|
REQUIRES = libreg \
|
|
|
|
$(NULL)
|
2001-03-02 00:10:10 +00:00
|
|
|
|
|
|
|
CPPSRCS = \
|
|
|
|
InstallCleanup.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
2001-05-17 05:36:27 +00:00
|
|
|
EXPORTS = InstallCleanupDefines.h \
|
|
|
|
$(NULL)
|
|
|
|
|
2001-04-08 20:26:53 +00:00
|
|
|
ifeq ($(OS_ARCH),OS2)
|
|
|
|
CPPSRCS += InstallCleanupOS2.cpp
|
|
|
|
else
|
2001-12-18 09:14:29 +00:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
CPPSRCS += InstallCleanupWin.cpp
|
|
|
|
MOZ_WINCONSOLE = 0
|
2004-11-23 19:34:02 +00:00
|
|
|
USE_STATIC_LIBS = 1
|
2001-12-18 09:14:29 +00:00
|
|
|
else
|
2001-04-08 20:26:53 +00:00
|
|
|
CPPSRCS += InstallCleanupUnix.cpp
|
|
|
|
endif
|
2001-12-18 09:14:29 +00:00
|
|
|
endif
|
|
|
|
|
2006-02-24 16:28:20 +00:00
|
|
|
LIBS = \
|
|
|
|
$(DEPTH)/modules/libreg/standalone/$(LIB_PREFIX)mozregsa_s.$(LIB_SUFFIX) \
|
2001-03-02 00:10:10 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
DEFINES += -DSTANDALONE_REGISTRY
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2002-01-24 15:11:18 +00:00
|
|
|
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
2006-05-03 22:19:54 +00:00
|
|
|
LIBS += $(DEPTH)/xpcom/MoreFiles/$(LIB_PREFIX)macmorefiles_s.$(LIB_SUFFIX)
|
2001-11-01 00:54:48 +00:00
|
|
|
LDFLAGS += $(TK_LIBS)
|
|
|
|
endif
|
|
|
|
|
2001-12-18 09:14:29 +00:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
2003-03-08 05:57:15 +00:00
|
|
|
ifndef GNU_CC
|
2001-12-18 09:14:29 +00:00
|
|
|
LDFLAGS += /SUBSYSTEM:WINDOWS
|
|
|
|
endif
|
2003-03-08 05:57:15 +00:00
|
|
|
endif
|
2001-11-01 00:54:48 +00:00
|
|
|
|
2001-12-18 09:14:29 +00:00
|
|
|
libs::
|
|
|
|
$(INSTALL) $(srcdir)/cmessage.txt $(DIST)/bin/res
|
2002-04-25 02:52:44 +00:00
|
|
|
|
|
|
|
install::
|
|
|
|
$(SYSINSTALL) $(IFLAGS1) $(srcdir)/cmessage.txt $(DESTDIR)$(mozappdir)/res
|
|
|
|
|