VirtualBox

source: vbox/trunk/src/libs/xpcom18a4/nsprpub/Makefile.in@ 35650

Last change on this file since 35650 was 1, checked in by vboxsync, 55 years ago

import

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.5 KB
Line 
1#! gmake
2
3#
4# ***** BEGIN LICENSE BLOCK *****
5# Version: MPL 1.1/GPL 2.0/LGPL 2.1
6#
7# The contents of this file are subject to the Mozilla Public License Version
8# 1.1 (the "License"); you may not use this file except in compliance with
9# the License. You may obtain a copy of the License at
10# http://www.mozilla.org/MPL/
11#
12# Software distributed under the License is distributed on an "AS IS" basis,
13# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
14# for the specific language governing rights and limitations under the
15# License.
16#
17# The Original Code is the Netscape Portable Runtime (NSPR).
18#
19# The Initial Developer of the Original Code is
20# Netscape Communications Corporation.
21# Portions created by the Initial Developer are Copyright (C) 1998-2000
22# the Initial Developer. All Rights Reserved.
23#
24# Contributor(s):
25#
26# Alternatively, the contents of this file may be used under the terms of
27# either the GNU General Public License Version 2 or later (the "GPL"), or
28# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
29# in which case the provisions of the GPL or the LGPL are applicable instead
30# of those above. If you wish to allow use of your version of this file only
31# under the terms of either the GPL or the LGPL, and not to allow others to
32# use your version of this file under the terms of the MPL, indicate your
33# decision by deleting the provisions above and replace them with the notice
34# and other provisions required by the GPL or the LGPL. If you do not delete
35# the provisions above, a recipient may use your version of this file under
36# the terms of any one of the MPL, the GPL or the LGPL.
37#
38# ***** END LICENSE BLOCK *****
39
40
41MOD_DEPTH = .
42topsrcdir = @top_srcdir@
43srcdir = @srcdir@
44VPATH = @srcdir@
45
46include $(MOD_DEPTH)/config/autoconf.mk
47
48MAKE := $(patsubst -j%,,$(MAKE)) -j1
49
50DIRS = config pr lib
51
52ifdef MOZILLA_CLIENT
53# Make nsinstall use absolute symlinks by default for Mozilla OSX builds
54# http://bugzilla.mozilla.org/show_bug.cgi?id=193164
55ifeq ($(OS_ARCH),Darwin)
56ifndef NSDISTMODE
57NSDISTMODE=absolute_symlink
58export NSDISTMODE
59endif
60endif
61endif
62
63DIST_GARBAGE = config.cache config.log config.status
64
65all:: config.status export
66
67include $(topsrcdir)/config/rules.mk
68
69config.status:: configure
70ifeq ($(OS_ARCH),WINNT)
71 sh $(srcdir)/configure --no-create --no-recursion
72else
73 ./config.status --recheck && ./config.status
74endif
75
76#
77# The -ll option of zip converts CR LF to LF.
78#
79ifeq ($(OS_ARCH),WINNT)
80ZIP_ASCII_OPT = -ll
81endif
82
83# Delete config/autoconf.mk last because it is included by every makefile.
84distclean::
85 @echo "cd pr/tests; $(MAKE) $@"
86 @$(MAKE) -C pr/tests $@
87 rm -f config/autoconf.mk
88
89release::
90 echo $(BUILD_NUMBER) > $(RELEASE_DIR)/$(BUILD_NUMBER)/version.df
91 @if test -f imports.df; then \
92 echo "cp -f imports.df $(RELEASE_DIR)/$(BUILD_NUMBER)/imports.df"; \
93 cp -f imports.df $(RELEASE_DIR)/$(BUILD_NUMBER)/imports.df; \
94 else \
95 echo "echo > $(RELEASE_DIR)/$(BUILD_NUMBER)/imports.df"; \
96 echo > $(RELEASE_DIR)/$(BUILD_NUMBER)/imports.df; \
97 fi
98 cd $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME); \
99 rm -rf META-INF; mkdir META-INF; cd META-INF; \
100 echo "Manifest-Version: 1.0" > MANIFEST.MF; \
101 echo "" >> MANIFEST.MF; \
102 cd ..; rm -f mdbinary.jar; zip -r mdbinary.jar META-INF bin lib; \
103 rm -rf META-INF; \
104 cd include; \
105 rm -rf META-INF; mkdir META-INF; cd META-INF; \
106 echo "Manifest-Version: 1.0" > MANIFEST.MF; \
107 echo "" >> MANIFEST.MF; \
108 cd ..; rm -f mdheader.jar; zip $(ZIP_ASCII_OPT) -r mdheader.jar *; \
109 rm -rf META-INF
110ifeq ($(OS_ARCH),WINNT)
111 @if test ! -d $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); then \
112 rm -rf $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \
113 echo "making directory $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)"; \
114 $(topsrcdir)/config/prmkdir.bat $(MDIST_DOS)\\$(MOD_NAME)\\$(BUILD_NUMBER); \
115 fi
116 @if test ! -d $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); then \
117 rm -rf $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); \
118 echo "making directory $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME)"; \
119 $(topsrcdir)/config/prmkdir.bat $(MDIST_DOS)\\$(MOD_NAME)\\$(BUILD_NUMBER)\\$(RELEASE_OBJDIR_NAME); \
120 fi
121else
122 @if test ! -d $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); then \
123 rm -rf $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \
124 echo "making directory $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)"; \
125 $(NSINSTALL) -D $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \
126 chmod 775 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \
127 fi
128 @if test ! -d $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); then \
129 rm -rf $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); \
130 echo "making directory $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME)"; \
131 $(NSINSTALL) -D $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); \
132 chmod 775 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); \
133 fi
134endif
135 cd $(RELEASE_DIR)/$(BUILD_NUMBER); \
136 cp -f version.df imports.df $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \
137 chmod 664 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/version.df; \
138 chmod 664 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/imports.df; \
139 cd $(OBJDIR_NAME); \
140 cp -f mdbinary.jar $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); \
141 chmod 664 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME)/mdbinary.jar; \
142 cd include; \
143 cp -f mdheader.jar $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); \
144 chmod 664 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME)/mdheader.jar
145
146package:
147 @echo "cd pkg; $(MAKE) publish"
148 $(MAKE) -C pkg publish
149
150depend:
151 @echo "NSPR20 has no dependencies. Skipped."
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette