[18859] | 1 | # |
---|
| 2 | # The contents of this file are subject to the Netscape Public |
---|
| 3 | # License Version 1.1 (the "License"); you may not use this file |
---|
| 4 | # except in compliance with the License. You may obtain a copy of |
---|
| 5 | # the License at http://www.mozilla.org/NPL/ |
---|
| 6 | # |
---|
| 7 | # Software distributed under the License is distributed on an "AS |
---|
| 8 | # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or |
---|
| 9 | # implied. See the License for the specific language governing |
---|
| 10 | # rights and limitations under the License. |
---|
| 11 | # |
---|
| 12 | # The Original Code is Mozilla Communicator client code, |
---|
| 13 | # released March 31, 1998. |
---|
| 14 | # |
---|
| 15 | # The Initial Developer of the Original Code is Netscape Communications |
---|
| 16 | # Corporation. Portions created by Netscape are |
---|
| 17 | # Copyright (C) 1998 Netscape Communications Corporation. All |
---|
| 18 | # Rights Reserved. |
---|
| 19 | # |
---|
| 20 | # Contributor(s): |
---|
| 21 | # Samir Gehani <sgehani@netscape.com> |
---|
| 22 | # |
---|
| 23 | |
---|
| 24 | DEPTH = ../.. |
---|
| 25 | topsrcdir = @top_srcdir@ |
---|
| 26 | srcdir = @srcdir@ |
---|
| 27 | VPATH = @srcdir@ |
---|
| 28 | |
---|
| 29 | include $(DEPTH)/config/autoconf.mk |
---|
| 30 | |
---|
| 31 | MODULE = xpinstall |
---|
| 32 | PROGRAM = xpicleanup$(BIN_SUFFIX) |
---|
[19517] | 33 | GRE_MODULE = 1 |
---|
[18859] | 34 | REQUIRES = libreg \ |
---|
| 35 | $(NULL) |
---|
| 36 | |
---|
| 37 | CPPSRCS = \ |
---|
| 38 | InstallCleanup.cpp \ |
---|
| 39 | $(NULL) |
---|
| 40 | |
---|
| 41 | EXPORTS = InstallCleanupDefines.h \ |
---|
| 42 | $(NULL) |
---|
| 43 | |
---|
| 44 | ifeq ($(OS_ARCH),OS2) |
---|
| 45 | CPPSRCS += InstallCleanupOS2.cpp |
---|
| 46 | else |
---|
| 47 | ifeq ($(OS_ARCH),WINNT) |
---|
| 48 | CPPSRCS += InstallCleanupWin.cpp |
---|
| 49 | MOZ_WINCONSOLE = 0 |
---|
| 50 | USE_NON_MT_LIBS = 1 |
---|
| 51 | else |
---|
| 52 | CPPSRCS += InstallCleanupUnix.cpp |
---|
| 53 | endif |
---|
| 54 | endif |
---|
| 55 | |
---|
| 56 | EXTRA_DSO_LIBS = mozregsa_s |
---|
| 57 | |
---|
| 58 | LIBS = \ |
---|
| 59 | $(EXTRA_DSO_LIBS) \ |
---|
| 60 | $(NULL) |
---|
| 61 | |
---|
| 62 | DEFINES += -DSTANDALONE_REGISTRY |
---|
| 63 | |
---|
| 64 | include $(topsrcdir)/config/rules.mk |
---|
| 65 | |
---|
| 66 | ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT))) |
---|
| 67 | LIBS += -lmacmorefiles_s |
---|
| 68 | LDFLAGS += $(TK_LIBS) |
---|
| 69 | endif |
---|
| 70 | |
---|
| 71 | ifeq ($(OS_ARCH),WINNT) |
---|
[19517] | 72 | ifndef GNU_CC |
---|
[18859] | 73 | LDFLAGS += /SUBSYSTEM:WINDOWS |
---|
| 74 | endif |
---|
[19517] | 75 | endif |
---|
[18859] | 76 | |
---|
| 77 | libs:: |
---|
| 78 | $(INSTALL) $(srcdir)/cmessage.txt $(DIST)/bin/res |
---|
| 79 | |
---|
| 80 | install:: |
---|
| 81 | $(SYSINSTALL) $(IFLAGS1) $(srcdir)/cmessage.txt $(DESTDIR)$(mozappdir)/res |
---|
| 82 | |
---|