2001-03-02 00:10:10 +00: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/
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
# 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 Netscape are
|
|
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
# Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
|
|
|
# Samir Gehani <sgehani@netscape.com>
|
|
|
|
#
|
|
|
|
|
|
|
|
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
|
|
|
|
USE_NON_MT_LIBS = 1
|
|
|
|
else
|
2001-04-08 20:26:53 +00:00
|
|
|
CPPSRCS += InstallCleanupUnix.cpp
|
|
|
|
endif
|
2001-12-18 09:14:29 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
EXTRA_DSO_LIBS = mozregsa_s
|
2001-04-08 20:26:53 +00:00
|
|
|
|
2001-03-02 00:10:10 +00:00
|
|
|
LIBS = \
|
2001-12-18 09:14:29 +00:00
|
|
|
$(EXTRA_DSO_LIBS) \
|
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)))
|
2001-11-01 00:54:48 +00:00
|
|
|
LIBS += -lmacmorefiles_s
|
|
|
|
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
|
|
|
|
|