VirtualBox

source: vbox/trunk/src/libs/xpcom18a4/nsprpub/makefile.win@ 98288

Last change on this file since 98288 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: 3.7 KB
Line 
1
2#
3# ***** BEGIN LICENSE BLOCK *****
4# Version: MPL 1.1/GPL 2.0/LGPL 2.1
5#
6# The contents of this file are subject to the Mozilla Public License Version
7# 1.1 (the "License"); you may not use this file except in compliance with
8# the License. You may obtain a copy of the License at
9# http://www.mozilla.org/MPL/
10#
11# Software distributed under the License is distributed on an "AS IS" basis,
12# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13# for the specific language governing rights and limitations under the
14# License.
15#
16# The Original Code is the Netscape Portable Runtime (NSPR).
17#
18# The Initial Developer of the Original Code is
19# Netscape Communications Corporation.
20# Portions created by the Initial Developer are Copyright (C) 1998-2000
21# the Initial Developer. All Rights Reserved.
22#
23# Contributor(s):
24#
25# Alternatively, the contents of this file may be used under the terms of
26# either the GNU General Public License Version 2 or later (the "GPL"), or
27# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28# in which case the provisions of the GPL or the LGPL are applicable instead
29# of those above. If you wish to allow use of your version of this file only
30# under the terms of either the GPL or the LGPL, and not to allow others to
31# use your version of this file under the terms of the MPL, indicate your
32# decision by deleting the provisions above and replace them with the notice
33# and other provisions required by the GPL or the LGPL. If you do not delete
34# the provisions above, a recipient may use your version of this file under
35# the terms of any one of the MPL, the GPL or the LGPL.
36#
37# ***** END LICENSE BLOCK *****
38
39
40#
41# An NMAKE file to set up and adjust NSPR20's build system for
42# Client build. Client build should invoke NMAKE on this file
43# instead of invoking gmake directly.
44#
45
46DEPTH = ..
47include <$(DEPTH)\config\config.mak>
48
49#
50# Backslashes are escape characters to gmake, so flip all backslashes
51# in $(MOZ_TOOLS) to forward slashes and pass that to gmake.
52#
53
54GMAKE = $(MOZ_TOOLS)\bin\gmake.exe
55
56GMAKE_FLAGS = MOZ_TOOLS_FLIPPED=$(MOZ_TOOLS:\=/) PR_CLIENT_BUILD=1 PR_CLIENT_BUILD_WINDOWS=1
57
58#
59# The Client's debug build uses MSVC's debug runtime library (/MDd).
60#
61
62!ifdef MOZ_DEBUG
63!else
64GMAKE_FLAGS = $(GMAKE_FLAGS) BUILD_OPT=1
65!endif
66
67!if "$(MOZ_BITS)" == "16"
68GMAKE_FLAGS = $(GMAKE_FLAGS) OS_TARGET=WIN16
69!else
70
71GMAKE_FLAGS = $(GMAKE_FLAGS) OS_TARGET=WIN95
72!ifdef MOZ_DEBUG
73!ifdef MOZ_NO_DEBUG_RTL
74!IF "$(CPU)" == "ALPHA"
75PR_OBJDIR = WIN954.0ALPHA_DBG.OBJ
76!else
77PR_OBJDIR = WIN954.0_DBG.OBJ
78!endif
79!else
80GMAKE_FLAGS = $(GMAKE_FLAGS) USE_DEBUG_RTL=1
81!IF "$(CPU)" == "ALPHA"
82PR_OBJDIR = WIN954.0ALPHA_DBG.OBJD
83!else
84PR_OBJDIR = WIN954.0_DBG.OBJD
85!endif
86!endif
87!else
88!IF "$(CPU)" == "ALPHA"
89PR_OBJDIR = WIN954.0ALPHA_OPT.OBJ
90!else
91PR_OBJDIR = WIN954.0_OPT.OBJ
92!endif
93!endif
94
95!endif
96
97
98#
99# The rules. Simply invoke gmake with the same target.
100# The default target is 'all'. For Win16, set up the
101# environment to use the Watcom compiler, Watcom headers,
102# and Watcom libs.
103#
104
105all:: export libs install
106
107export libs install clobber clobber_all clean depend::
108!if "$(MOZ_BITS)" == "16"
109 set PATH=%WATCPATH%
110 set INCLUDE=%WATC_INC%
111 set LIB=%WATC_LIB%
112!endif
113 $(GMAKE) $(GMAKE_FLAGS) $@
114!if "$(MOZ_BITS)" == "16"
115 set PATH=%MSVCPATH%
116 set INCLUDE=%MSVC_INC%
117 set LIB=%MSVC_LIB%
118!endif
119
120!if "$(MOZ_BITS)" != "16"
121export::
122 $(MAKE_INSTALL) $(XPDIST)\$(PR_OBJDIR)\include\*.h $(DIST)\include
123 $(MAKE_INSTALL) $(XPDIST)\$(PR_OBJDIR)\include\obsolete\*.h $(DIST)\include\obsolete
124 $(MAKE_INSTALL) $(XPDIST)\$(PR_OBJDIR)\include\private\*.h $(DIST)\include\private
125 $(MAKE_INSTALL) $(XPDIST)\$(PR_OBJDIR)\lib\*.lib $(DIST)\lib
126 $(MAKE_INSTALL) $(XPDIST)\$(PR_OBJDIR)\lib\*.dll $(DIST)\bin
127!endif
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