~ubuntu-branches/ubuntu/maverick/nss/maverick

« back to all changes in this revision

Viewing changes to mozilla/security/coreconf/WIN16.mk

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-06-16 13:23:47 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090616132347-311ysb8oep74b98y
Tags: 3.12.3-0ubuntu1
* new upstream release 3.12.3 RTM (NSS_3_12_3_RTM) (LP: #387751)
* adjust patches to changed upstream code base
  - update debian/patches/38_kbsd.patch
* needs nspr >= 4.7.4
  - update debian/control
* update 85_security_load.patch to latest debian version
  - update debian/patches/85_security_load.patch
* add new symbols for 3.12.3
  - update debian/libnss3-1d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# ***** BEGIN LICENSE BLOCK *****
3
 
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
4
 
#
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/
9
 
#
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
13
 
# License.
14
 
#
15
 
# The Original Code is the Netscape security libraries.
16
 
#
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.
21
 
#
22
 
# Contributor(s):
23
 
#
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.
35
 
#
36
 
# ***** END LICENSE BLOCK *****
37
 
 
38
 
#
39
 
# win16_3.11.mk -- Make configuration for Win16
40
 
#
41
 
# This file configures gmake to build the Win16 variant of
42
 
# NSPR 2.0. This file has the function of two files commonly
43
 
# used on other platforms, for example: winnt.mk and
44
 
# winnt4.0.mk. ... The packaging is easier and there is only
45
 
# one variant of the Win16 target.
46
 
47
 
# Win16 is built using the Watcom C/C++ version 11.0
48
 
# compiler. You gotta set up the compiler first. 
49
 
# The Watcom compiler depends on a few environment
50
 
# variables; these environment variables define where the
51
 
# compiler components are installed; they must be set before
52
 
# running the make.
53
 
54
 
# Notes:
55
 
# OS_CFLAGS is the command line options for the compiler when
56
 
#   building the .DLL object files.
57
 
# OS_EXE_CFLAGS is the command line options for the compiler
58
 
#   when building the .EXE object files; this is for the test
59
 
#   programs.
60
 
# the macro OS_CFLAGS is set to OS_EXE_CFLAGS inside of the
61
 
#   makefile for the pr/tests directory. ... Hack.
62
 
63
 
64
 
65
 
66
 
 
67
 
# -- configuration -----------------------------------------
68
 
 
69
 
DEFAULT_COMPILER = wcc
70
 
 
71
 
CC           = wcc
72
 
CCC          = wcl
73
 
LINK         = wlink
74
 
AR           = wlib
75
 
AR          += -q $@
76
 
RC           = wrc.exe
77
 
RC          += /r /dWIN16=1 /bt=windows
78
 
RANLIB       = echo
79
 
BSDECHO      = echo
80
 
NSINSTALL_DIR  = $(CORE_DEPTH)/coreconf/nsinstall
81
 
NSINSTALL      = nsinstall
82
 
INSTALL      = $(NSINSTALL)
83
 
MAKE_OBJDIR  = mkdir
84
 
MAKE_OBJDIR += $(OBJDIR)
85
 
XP_DEFINE   += -DXP_PC
86
 
LIB_SUFFIX   = lib
87
 
DLL_SUFFIX   = dll
88
 
 
89
 
ifdef BUILD_OPT
90
 
        OPTIMIZER   = -oneatx -oh -oi -ei -3 -fpi87 -fp3
91
 
else
92
 
        OPTIMIZER  += -d2 -hc -DDEBUG
93
 
#       OPTIMIZER  += -d2 -hw -DDEBUG
94
 
#       LDFLAGS  += -DEBUG -DEBUGTYPE:CV
95
 
endif
96
 
 
97
 
#
98
 
# $(CPU_ARCH) has been commented out so that its contents
99
 
# are not added to the WIN16_?.OBJ names thus expanding
100
 
# them beyond the 8.3 character limit for this platform.
101
 
#
102
 
#CPU_ARCH       = x386
103
 
#
104
 
# added "-s" to avoid dependency on watcom's libs (e.g. on _STK)
105
 
# added "-zt3" for compatibility with MSVC's "/Gt3" option
106
 
#
107
 
OS_CFLAGS     += -ml -3 -bd -zc -zu -bt=windows -s -zt3 -d_X86_ -dWIN16 -d_WINDLL 
108
 
#OS_EXE_CFLAGS += -ml -3 -bt=windows -d_X86_ -dWIN16
109
 
OS_LIB_FLAGS   = -c -iro
110
 
 
111
 
# Name of the binary code directories
112
 
OS_DLL_OPTION = CASEEXACT
113
 
OS_DLLFLAGS  =
114
 
OS_LIBS      =
115
 
W16_EXPORTS  = #
116
 
ifdef MAPFILE
117
 
# Add LD options to restrict exported symbols to those in the map file
118
 
endif
119
 
# Change PROCESS to put the mapfile in the correct format for this platform
120
 
PROCESS_MAP_FILE = copy $< $@
121
 
 
122
 
 
123
 
#
124
 
#  The following is NOT needed for the NSPR 2.0 library.
125
 
#
126
 
 
127
 
OS_CFLAGS += -d_WINDOWS -d_MSC_VER=700
128
 
 
129
 
#
130
 
# override the definitions of RELEASE_TREE found in tree.mk
131
 
#
132
 
ifndef RELEASE_TREE
133
 
    ifdef BUILD_SHIP
134
 
        ifdef USE_SHIPS
135
 
            RELEASE_TREE = $(NTBUILD_SHIP)
136
 
        else
137
 
            RELEASE_TREE = //redbuild/components
138
 
        endif
139
 
    else
140
 
        RELEASE_TREE = //redbuild/components
141
 
    endif
142
 
endif
143
 
 
144
 
#
145
 
# override the definitions of LIB_PREFIX and DLL_PREFIX in prefix.mk
146
 
#
147
 
ifndef LIB_PREFIX
148
 
    LIB_PREFIX =  $(NULL)
149
 
endif
150
 
 
151
 
ifndef DLL_PREFIX
152
 
    DLL_PREFIX =  $(NULL)
153
 
endif
154
 
 
155
 
#
156
 
# override the definitions of various _SUFFIX symbols in suffix.mk
157
 
#
158
 
 
159
 
#
160
 
# Object suffixes
161
 
#
162
 
ifndef OBJ_SUFFIX
163
 
    OBJ_SUFFIX = .obj
164
 
endif
165
 
 
166
 
#
167
 
# Assembler source suffixes
168
 
#
169
 
ifndef ASM_SUFFIX
170
 
    ASM_SUFFIX = .asm
171
 
endif
172
 
 
173
 
#
174
 
# Library suffixes
175
 
#
176
 
ifndef IMPORT_LIB_SUFFIX
177
 
    IMPORT_LIB_SUFFIX = .$(LIB_SUFFIX)
178
 
endif
179
 
 
180
 
ifndef DYNAMIC_LIB_SUFFIX_FOR_LINKING
181
 
    DYNAMIC_LIB_SUFFIX_FOR_LINKING = $(IMPORT_LIB_SUFFIX)
182
 
endif
183
 
 
184
 
#
185
 
# Program suffixes
186
 
#
187
 
ifndef PROG_SUFFIX
188
 
    PROG_SUFFIX = .exe
189
 
endif
190
 
 
191
 
#
192
 
# When the processor is NOT 386-based on Windows NT, override the
193
 
# value of $(CPU_TAG).  For WinNT, 95, 16, not CE.
194
 
#
195
 
ifneq ($(CPU_ARCH),x386)
196
 
    CPU_TAG = _$(CPU_ARCH)
197
 
endif
198
 
 
199
 
#
200
 
# override ruleset.mk, removing the "lib" prefix for library names, and
201
 
# adding the "32" after the LIBRARY_VERSION.
202
 
#
203
 
ifdef LIBRARY_NAME
204
 
    SHARED_LIBRARY = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION)32$(JDK_DEBUG_SUFFIX).dll
205
 
    IMPORT_LIBRARY = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION)32$(JDK_DEBUG_SUFFIX).lib
206
 
endif
207
 
 
208
 
#
209
 
# override the TARGETS defined in ruleset.mk, adding IMPORT_LIBRARY
210
 
#
211
 
ifndef TARGETS
212
 
    TARGETS = $(LIBRARY) $(SHARED_LIBRARY) $(IMPORT_LIBRARY) $(PROGRAM)
213
 
endif