~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/makefile.win

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

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