2 # ***** BEGIN LICENSE BLOCK *****
3 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 # The contents of this file are subject to the Mozilla Public License Version
6 # 1.1 (the "License"); you may not use this file except in compliance with
7 # the License. You may obtain a copy of the License at
8 # http://www.mozilla.org/MPL/
10 # Software distributed under the License is distributed on an "AS IS" basis,
11 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 # for the specific language governing rights and limitations under the
15 # The Original Code is the Netscape security libraries.
17 # The Initial Developer of the Original Code is
18 # Netscape Communications Corporation.
19 # Portions created by the Initial Developer are Copyright (C) 1994-2000
20 # the Initial Developer. All Rights Reserved.
24 # Alternatively, the contents of this file may be used under the terms of
25 # either the GNU General Public License Version 2 or later (the "GPL"), or
26 # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 # in which case the provisions of the GPL or the LGPL are applicable instead
28 # of those above. If you wish to allow use of your version of this file only
29 # under the terms of either the GPL or the LGPL, and not to allow others to
30 # use your version of this file under the terms of the MPL, indicate your
31 # decision by deleting the provisions above and replace them with the notice
32 # and other provisions required by the GPL or the LGPL. If you do not delete
33 # the provisions above, a recipient may use your version of this file under
34 # the terms of any one of the MPL, the GPL or the LGPL.
36 # ***** END LICENSE BLOCK *****
38 #######################################################################
39 # Master <component>-specific source import/export directories #
40 #######################################################################
43 # <user_source_tree> master import/export directory prefix
48 SOURCE_PREFIX
= $(CORE_DEPTH
)/..
/dist
50 SOURCE_PREFIX
= $(BUILD_TREE
)/dist
55 # <user_source_tree> cross-platform (xp) master import/export directory
59 SOURCE_XP_DIR
= $(SOURCE_PREFIX
)
63 # <user_source_tree> cross-platform (xp) import/export directories
66 SOURCE_CLASSES_DIR
= $(SOURCE_XP_DIR
)/classes
67 SOURCE_CLASSES_DBG_DIR
= $(SOURCE_XP_DIR
)/classes_DBG
68 SOURCE_XPHEADERS_DIR
= $(SOURCE_XP_DIR
)/public
/$(MODULE
)
69 SOURCE_XPPRIVATE_DIR
= $(SOURCE_XP_DIR
)/private
/$(MODULE
)
72 IMPORT_XPCLASS_DIR
= $(SOURCE_CLASSES_DIR
)
74 IMPORT_XPCLASS_DIR
= $(SOURCE_CLASSES_DBG_DIR
)
78 # <user_source_tree> machine-dependent (md) master import/export directory
82 SOURCE_MD_DIR
= $(SOURCE_PREFIX
)/$(PLATFORM
)
86 # <user_source_tree> machine-dependent (md) import/export directories
89 #This is where we install built executables and (for Windows only) DLLs.
91 SOURCE_BIN_DIR
= $(SOURCE_MD_DIR
)/bin
94 #This is where we install built libraries (.a, .so, .lib).
96 SOURCE_LIB_DIR
= $(SOURCE_MD_DIR
)/lib
99 # This is where NSPR header files are found.
100 ifndef SOURCE_MDHEADERS_DIR
101 SOURCE_MDHEADERS_DIR
= $(SOURCE_MD_DIR
)/include
104 #######################################################################
105 # Master <component>-specific source release directories and files #
106 #######################################################################
109 # <user_source_tree> source-side master release directory prefix
110 # NOTE: export control policy enforced for XP and MD files released to
114 ifeq ($(POLICY
), domestic
)
115 SOURCE_RELEASE_PREFIX
= $(SOURCE_PREFIX
)/release
/domestic
117 ifeq ($(POLICY
), export)
118 SOURCE_RELEASE_PREFIX
= $(SOURCE_PREFIX
)/release
/export
120 ifeq ($(POLICY
), france
)
121 SOURCE_RELEASE_PREFIX
= $(SOURCE_PREFIX
)/release
/france
123 #We shouldn't have to put another directory under here, but without it the perl
124 #script for releasing doesn't find the directory. It thinks it doesn't exist.
125 #So we're adding this no-policy directory so that the script for releasing works
126 #in all casese when policy is not set. This doesn't affect where the final jar
127 #files land, only where they are placed in the local tree when building the jar
128 #files. When there is no policy, the jar files will still land in
129 #<dist>/<module>/<date>/<platform> like they used to.
130 SOURCE_RELEASE_PREFIX
= $(SOURCE_PREFIX
)/release
/no-policy
136 # <user_source_tree> cross-platform (xp) source-side master release directory
139 SOURCE_RELEASE_XP_DIR
= $(SOURCE_RELEASE_PREFIX
)
142 # <user_source_tree> cross-platform (xp) source-side release directories
145 SOURCE_RELEASE_CLASSES_DIR
= classes
146 SOURCE_RELEASE_CLASSES_DBG_DIR
= classes_DBG
147 SOURCE_RELEASE_XPHEADERS_DIR
= include
150 # <user_source_tree> cross-platform (xp) JAR source-side release files
153 XPCLASS_JAR
= xpclass.jar
154 XPCLASS_DBG_JAR
= xpclass_dbg.jar
155 XPHEADER_JAR
= xpheader.jar
158 SOURCE_RELEASE_XP_CLASSES_DIR
= $(SOURCE_RELEASE_CLASSES_DIR
)
159 IMPORT_XPCLASS_JAR
= $(XPCLASS_JAR
)
161 SOURCE_RELEASE_XP_CLASSES_DIR
= $(SOURCE_RELEASE_CLASSES_DBG_DIR
)
162 IMPORT_XPCLASS_JAR
= $(XPCLASS_DBG_JAR
)
166 # <user_source_tree> machine-dependent (md) source-side master release directory
169 SOURCE_RELEASE_MD_DIR
= $(PLATFORM
)
172 # <user_source_tree> machine-dependent (md) source-side release directories
175 SOURCE_RELEASE_BIN_DIR
= $(PLATFORM
)/bin
176 SOURCE_RELEASE_LIB_DIR
= $(PLATFORM
)/lib
177 SOURCE_RELEASE_MDHEADERS_DIR
= $(PLATFORM
)/include
178 SOURCE_RELEASE_SPEC_DIR
= $(SOURCE_RELEASE_MD_DIR
)
181 # <user_source_tree> machine-dependent (md) JAR/tar source-side release files
184 MDBINARY_JAR
= mdbinary.jar
185 MDHEADER_JAR
= mdheader.jar
188 # Where to put the results
190 ifneq ($(RESULTS_DIR
),)
191 RESULTS_DIR
= $(RELEASE_TREE
)/sectools
/results