forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtrex.mak
296 lines (235 loc) · 7.94 KB
/
trex.mak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
######################################################################
#
# This is a windows based makefile (currently) designed to pull
# and build all appropriate components and systems to generate
# a Trex distribution and products using such a distribution
#
######################################################################
DEPTH=.
IGNORE_MANIFEST=1
######################################################################
# General environment variables
######################################################################
!if !defined(MOZ_SRC)
MOZ_SRC=y:
!endif
!if !defined(MOZ_TOP)
MOZ_TOP=mozilla
!endif
CVS=cvs -q co -P
NMAKE=@nmake -nologo -$(MAKEFLAGS)
MMAKE=$(MOZ_SRC)\$(MOZ_TOP)\config\w95make.exe
GMAKE=gmake
GMAKEFILE=Makefile
CVTREX = :pserver:$(USERNAME)@cvsserver:/m/src
CVST=cvs -q -d $(CVTREX) co -P
######################################################################
# Branches and Modules - Trex Needs These
######################################################################
CONFIG_BRANCH =
CONFIG_DIR = $(MOZ_TOP)/config
NSPR20_BRANCH =
NSPR20_DIR = $(MOZ_TOP)/nsprpub
NETLIB_BRANCH = -r MODULAR_NETLIB_BRANCH
NETLIB_DIR = $(MOZ_TOP)/lib/libnet
IMGLIB_BRANCH = -r MODULAR_IMGLIB_BRANCH
IMGLIB_DIR1 = $(MOZ_TOP)/jpeg
IMGLIB_DIR2 = $(MOZ_TOP)/modules/libutil
IMGLIB_DIR3 = $(MOZ_TOP)/modules/libimg
ZLIB_BRANCH =
ZLIB_DIR = $(MOZ_TOP)/modules/zlib
INCLUDE_BRANCH =
INCLUDE_DIR = $(MOZ_TOP)/include
#
#LIBXP_BRANCH =
#LIBXP_DIR = $(MOZ_TOP)/lib/xp
RAPTOR_XPCOM_BRANCH =
RAPTOR_XPCOM_DIR = $(MOZ_TOP)/xpcom
RAPTOR_BASE_BRANCH =
RAPTOR_BASE_DIR = $(MOZ_TOP)/base
RAPTOR_GFX_BRANCH =
RAPTOR_GFX_DIR = $(MOZ_TOP)/gfx
RAPTOR_PARSER_BRANCH =
RAPTOR_PARSER_DIR = $(MOZ_TOP)/htmlparser
RAPTOR_WIDGET_BRANCH =
RAPTOR_WIDGET_DIR = $(MOZ_TOP)/widget
RAPTOR_VIEW_BRANCH =
RAPTOR_VIEW_DIR = $(MOZ_TOP)/view
RAPTOR_LAYOUT_BRANCH =
RAPTOR_LAYOUT_DIR = $(MOZ_TOP)/layout
TREX_GCONFIG_BRANCH =
TREX_GCONFIG_DIR = $(MOZ_TOP)/gconfig
TREX_MSGSDK_BRANCH =
TREX_MSGSDK_DIR = mozilla/msgsdk
TREX_XPFC_BRANCH =
TREX_XPFC_DIR = mozilla/xpfc
TREX_TREX_BRANCH =
TREX_TREX_DIR = mozilla/calendar
LIBNLS_BRANCH = -r libnls_v3_zulu_branch
LIBNLS_DIR = ns/modules/libnls
# $(MOZ_TOP)/LICENSE
# $(MOZ_TOP)/LEGAL
# $(MOZ_TOP)/lib/liblayer
# $(MOZ_TOP)/modules/zlib
# $(MOZ_TOP)/modules/libutil
# $(MOZ_TOP)/sun-java
# $(MOZ_TOP)/nav-java
# $(MOZ_TOP)/js
# $(MOZ_TOP)/modules/security/freenav
# $(MOZ_TOP)/modules/libpref
######################################################################
# Modules - PLATFORM_DIRS are what Trex needs
######################################################################
PLATFORM_DIRS = \
nsprpub \
xpcom \
jpeg \
modules\zlib \
modules\libutil \
modules\libimg \
base \
htmlparser \
gfx \
view \
widget
PLATFORM_EXPORT_DIRS = $(PLATFORM_DIRS) \
lib\libnet \
layout
TREX_DIRS = \
trex
######################################################################
# Targets
######################################################################
default:: build_all
depend:: depend_dist depend_julian depend_trex
clobber:: clobber_dist clobber_julian clobber_trex
pull_and_build_all:: pull_all \
build_all
pull_clobber_build_all:: pull_all \
clobber_all \
build_all
clobber_build_all:: clobber_all \
build_all
#pull_all::
# @echo +++ trex.mak: checking out trex with "$(CVS_BRANCH)"
# cd $(MOZ_SRC)\.
# -$(CVS) $(CONFIG_BRANCH) $(CONFIG_DIR)
# -$(CVS) $(INCLUDE_BRANCH) $(INCLUDE_DIR)
# -$(CVS) $(NSPR20_BRANCH) $(NSPR20_DIR)
# -$(CVS) $(NETLIB_BRANCH) $(NETLIB_DIR)
# -$(CVS) $(IMGLIB_BRANCH) $(IMGLIB_DIR1)
# -$(CVS) $(IMGLIB_BRANCH) $(IMGLIB_DIR2)
# -$(CVS) $(IMGLIB_BRANCH) $(IMGLIB_DIR3)
# -$(CVS) $(ZLIB_BRANCH) $(ZLIB_DIR)
# -$(CVS) $(RAPTOR_XPCOM_BRANCH) $(RAPTOR_XPCOM_DIR)
# -$(CVS) $(RAPTOR_BASE_BRANCH) $(RAPTOR_BASE_DIR)
# -$(CVS) $(RAPTOR_GFX_BRANCH) $(RAPTOR_GFX_DIR)
# -$(CVS) $(RAPTOR_PARSER_BRANCH) $(RAPTOR_PARSER_DIR)
# -$(CVS) $(RAPTOR_WIDGET_BRANCH) $(RAPTOR_WIDGET_DIR)
# -$(CVS) $(RAPTOR_VIEW_BRANCH) $(RAPTOR_VIEW_DIR)
# -$(CVS) $(RAPTOR_LAYOUT_BRANCH) $(RAPTOR_LAYOUT_DIR)
pull_all:: pull_platform pull_julian pull_trex
pull_julian_and_trex:: pull_julian pull_trex
@echo +++ trex.mak: checking out platform with "$(CVS_BRANCH)"
cd $(MOZ_SRC)\.
-$(CVS) $(CONFIG_BRANCH) $(CONFIG_DIR)
cd $(MOZ_SRC)\.
pull_platform::
@echo +++ trex.mak: checking out platform with "$(CVS_BRANCH)"
cd $(MOZ_SRC)\.
-$(CVS) $(CONFIG_BRANCH) $(CONFIG_DIR)
-$(CVS) $(MOZ_TOP)/nglayout.mak
cd $(MOZ_SRC)\$(MOZ_TOP)
nmake -f nglayout.mak pull_all
cd $(MOZ_SRC)\.
pull_julian::
@echo +++ trex.mak: checking out libnls with "$(CVTREX)"
cd $(MOZ_SRC)\.
-$(CVST) ns/client.mak
cd $(MOZ_SRC)\ns\.
-$(CVST) -d config ns/clientconfig
cd $(MOZ_SRC)\.
-$(CVST) $(LIBNLS_BRANCH) $(LIBNLS_DIR)
cd $(MOZ_SRC)\.
pull_trex::
@echo +++ trex.mak: checking out trex with "$(CVTREX)"
cd $(MOZ_SRC)\.
-$(CVS) $(TREX_GCONFIG_BRANCH) $(TREX_GCONFIG_DIR)
-$(CVS) $(TREX_MSGSDK_BRANCH) $(TREX_MSGSDK_DIR)
-$(CVS) $(TREX_XPFC_BRANCH) $(TREX_XPFC_DIR)
-$(CVS) $(TREX_TREX_BRANCH) $(TREX_TREX_DIR)
cd $(MOZ_SRC)\.
build_all:: build_platform build_julian build_trex
build_julian_and_trex:: build_julian build_trex
# builds PLATFORM_DIRS
#build_platform::
# cd $(MOZ_SRC)\$(MOZ_TOP)\.
# @$(MMAKE) export $(MAKEDIR) $(PLATFORM_EXPORT_DIRS)
# @$(MMAKE) libs $(MAKEDIR) $(PLATFORM_DIRS)
# @$(MMAKE) install $(MAKEDIR) $(PLATFORM_DIRS)
build_platform::
cd $(MOZ_SRC)\$(MOZ_TOP)\.
nmake -f nglayout.mak all
cd $(MOZ_SRC)\.
build_julian::
!if !defined(MOZ_ZULU_FREE)
cd $(MOZ_SRC)\ns\modules\libnls
nmake -f makefile.win
!endif
cd $(MOZ_SRC)\.
build_trex::
cd $(MOZ_SRC)\$(MOZ_TOP)\msgsdk
gmake buildC
cd $(MOZ_SRC)\$(MOZ_TOP)\xpfc
nmake -f makefile.win
cd $(MOZ_SRC)\$(MOZ_TOP)\calendar
nmake -f makefile.win
cd $(MOZ_SRC)\.
depend_dist::
cd $(MOZ_SRC)\$(MOZ_TOP)\.
nmake -f nglayout.mak depend
cd $(MOZ_SRC)\.
depend_julian::
!if !defined(MOZ_ZULU_FREE)
cd $(MOZ_SRC)\ns\modules\libnls
nmake -f makefile.win depend
!endif
cd $(MOZ_SRC)\.
depend_trex::
cd $(MOZ_SRC)\$(MOZ_TOP)\xpfc
nmake -f makefile.win depend
cd $(MOZ_SRC)\$(MOZ_TOP)\calendar
nmake -f makefile.win depend
cd $(MOZ_SRC)\.
clobber_dist::
cd $(MOZ_SRC)\$(MOZ_TOP)\.
nmake -f nglayout.mak clobber_all
cd $(MOZ_SRC)\.
clobber_julian::
!if !defined(MOZ_ZULU_FREE)
cd $(MOZ_SRC)\ns\modules\libnls
!endif
nmake -f makefile.win clobber_all
cd $(MOZ_SRC)\.
clobber_trex::
cd $(MOZ_SRC)\$(MOZ_TOP)\msgsdk
gmake FRESH
cd $(MOZ_SRC)\$(MOZ_TOP)\xpfc
nmake -f makefile.win clobber_all
cd $(MOZ_SRC)\$(MOZ_TOP)\calendar
nmake -f makefile.win clobber_all
cd $(MOZ_SRC)\.