0
|
1 XCOMM
|
|
2 XCOMM $Id: Project.tmpl,v 1.6.2.2 1999/03/23 10:07:26 nakanisi Exp $
|
|
3 XCOMM
|
|
4
|
|
5 XCOMM FreeWnn is a network-extensible Kana-to-Kanji conversion system.
|
|
6 XCOMM This file is part of FreeWnn.
|
|
7 XCOMM
|
|
8 XCOMM Copyright Kyoto University Research Institute for Mathematical Sciences
|
|
9 XCOMM 1987, 1988, 1989, 1990, 1991, 1992
|
|
10 XCOMM Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
|
|
11 XCOMM Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992
|
|
12 XCOMM
|
|
13 XCOMM Author: OMRON SOFTWARE Co., Ltd. <freewnn@rd.kyoto.omronsoft.co.jp>
|
|
14 XCOMM
|
|
15 XCOMM This program is free software; you can redistribute it and/or modify
|
|
16 XCOMM it under the terms of the GNU General Public License as published by
|
|
17 XCOMM the Free Software Foundation; either version 2, or (at your option)
|
|
18 XCOMM any later version.
|
|
19 XCOMM
|
|
20 XCOMM This program is distributed in the hope that it will be useful,
|
|
21 XCOMM but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
22 XCOMM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
23 XCOMM GNU General Public License for more details.
|
|
24 XCOMM
|
|
25 XCOMM You should have received a copy of the GNU General Public License
|
|
26 XCOMM along with GNU Emacs; see the file COPYING. If not, write to the
|
|
27 XCOMM Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
28 XCOMM
|
|
29 XCOMM Commentary:
|
|
30 XCOMM
|
|
31 XCOMM Change log:
|
|
32 XCOMM 片山@PFU <kate@pfu.co.jp>
|
|
33 XCOMM for 文の変数名の訂正。dirs というディレクトリーをソースディレクトリーに作ってしまう。
|
|
34 XCOMM makefile.R5inst 対応。
|
|
35 XCOMM kWnn をデフォールトで make するようにする。
|
|
36 XCOMM JWNNLANG、CWNNLANG、KWNNLANG、TWNNLANG、LWNNLANG を定義。
|
|
37 XCOMM
|
|
38 XCOMM Last modified date: 20,Mar.1999
|
|
39 XCOMM
|
|
40 XCOMM -------------------------------------------------------------------------
|
|
41 XCOMM X Window System Build Parameters
|
|
42 XCOMM $XConsortium: Project.tmpl,v 1.157 93/06/24 10:51:47 dpw Exp $
|
|
43
|
|
44 /*****************************************************************************
|
|
45 * *
|
|
46 * DEFAULT DEFINITONS *
|
|
47 * *
|
|
48 * The following section contains defaults for things that can be overridden *
|
|
49 * in the various *.cf and site.def files. DO NOT EDIT! *
|
|
50 * *
|
|
51 ****************************************************************************/
|
|
52
|
|
53 #define ProjectX 5 /* do *not* change this line */
|
|
54
|
|
55 /*
|
|
56 * X-specific things
|
|
57 */
|
|
58 #ifndef BuildServer
|
|
59 #define BuildServer YES
|
|
60 #endif
|
|
61 #ifndef BuildFontServer
|
|
62 #define BuildFontServer BuildServer
|
|
63 #endif
|
|
64 #ifndef BuildFonts
|
|
65 #define BuildFonts (BuildServer | BuildFontServer)
|
|
66 #endif
|
|
67 #ifndef BuildPex
|
|
68 #define BuildPex YES
|
|
69 #endif
|
|
70 #ifndef BuildPexClients
|
|
71 #define BuildPexClients BuildPex
|
|
72 #endif
|
|
73 #ifndef BuildPexExt
|
|
74 #if BuildServer
|
|
75 #define BuildPexExt BuildPex
|
|
76 #else
|
|
77 #define BuildPexExt NO
|
|
78 #endif
|
|
79 #endif
|
|
80 #ifndef BuildXInputExt
|
|
81 #define BuildXInputExt NO
|
|
82 #endif
|
|
83 #ifndef BuildXInputLib
|
|
84 #define BuildXInputLib YES
|
|
85 #endif
|
|
86 #ifndef BuildXIE
|
|
87 #define BuildXIE NO
|
|
88 #endif
|
|
89 #ifndef BuildXTrapExt
|
|
90 #define BuildXTrapExt NO
|
|
91 #endif
|
|
92 #ifndef BuildXTrapLib
|
|
93 #define BuildXTrapLib NO
|
|
94 #endif
|
|
95 #ifndef BuildScreenSaverExt
|
|
96 #define BuildScreenSaverExt NO /* not released yet */
|
|
97 #endif
|
|
98 #ifndef BuildScreenSaverLib
|
|
99 #define BuildScreenSaverLib NO /* not released yet */
|
|
100 #endif
|
|
101 #ifndef InstallLibManPages
|
|
102 #define InstallLibManPages YES
|
|
103 #endif
|
|
104 #ifndef InstallXtermSetUID
|
|
105 #define InstallXtermSetUID YES /* xterm needs to be set uid */
|
|
106 #endif
|
|
107 #ifndef InstallXinitConfig
|
|
108 #define InstallXinitConfig NO /* install sample xinit config */
|
|
109 #endif
|
|
110 #ifndef InstallXdmConfig
|
|
111 #define InstallXdmConfig NO /* install sample xdm config */
|
|
112 #endif
|
|
113 #ifndef XdmServersType /* what Xservers files to use */
|
|
114 #if BuildServer
|
|
115 #define XdmServersType ws
|
|
116 #else
|
|
117 #define XdmServersType fs
|
|
118 #endif
|
|
119 #endif
|
|
120 #ifndef InstallFSConfig
|
|
121 #define InstallFSConfig NO /* install sample fs config */
|
|
122 #endif
|
|
123 #ifndef InstallAppDefFiles
|
|
124 #define InstallAppDefFiles YES /* install application defaults */
|
|
125 #endif
|
|
126 #ifndef DebugLibX
|
|
127 #define DebugLibX NO /* debugged X library */
|
|
128 #endif
|
|
129 #ifndef DebugLibXArchive
|
|
130 #define DebugLibXArchive NO /* archive file of above */
|
|
131 #endif
|
|
132 #ifndef ProfileLibX
|
|
133 #define ProfileLibX NO /* profiled X library */
|
|
134 #endif
|
|
135 #ifndef ProfileLibXArchive
|
|
136 #define ProfileLibXArchive NO /* archive file of above */
|
|
137 #endif
|
|
138 #ifndef DebugOldLibX
|
|
139 #define DebugOldLibX NO /* debugged old X library */
|
|
140 #endif
|
|
141 #ifndef ProfileOldLibX
|
|
142 #define ProfileOldLibX NO /* profiled old X library */
|
|
143 #endif
|
|
144 #ifndef DebugLibXt
|
|
145 #define DebugLibXt NO /* debugged toolkit library */
|
|
146 #endif
|
|
147 #ifndef ProfileLibXt
|
|
148 #define ProfileLibXt NO /* profiled toolkit library */
|
|
149 #endif
|
|
150 #ifndef DebugLibXaw
|
|
151 #define DebugLibXaw NO /* debugged widget library */
|
|
152 #endif
|
|
153 #ifndef ProfileLibXaw
|
|
154 #define ProfileLibXaw NO /* profiled widget library */
|
|
155 #endif
|
|
156 #ifndef DebugLibXext
|
|
157 #define DebugLibXext NO /* debugged Xext library */
|
|
158 #endif
|
|
159 #ifndef ProfileLibXext
|
|
160 #define ProfileLibXext NO /* profiled Xext library */
|
|
161 #endif
|
|
162 #ifndef DebugLibXmu
|
|
163 #define DebugLibXmu NO /* debugged Xmu library */
|
|
164 #endif
|
|
165 #ifndef ProfileLibXmu
|
|
166 #define ProfileLibXmu NO /* profiled Xmu library */
|
|
167 #endif
|
|
168 #ifndef DebugLibXau
|
|
169 #define DebugLibXau NO /* debugged auth library */
|
|
170 #endif
|
|
171 #ifndef ProfileLibXau
|
|
172 #define ProfileLibXau NO /* profiled auth library */
|
|
173 #endif
|
|
174 #ifndef DebugLibXdmcp
|
|
175 #define DebugLibXdmcp NO /* debugged XDMCP library */
|
|
176 #endif
|
|
177 #ifndef ProfileLibXdmcp
|
|
178 #define ProfileLibXdmcp NO /* profiled XDMCP library */
|
|
179 #endif
|
|
180 #ifndef DebugLibXinput
|
|
181 #define DebugLibXinput NO /* debugged Xi library */
|
|
182 #endif
|
|
183 #ifndef ProfileLibXinput
|
|
184 #define ProfileLibXinput NO /* profiled Xi library */
|
|
185 #endif
|
|
186 #ifndef DebugLibXTest
|
|
187 #define DebugLibXTest NO /* debugged Xtst library */
|
|
188 #endif
|
|
189 #ifndef ProfileLibXTest
|
|
190 #define ProfileLibXTest NO /* profiled Xtst library */
|
|
191 #endif
|
|
192 #ifndef DebugLibXTrap
|
|
193 #define DebugLibXTrap NO /* debugged XTrap library */
|
|
194 #endif
|
|
195 #ifndef ProfileLibXTrap
|
|
196 #define ProfileLibXTrap NO /* profiled XTrap library */
|
|
197 #endif
|
|
198 #ifndef DebugLibPex
|
|
199 #define DebugLibPex NO /* debugged PEX5 library */
|
|
200 #endif
|
|
201 #ifndef ProfileLibPex
|
|
202 #define ProfileLibPex NO /* profiled PEX5 library */
|
|
203 #endif
|
|
204
|
|
205 #ifdef uniosu
|
|
206 #ifdef ManDirectoryRoot
|
|
207 #undef ManDirectoryRoot
|
|
208 #endif
|
|
209 #define ManDirectoryRoot /usr/catman/w_man
|
|
210 #endif
|
|
211
|
|
212 #ifndef ManDirectoryRoot
|
|
213 #ifdef ProjectRoot
|
|
214 #define ManDirectoryRoot Concat(ProjectRoot,/man)
|
|
215 #ifndef XmanLocalSearchPath
|
|
216 #define XmanLocalSearchPath ManDirectoryRoot
|
|
217 #endif
|
|
218 #else
|
|
219 #if SystemV4
|
|
220 #define ManDirectoryRoot /usr/share/man
|
|
221 #else
|
|
222 #define ManDirectoryRoot /usr/man
|
|
223 #endif
|
|
224 #endif
|
|
225 #endif
|
|
226 #ifndef ManSuffix
|
|
227 #define ManSuffix n /* use just one tab or cpp will die */
|
|
228 #endif
|
|
229 #ifndef LibManSuffix
|
|
230 #define LibManSuffix 3 /* use just one tab or cpp will die */
|
|
231 #endif
|
|
232 #ifndef HasXdmAuth
|
|
233 #define HasXdmAuth NO /* if you can not use XDM-AUTH* */
|
|
234 #endif
|
|
235 #ifndef BDFTOSNFFILT
|
|
236 #define BDFTOSNFFILT -DBDFTOSNFFILT=\"$(BINDIR)/bdftosnf\"
|
|
237 #endif
|
|
238 #ifndef SHELLPATH
|
|
239 #define SHELLPATH -DSHELLPATH=\"/bin/sh\"
|
|
240 #endif
|
|
241 #ifndef ZBDFTOSNFFILT
|
|
242 #define ZBDFTOSNFFILT -DZBDFTOSNFFILT=\"UNCOMPRESSPATH" | $(BINDIR)/bdftosnf $(FONTCFLAGS)\""
|
|
243 #endif
|
|
244 #ifndef FontFilters
|
|
245 #define FontFilters BDFTOSNFFILT SHELLPATH ZBDFTOSNFFILT
|
|
246 #endif
|
|
247 #ifndef PrimaryScreenResolution
|
|
248 #define PrimaryScreenResolution 72 /* a common resolution */
|
|
249 #endif
|
|
250 #ifndef DefaultFontPath
|
|
251 #if PrimaryScreenResolution < 88 /* (75 + 100) / 2 */
|
|
252 #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/Type1/,$(FONTDIR)/75dpi/,$(FONTDIR)/100dpi/
|
|
253 #else
|
|
254 #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/Type1/,$(FONTDIR)/100dpi/,$(FONTDIR)/75dpi/
|
|
255 #endif
|
|
256 #endif
|
|
257 #ifndef DefaultRGBDatabase
|
|
258 #define DefaultRGBDatabase $(LIBDIR)/rgb
|
|
259 #endif
|
|
260 #ifndef FontCompilerFlags
|
|
261 #define FontCompilerFlags -t
|
|
262 #endif
|
|
263 #ifndef ConnectionFlags
|
|
264 #if (SystemV || SystemV4) && !HasSockets
|
|
265 #define ConnectionFlags -DSTREAMSCONN
|
|
266 #else
|
|
267 #define ConnectionFlags -DTCPCONN -DUNIXCONN
|
|
268 #endif
|
|
269 #endif
|
|
270 #ifndef FontOSDefines
|
|
271 #define FontOSDefines /**/
|
|
272 #endif
|
|
273 #ifndef FontDefines
|
|
274 #define FontDefines -DFONT_SNF -DFONT_BDF -DFONT_PCF -DCOMPRESSED_FONTS FontOSDefines
|
|
275 #endif
|
|
276 #ifndef ExtensionOSDefines
|
|
277 #define ExtensionOSDefines /**/
|
|
278 #endif
|
|
279 #ifndef ExtensionDefines
|
|
280 #ifndef PexDefines
|
|
281 #if BuildPexExt
|
|
282 #define PexDefines -DPEXEXT
|
|
283 #else
|
|
284 #define PexDefines /**/
|
|
285 #endif
|
|
286 #endif
|
|
287 #ifndef ShmDefines
|
|
288 #if HasShm
|
|
289 #define ShmDefines -DMITSHM
|
|
290 #else
|
|
291 #define ShmDefines /**/
|
|
292 #endif
|
|
293 #endif
|
|
294 #ifndef XInputDefines
|
|
295 #if BuildXInputExt
|
|
296 #define XInputDefines -DXINPUT
|
|
297 #else
|
|
298 #define XInputDefines /**/
|
|
299 #endif
|
|
300 #endif
|
|
301 #ifndef XTrapDefines
|
|
302 #if BuildXTrapExt
|
|
303 #define XTrapDefines -DXTRAP
|
|
304 #else
|
|
305 #define XTrapDefines /**/
|
|
306 #endif
|
|
307 #endif
|
|
308 #ifndef ScreenSaverDefines
|
|
309 #if BuildScreenSaverExt
|
|
310 #define ScreenSaverDefines -DSCREENSAVER
|
|
311 #else
|
|
312 #define ScreenSaverDefines /**/
|
|
313 #endif
|
|
314 #endif
|
|
315 #ifndef XIEdefines
|
|
316 #if BuildXIE
|
|
317 #define XIEdefines -DXIE
|
|
318 #else
|
|
319 #define XIEdefines /**/
|
|
320 #endif
|
|
321 #endif
|
|
322 #ifndef BaseExtensionDefines
|
|
323 #define BaseExtensionDefines -DSHAPE -DMULTIBUFFER -DMITMISC -DXTEST -DBIGREQS PexDefines ShmDefines XInputDefines XTrapDefines ScreenSaverDefines XIEdefines
|
|
324 #endif
|
|
325 #define ExtensionDefines BaseExtensionDefines ExtensionOSDefines
|
|
326 #endif
|
|
327 #ifndef ServerExtraDefines
|
|
328 #define ServerExtraDefines -DXDMCP -DPIXPRIV
|
|
329 #endif
|
|
330 #ifndef ServerOSDefines
|
|
331 #define ServerOSDefines /**/
|
|
332 #endif
|
|
333 #ifndef ServerDefines
|
|
334 #define ServerDefines StandardDefines ServerExtraDefines ExtensionDefines ServerOSDefines
|
|
335 #endif
|
|
336 #ifndef PexDipexDefines
|
|
337 #define PexDipexDefines /**/
|
|
338 #endif
|
|
339 #ifndef PexDdpexDefines
|
|
340 #define PexDdpexDefines /**/
|
|
341 #endif
|
|
342 #ifndef PexPhigsDefines
|
|
343 #ifndef PexShmIPC
|
|
344 #define PexShmIPC HasShm
|
|
345 #endif
|
|
346 #if PexShmIPC
|
|
347 #define PexPhigsDefines /**/
|
|
348 #else
|
|
349 #define PexPhigsDefines -DPEX_API_SOCKET_IPC
|
|
350 #endif
|
|
351 #endif
|
|
352 #ifndef PexClientDefines
|
|
353 #define PexClientDefines -DPEX_SI_PHIGS
|
|
354 #endif
|
|
355 #ifndef PhigsInclude
|
|
356 #ifdef UseInstalled
|
|
357 #define PhigsInclude -I$(INCDIR)
|
|
358 #else
|
|
359 #define PhigsInclude -I$(BUILDINCDIR)
|
|
360 #endif
|
|
361 #endif
|
|
362 #ifndef PexCDebugFlags
|
|
363 #define PexCDebugFlags DebuggableCDebugFlags
|
|
364 #endif
|
|
365 #ifndef PexCCOptions
|
|
366 #ifdef LibraryCCOptions
|
|
367 #define PexCCOptions LibraryCCOptions
|
|
368 #else
|
|
369 #define PexCCOptions DefaultCCOptions
|
|
370 #endif
|
|
371 #endif
|
|
372 #ifndef DefaultFSConfigFile
|
|
373 #define DefaultFSConfigFile $(LIBDIR)/fs/config
|
|
374 #endif
|
|
375 #ifndef BinDir
|
|
376 #ifdef ProjectRoot
|
|
377 #define BinDir Concat(ProjectRoot,/bin)
|
|
378 #else
|
|
379 #define BinDir /usr/bin/X11
|
|
380 #endif
|
|
381 #endif
|
|
382 #ifndef BuildIncRoot
|
|
383 #define BuildIncRoot $(TOP)
|
|
384 #endif
|
|
385 #ifndef BuildIncTop
|
|
386 #define BuildIncTop .. /* relative to $(TOP)/X11 */
|
|
387 #endif
|
|
388 #ifndef LibDir
|
|
389 #define LibDir $(USRLIBDIR)/X11
|
|
390 #endif
|
|
391 #ifndef ConfigDir
|
|
392 #define ConfigDir $(LIBDIR)/config
|
|
393 #endif
|
|
394 #ifndef LintlibDir
|
|
395 #define LintlibDir $(USRLIBDIR)/lint
|
|
396 #endif
|
|
397 #ifndef FontDir
|
|
398 #define FontDir $(LIBDIR)/fonts
|
|
399 #endif
|
|
400 #ifndef AdmDir
|
|
401 #define AdmDir /usr/adm
|
|
402 #endif
|
|
403 #ifndef XinitDir
|
|
404 #define XinitDir $(LIBDIR)/xinit
|
|
405 #endif
|
|
406 #ifndef XdmDir
|
|
407 #define XdmDir $(LIBDIR)/xdm
|
|
408 #endif
|
|
409 #ifndef XdmConfigurationSubdirectory /* under xdm sources */
|
|
410 #define XdmConfigurationSubdirectory config
|
|
411 #endif
|
|
412 #ifndef TwmDir
|
|
413 #define TwmDir $(LIBDIR)/twm
|
|
414 #endif
|
|
415 #ifndef ManPath
|
|
416 #define ManPath ManDirectoryRoot
|
|
417 #endif
|
|
418 #ifndef ManSourcePath
|
|
419 #define ManSourcePath $(MANPATH)/man
|
|
420 #endif
|
|
421 #ifndef ManDir
|
|
422 #define ManDir $(MANSOURCEPATH)$(MANSUFFIX)
|
|
423 #endif
|
|
424 #ifndef LibmanDir
|
|
425 #define LibmanDir $(MANSOURCEPATH)$(LIBMANSUFFIX)
|
|
426 #endif
|
|
427 #ifndef NlsDir
|
|
428 #define NlsDir $(LIBDIR)/nls
|
|
429 #endif
|
|
430 #ifndef PexApiDir
|
|
431 #define PexApiDir $(LIBDIR)/PEX
|
|
432 #endif
|
|
433 #ifndef XFileSearchPathBase
|
|
434 /* avoid SCCS keyword */
|
|
435 #define XFileSearchPathBase Concat4($(LIBDIR)/%L/%T/%N%C,%S:$(LIBDIR)/%l/%T/%N%C,%S:$(LIBDIR)/%T/%N%C,%S:$(LIBDIR)/%L/%T/%N%S:$(LIBDIR)/%l/%T/%N%S:$(LIBDIR)/%T/%N%S)
|
|
436 #endif
|
|
437 #ifndef XFileSearchPathDefault
|
|
438 #ifdef XAppLoadDir
|
|
439 /* avoid SCCS keyword */
|
|
440 #define XFileSearchPathDefault XAppLoadDir/Concat(%N%C,%S):XAppLoadDir/%N%S:XFileSearchPathBase
|
|
441 #else
|
|
442 #define XFileSearchPathDefault XFileSearchPathBase
|
|
443 #endif
|
|
444 #endif
|
|
445 #ifndef XAppLoadDir
|
|
446 #define XAppLoadDir $(LIBDIR)/app-defaults
|
|
447 #endif
|
|
448 #ifndef XtErrorPrefix
|
|
449 #define XtErrorPrefix /* as empty string */
|
|
450 #endif
|
|
451 #ifndef XtExtraDefines
|
|
452 #define XtExtraDefines /* as empty string */
|
|
453 #endif
|
|
454 #ifndef XtWarningPrefix
|
|
455 #define XtWarningPrefix /* as empty string */
|
|
456 #endif
|
|
457 #ifndef OsNameDefines
|
|
458 #define OsNameDefines /* as nothing */
|
|
459 #endif
|
|
460 #ifndef DefaultUserPath /* for xdm */
|
|
461 #define DefaultUserPath :/bin:/usr/bin:$(BINDIR):/usr/ucb
|
|
462 #endif
|
|
463 #ifndef DefaultSystemPath /* for xdm */
|
|
464 #define DefaultSystemPath /etc:/bin:/usr/bin:$(BINDIR):/usr/ucb
|
|
465 #endif
|
|
466 #ifndef DefaultSystemShell /* for xdm to set in SHELL */
|
|
467 #define DefaultSystemShell BourneShell
|
|
468 #endif
|
|
469 #ifndef UseCCMakeDepend /* use slow cc -E script */
|
|
470 #define UseCCMakeDepend NO
|
|
471 #endif
|
|
472 #ifndef DependDir
|
|
473 #if UseCCMakeDepend
|
|
474 #define DependDir $(SCRIPTSRC)
|
|
475 #else
|
|
476 #define DependDir $(UTILSRC)/makedepend
|
|
477 #endif
|
|
478 #endif
|
|
479 #ifndef ContribDir
|
|
480 #define ContribDir $(TOP)/../contrib /* contrib is outside core tree */
|
|
481 #endif
|
|
482 #ifndef DependCmd
|
|
483 #define DependCmd $(DEPENDSRC)/makedepend
|
|
484 #endif
|
|
485 #ifndef RemoveTargetProgramByMoving
|
|
486 #define RemoveTargetProgramByMoving NO
|
|
487 #endif
|
|
488 #ifndef AllocateLocalDefines
|
|
489 #define AllocateLocalDefines /**/
|
|
490 #endif
|
|
491
|
|
492 #ifndef ForceNormalLib
|
|
493 #define ForceNormalLib (HasSaberC | HasGcc)
|
|
494 #endif
|
|
495 #ifndef SharedLibX
|
|
496 #define SharedLibX HasSharedLibraries
|
|
497 #endif
|
|
498 #ifndef NormalLibX
|
|
499 #define NormalLibX (!SharedLibX | ForceNormalLib)
|
|
500 #endif
|
|
501 #ifndef SharedOldLibX
|
|
502 #define SharedOldLibX HasSharedLibraries
|
|
503 #endif
|
|
504 #ifndef NormalOldLibX
|
|
505 #define NormalOldLibX (!SharedOldLibX | ForceNormalLib)
|
|
506 #endif
|
|
507 #ifndef SharedLibXt
|
|
508 #define SharedLibXt HasSharedLibraries
|
|
509 #endif
|
|
510 #ifndef NormalLibXt
|
|
511 #define NormalLibXt (!SharedLibXt | ForceNormalLib)
|
|
512 #endif
|
|
513 #ifndef SharedLibXaw
|
|
514 #define SharedLibXaw HasSharedLibraries
|
|
515 #endif
|
|
516 #ifndef NormalLibXaw
|
|
517 #define NormalLibXaw (!SharedLibXaw | ForceNormalLib)
|
|
518 #endif
|
|
519 #ifndef SharedLibXmu
|
|
520 #define SharedLibXmu HasSharedLibraries
|
|
521 #endif
|
|
522 #ifndef NormalLibXmu
|
|
523 #define NormalLibXmu (!SharedLibXmu | ForceNormalLib)
|
|
524 #endif
|
|
525 #ifndef SharedLibXau
|
|
526 #define SharedLibXau NO /* don't need shared form */
|
|
527 #endif
|
|
528 #ifndef NormalLibXau
|
|
529 #define NormalLibXau (!SharedLibXau | ForceNormalLib)
|
|
530 #endif
|
|
531 #ifndef SharedLibXdmcp
|
|
532 #define SharedLibXdmcp NO /* don't need shared form */
|
|
533 #endif
|
|
534 #ifndef NormalLibXdmcp
|
|
535 #define NormalLibXdmcp (!SharedLibXdmcp | ForceNormalLib)
|
|
536 #endif
|
|
537 #ifndef SharedLibXext
|
|
538 #define SharedLibXext HasSharedLibraries
|
|
539 #endif
|
|
540 #ifndef NormalLibXext
|
|
541 #define NormalLibXext (!SharedLibXext | ForceNormalLib)
|
|
542 #endif
|
|
543 #ifndef SharedLibXinput
|
|
544 #define SharedLibXinput HasSharedLibraries
|
|
545 #endif
|
|
546 #ifndef NormalLibXinput
|
|
547 #define NormalLibXinput (!SharedLibXinput | ForceNormalLib)
|
|
548 #endif
|
|
549 #ifndef SharedLibXTest
|
|
550 #define SharedLibXTest HasSharedLibraries
|
|
551 #endif
|
|
552 #ifndef NormalLibXTest
|
|
553 #define NormalLibXTest (!SharedLibXTest | ForceNormalLib)
|
|
554 #endif
|
|
555 #ifndef SharedLibXTrap
|
|
556 #define SharedLibXTrap HasSharedLibaries
|
|
557 #endif
|
|
558 #ifndef NormalLibXTrap
|
|
559 #define NormalLibXTrap (!SharedLibXTrap | ForceNormalLib)
|
|
560 #endif
|
|
561 #ifndef SharedLibPex
|
|
562 #define SharedLibPex HasSharedLibraries
|
|
563 #endif
|
|
564 #ifndef NormalLibPex
|
|
565 #define NormalLibPex (!SharedLibPex | ForceNormalLib)
|
|
566 #endif
|
|
567 #ifndef SharedLibPhigs
|
|
568 #define SharedLibPhigs NO /* XXX - haven't made it sharable yet */
|
|
569 #endif
|
|
570 #ifndef NormalLibPhigs
|
|
571 #define NormalLibPhigs (!SharedLibPhigs | ForceNormalLib)
|
|
572 #endif
|
|
573
|
|
574
|
|
575 #ifndef DoInstallExtensionsIntoXlib
|
|
576 #define DoInstallExtensionsIntoXlib NO /* merge libXext.a into libX11.a */
|
|
577 #endif
|
|
578
|
|
579 XCOMM -------------------------------------------------------------------------
|
|
580 XCOMM X Window System make variables; this need to be coordinated with rules
|
|
581
|
|
582 /*
|
|
583 * This list must be reflected in the DIRS_TO_BUILD list in the top-level
|
|
584 * Makefile.
|
|
585 */
|
|
586 PATHSEP = / /* for building filenames */
|
|
587 USRLIBDIR = UsrLibDir /* nonshared libraries */
|
|
588 SHLIBDIR = ShLibDir /* shared libraries */
|
|
589 BINDIR = BinDir /* programs */
|
|
590 INCROOT = IncRoot /* base of where to put header files */
|
|
591 BUILDINCROOT = BuildIncRoot /* base of build loc */
|
|
592 BUILDINCDIR = $(BUILDINCROOT)/X11
|
|
593 BUILDINCTOP = BuildIncTop /* top relative to BUILDINCDIR */
|
|
594 INCDIR = $(INCROOT)/X11 /* header files, must end in X11 */
|
|
595 ADMDIR = AdmDir /* server log files */
|
|
596 LIBDIR = LibDir /* rgb, XErrorDB, etc. */
|
|
597 CONFIGDIR = ConfigDir /* build configuration information */
|
|
598 LINTLIBDIR = LintlibDir /* lint libraries */
|
|
599
|
|
600 FONTDIR = FontDir /* font directories */
|
|
601 XINITDIR = XinitDir /* xinit config files */
|
|
602 XDMDIR = XdmDir /* xdm config files */
|
|
603 TWMDIR = TwmDir /* twm config files */
|
|
604 MANPATH = ManPath /* top of manual page tree */
|
|
605 MANSOURCEPATH = ManSourcePath /* prefix for man page sources */
|
|
606 MANSUFFIX = ManSuffix /* suffix for man pages */
|
|
607 LIBMANSUFFIX = LibManSuffix /* suffix for library man pages */
|
|
608 MANDIR = ManDir /* man pages for commands */
|
|
609 LIBMANDIR = LibmanDir /* man pages for library routines */
|
|
610 NLSDIR = NlsDir /* nls files */
|
|
611 PEXAPIDIR = PexApiDir /* PEX support files */
|
|
612 XAPPLOADDIR = XAppLoadDir /* application default resource dir */
|
|
613 FONTCFLAGS = FontCompilerFlags
|
|
614
|
|
615 INSTAPPFLAGS = $(INSTDATFLAGS) /* XXX - this should go away - XXX */
|
|
616
|
|
617 #ifdef UseInstalled
|
|
618 IMAKE = imake /* assume BINDIR in path */
|
|
619 DEPEND = makedepend /* assume BINDIR in path */
|
|
620 RGB = rgb /* assume BINDIR in path */
|
|
621 #ifdef SnfFonts
|
|
622 FONTC = bdftosnf /* assume BINDIR in path */
|
|
623 #else
|
|
624 FONTC = bdftopcf /* assume BINDIR in path */
|
|
625 #endif
|
|
626 MKFONTDIR = mkfontdir /* assume BINDIR in path */
|
|
627 MKDIRHIER = BourneShell $(BINDIR)/mkdirhier
|
|
628 #else
|
|
629 IMAKE = $(IMAKESRC)/imake
|
|
630 DEPEND = DependCmd
|
|
631 RGB = $(RGBSRC)/rgb
|
|
632 #ifdef SnfFonts
|
|
633 FONTC = $(BDFTOSNFSRC)/bdftosnf
|
|
634 #else
|
|
635 FONTC = $(BDFTOPCFSRC)/bdftopcf
|
|
636 #endif
|
|
637 MKFONTDIR = $(MKFONTDIRSRC)/mkfontdir
|
|
638 MKDIRHIER = BourneShell $(SCRIPTSRC)/mkdirhier.sh
|
|
639 #endif
|
|
640
|
|
641 CONFIGSRC = $(TOP)/config
|
|
642 DOCUTILSRC = $(TOP)/doc/util
|
|
643 CLIENTSRC = $(TOP)/clients
|
|
644 DEMOSRC = $(TOP)/demos
|
|
645 LIBSRC = $(TOP)/lib
|
|
646 FONTSRC = $(TOP)/fonts
|
|
647 INCLUDESRC = $(TOP)/X11
|
|
648 SERVERSRC = $(TOP)/server
|
|
649 UTILSRC = $(TOP)/util
|
|
650 SCRIPTSRC = $(UTILSRC)/scripts
|
|
651 EXAMPLESRC = $(TOP)/examples
|
|
652 CONTRIBSRC = ContribDir
|
|
653 DOCSRC = $(TOP)/doc
|
|
654 RGBSRC = $(TOP)/rgb
|
|
655 DEPENDSRC = DependDir
|
|
656 IMAKESRC = $(CONFIGSRC)
|
|
657 XAUTHSRC = $(LIBSRC)/Xau
|
|
658 XLIBSRC = $(LIBSRC)/X
|
|
659 XMUSRC = $(LIBSRC)/Xmu
|
|
660 TOOLKITSRC = $(LIBSRC)/Xt
|
|
661 AWIDGETSRC = $(LIBSRC)/Xaw
|
|
662 OLDXLIBSRC = $(LIBSRC)/oldX
|
|
663 XDMCPLIBSRC = $(LIBSRC)/Xdmcp
|
|
664 #ifdef SnfFonts
|
|
665 BDFTOSNFSRC = $(FONTSRC)/clients/bdftosnf
|
|
666 #else
|
|
667 BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf
|
|
668 #endif
|
|
669 MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
|
|
670 FSLIBSRC = $(FONTSRC)/lib/fs
|
|
671 FONTSERVERSRC = $(FONTSRC)/server
|
|
672 EXTENSIONSRC = $(TOP)/extensions
|
|
673 XILIBSRC = $(EXTENSIONSRC)/lib/xinput
|
|
674 XTESTLIBSRC = $(EXTENSIONSRC)/lib/xtest
|
|
675 PEXLIBSRC = $(EXTENSIONSRC)/lib/PEXlib
|
|
676 PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX
|
|
677
|
|
678 /*
|
|
679 * _Use - makes a choice based on UseInstalled.
|
|
680 */
|
|
681 #ifndef _Use
|
|
682 #ifdef UseInstalled
|
|
683 #define _Use(a,b) a
|
|
684 #else
|
|
685 #define _Use(a,b) b
|
|
686 #endif
|
|
687 #endif
|
|
688
|
|
689 /*
|
|
690 * _UseCat - combination of _Use and Concat.
|
|
691 * exists to avoid problems with some preprocessors
|
|
692 */
|
|
693 #ifndef _UseCat
|
|
694 #if (__STDC__ && !defined(UnixCpp)) || defined(AnsiCpp)
|
|
695 #ifdef UseInstalled
|
|
696 #define _UseCat(a,b,c) a##c
|
|
697 #else
|
|
698 #define _UseCat(a,b,c) b##c
|
|
699 #endif
|
|
700 #else
|
|
701 #ifdef UseInstalled
|
|
702 #define _UseCat(a,b,c) a/**/c
|
|
703 #else
|
|
704 #define _UseCat(a,b,c) b/**/c
|
|
705 #endif
|
|
706 #endif
|
|
707 #endif
|
|
708
|
|
709 #ifndef ShLibIncludeFile
|
|
710 /* need this to make ANSI-style preprocessors happy */
|
|
711 #define ShLibIncludeFile <noop.rules>
|
|
712 #endif
|
|
713
|
|
714 #include ShLibIncludeFile
|
|
715
|
|
716 #if HasSharedLibraries
|
|
717 SOXLIBREV = SharedXlibRev
|
|
718 SOXTREV = SharedXtRev
|
|
719 SOXAWREV = SharedXawRev
|
|
720 SOOLDXREV = SharedOldXRev
|
|
721 SOXMUREV = SharedXmuRev
|
|
722 SOXEXTREV = SharedXextRev
|
|
723 SOXINPUTREV = SharedXinputRev
|
|
724 SOXTESTREV = SharedXTestRev
|
|
725 SOXTRAPREV = SharedXTrapRev
|
|
726 SOPEXREV = SharedPexRev
|
|
727 #endif
|
|
728
|
|
729 #if !SharedLibXext
|
|
730 DEPEXTENSIONLIB = _UseCat($(USRLIBDIR),$(EXTENSIONSRC)/lib,/libXext.a)
|
|
731 EXTENSIONLIB = LoaderLibPrefix _Use(-lXext, $(DEPEXTENSIONLIB))
|
|
732 #endif
|
|
733 #if !SharedLibX
|
|
734 DEPXLIB = $(DEPEXTENSIONLIB) _UseCat($(USRLIBDIR),$(XLIBSRC),/libX11.a)
|
|
735 XLIBONLY = LoaderLibPrefix _Use(-lX11,$(XLIBSRC)/libX11.a)
|
|
736 XLIB = $(EXTENSIONLIB) $(XLIBONLY)
|
|
737 #endif
|
|
738 DEPXAUTHLIB = _UseCat($(USRLIBDIR),$(XAUTHSRC),/libXau.a)
|
|
739 XAUTHLIB = LoaderLibPrefix _Use(-lXau,$(DEPXAUTHLIB))
|
|
740 DEPXDMCPLIB = _UseCat($(USRLIBDIR),$(XDMCPLIBSRC),/libXdmcp.a)
|
|
741 XDMCPLIB = LoaderLibPrefix _Use(-lXdmcp,$(DEPXDMCPLIB))
|
|
742 #if !SharedLibXmu
|
|
743 DEPXMULIB = _UseCat($(USRLIBDIR),$(XMUSRC),/libXmu.a)
|
|
744 XMULIB = LoaderLibPrefix _Use(-lXmu,$(DEPXMULIB))
|
|
745 #endif
|
|
746 #if !SharedOldLibX
|
|
747 DEPOLDXLIB = _UseCat($(USRLIBDIR),$(OLDXLIBSRC),/liboldX.a)
|
|
748 OLDXLIB = LoaderLibPrefix _Use(-loldX,$(DEPOLDXLIB))
|
|
749 #endif
|
|
750 #if !SharedLibXt
|
|
751 DEPXTOOLLIB = _UseCat($(USRLIBDIR),$(TOOLKITSRC),/libXt.a)
|
|
752 XTOOLLIB = LoaderLibPrefix _Use(-lXt,$(DEPXTOOLLIB))
|
|
753 #endif
|
|
754 #if !SharedLibXaw
|
|
755 DEPXAWLIB = _UseCat($(USRLIBDIR),$(AWIDGETSRC),/libXaw.a)
|
|
756 XAWLIB = LoaderLibPrefix _Use(-lXaw,$(DEPXAWLIB))
|
|
757 #endif
|
|
758 #if !SharedLibXinput
|
|
759 DEPXILIB = _UseCat($(USRLIBDIR),$(XILIBSRC),/libXi.a)
|
|
760 XILIB = LoaderLibPrefix _Use(-lXi,$(DEPXILIB))
|
|
761 #endif
|
|
762 #if !SharedLibXTest
|
|
763 DEPXTESTLIB = _UseCat($(USRLIBDIR),$(XTESTLIBSRC),/libXtst.a)
|
|
764 XTESTLIB = LoaderLibPrefix _Use(-lXtst,$(DEPXTESTLIB))
|
|
765 #endif
|
|
766 #if !SharedLibPex
|
|
767 DEPPEXLIB = _UseCat($(USRLIBDIR),$(PEXLIBSRC),/libPEX5.a)
|
|
768 PEXLIB = LoaderLibPrefix _Use(-lPEX5,$(DEPPEXLIB))
|
|
769 #endif
|
|
770 #if !SharedLibPhigs
|
|
771 DEPPHIGSLIB = _UseCat($(USRLIBDIR),$(PHIGSLIBSRC),/libphigs.a)
|
|
772 PHIGSLIB = LoaderLibPrefix _Use(-lphigs,$(DEPPHIGSLIB))
|
|
773 #endif
|
|
774 DEPXBSDLIB = _UseCat($(USRLIBDIR),$(LIBSRC)/Berk,/libXbsd.a)
|
|
775 XBSDLIB = LoaderLibPrefix _Use(-lXbsd,$(DEPXBSDLIB))
|
|
776
|
|
777 LINTEXTENSIONLIB = _UseCat($(LINTLIBDIR),$(EXTENSIONSRC)/lib,/llib-lXext.ln)
|
|
778 LINTXLIB = _UseCat($(LINTLIBDIR),$(XLIBSRC),/llib-lX11.ln)
|
|
779 LINTXMU = _UseCat($(LINTLIBDIR),$(XMUSRC),/llib-lXmu.ln)
|
|
780 LINTXTOOL = _UseCat($(LINTLIBDIR),$(TOOLKITSRC),/llib-lXt.ln)
|
|
781 LINTXAW = _UseCat($(LINTLIBDIR),$(AWIDGETSRC),/llib-lXaw.ln)
|
|
782 LINTXI = _UseCat($(LINTLIBDIR),$(XILIBSRC),/llib-lXi.ln)
|
|
783 LINTPEX = _UseCat($(LINTLIBDIR),$(PEXLIBSRC),/llib-lPEX5.ln)
|
|
784 LINTPHIGS = _UseCat($(LINTLIBDIR),$(PHIGSLIBSRC),/llib-lphigs.ln)
|
|
785
|
|
786 #ifndef XawClientDepLibs
|
|
787 #define XawClientDepLibs $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
|
|
788 #endif
|
|
789 #ifndef XawClientLibs
|
|
790 #define XawClientLibs $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
|
|
791 #endif
|
|
792
|
|
793 #ifndef NeedDefaultDepLibs
|
|
794 #define NeedDefaultDepLibs YES
|
|
795 #endif
|
|
796
|
|
797 #if NeedDefaultDepLibs
|
|
798 /*
|
|
799 * Individual libraries should override this
|
|
800 */
|
|
801 #if HasSharedLibraries || UseInstalled
|
|
802 DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
|
|
803 #else
|
|
804 DEPLIBS = $(LOCAL_LIBRARIES)
|
|
805 #endif
|
|
806 DEPLIBS1 = $(DEPLIBS)
|
|
807 DEPLIBS2 = $(DEPLIBS)
|
|
808 DEPLIBS3 = $(DEPLIBS)
|
|
809 #endif /* NeedDefaultDepLibs */
|
|
810
|
|
811 /* */#
|
|
812 /* */# OMRON INPUT MATHOD MAKE ENV
|
|
813 /* */#
|
|
814
|
|
815 #if defined(uniosu) || (defined(SVR4) && !defined(DGUX)) || defined(hpux)
|
|
816 #define termLibrary -lcurses
|
|
817 #define cvtfileDir ./sysV
|
|
818 #else
|
|
819 #define termLibrary -ltermcap
|
|
820 #define cvtfileDir ./bsd
|
|
821 #endif
|
|
822
|
|
823 #define WnnSpecialObjectRule(obj, depends, direct, define) @@\
|
|
824 obj : depends @@\
|
|
825 $(CC) -c $(CFLAGS) define direct/`basename $@ .o`.c @@\
|
|
826
|
|
827 #ifdef WnnMakeDirectories
|
|
828 #undef WnnMakeDirectories
|
|
829 #endif
|
|
830 #define WnnMakeDirectories(step,dir) @@\
|
|
831 step:: @@\
|
|
832 @case '${MFLAGS}' in *[i]*) set +e;; esac; @@\
|
|
833 DirFailPrefix@for i in dir; do if [ -d $(DESTDIR)$$i ]; then \ @@\
|
|
834 set +x; else (set -x; $(MKDIRHIER) $(DESTDIR)$$i; \ @@\
|
|
835 chown $(WNNOWNER) $(DESTDIR)$$i); fi \ @@\
|
|
836 done
|
|
837
|
|
838 #define LinkDiffNameFile(src,dest,dir) @@\
|
|
839 src: dir/dest @@\
|
|
840 $(RM) $@ @@\
|
|
841 $(LN) $? $@ @@\
|
|
842
|
|
843 #ifdef MakeMakeSubdirs
|
|
844 #undef MakeMakeSubdirs
|
|
845 #endif
|
|
846 #define MakeMakeSubdirs(dirs,target) @@\
|
|
847 target:: @@\
|
|
848 DirFailPrefix@case '${MFLAGS}' in *[ik]*) set +e;; esac; \ @@\
|
|
849 case '${MFLAGS}' in *n*) executeit="no";; esac; \ @@\
|
|
850 for i in dirs ;\ @@\
|
|
851 do \ @@\
|
|
852 echo "making Makefiles in $(CURRENT_DIR)/$$i..."; \ @@\
|
|
853 case "$$i" in \ @@\
|
|
854 ./?*/?*/?*/?*) newtop=../../../../;; \ @@\
|
|
855 ./?*/?*/?*) newtop=../../../;; \ @@\
|
|
856 ./?*/?*) newtop=../../;; \ @@\
|
|
857 ./?*) newtop=../;; \ @@\
|
|
858 */?*/?*/?*) newtop=../../../../;; \ @@\
|
|
859 */?*/?*) newtop=../../../;; \ @@\
|
|
860 */?*) newtop=../../;; \ @@\
|
|
861 *) newtop=../;; \ @@\
|
|
862 esac; \ @@\
|
|
863 case "$(TOP)" in \ @@\
|
|
864 /?*) imaketop= ;; \ @@\
|
|
865 *) imaketop=$$newtop ;; \ @@\
|
|
866 esac; \ @@\
|
|
867 cd $$i; \ @@\
|
|
868 $(RM) Makefile.bak; \ @@\
|
|
869 if [ -f Makefile ]; then \ @@\
|
|
870 echo " $(MV) Makefile Makefile.bak"; \ @@\
|
|
871 if [ "$$executeit" != "no" ]; then \ @@\
|
|
872 $(MV) Makefile Makefile.bak; \ @@\
|
|
873 fi; \ @@\
|
|
874 fi; \ @@\
|
|
875 if [ "$$executeit" != "no" ]; then \ @@\
|
|
876 ImakeSubCmdHelper -DTOPDIR=$$imaketop$(TOP) -DCURDIR=$(CURRENT_DIR)/$$i; \ @@\
|
|
877 fi; \ @@\
|
|
878 $(MAKE) $(MFLAGS) Makefiles; \ @@\
|
|
879 cd $$newtop; \ @@\
|
|
880 done
|
|
881
|
|
882 #ifdef ImakeSubCmdHelper
|
|
883 #undef ImakeSubCmdHelper
|
|
884 #endif
|
|
885
|
|
886 #ifdef UseInstalled
|
|
887 #define ImakeSubCmdHelper $(IMAKE) -DUseInstalled -I$$newtop$(IMIRULESRC) -I$$imaketop$(NEWTOP)$(IRULESRC) -DIMROOT=$$newtop$(IMTOP) $(IMAKE_DEFINES)
|
|
888 #else
|
|
889 #define ImakeSubCmdHelper $$imaketop$(NEWTOP)$(IMAKE) -I$$imaketop$(NEWTOP)$(IMIRULESRC) -I$$imaketop$(NEWTOP)$(IRULESRC) $(IMAKE_DEFINES)
|
|
890 #endif
|
|
891
|
|
892 #define WnnInstallDicMultiple(list,dest) @@\
|
|
893 install:: list @@\
|
|
894 MakeDir($(DESTDIR)dest) @@\
|
|
895 @case '${MFLAGS}' in *[i]*) set +e;; esac; @@\
|
|
896 @for i in list; do if [ -f $(DESTDIR)dest/$$i ]; then \ @@\
|
|
897 set +x; \ @@\
|
|
898 else (set -x; \ @@\
|
|
899 $(INSTALL) -c $(INSTALLFLAGS) $$i $(DESTDIR)dest; \ @@\
|
|
900 $(WNNTOUCH) $(DESTDIR)dest/$$i); fi \ @@\
|
|
901 done
|
|
902
|
|
903 #ifndef BuildWnn
|
|
904 #define BuildWnn YES
|
|
905 #endif
|
|
906 #ifndef BuildCWnn
|
|
907 #define BuildCWnn YES
|
|
908 #endif
|
|
909 #ifndef BuildKWnn
|
|
910 #define BuildKWnn YES
|
|
911 #endif
|
|
912 #ifndef BuildXwnmo
|
|
913 #define BuildXwnmo YES
|
|
914 #endif
|
|
915
|
|
916 #ifndef BuildJserver
|
|
917 #define BuildJserver YES
|
|
918 #endif
|
|
919 #ifndef BuildJlib
|
|
920 #define BuildJlib YES
|
|
921 #endif
|
|
922 #ifndef BuildWnnClients
|
|
923 #define BuildWnnClients YES
|
|
924 #endif
|
|
925 #ifndef BuildWnnDicUtil
|
|
926 #define BuildWnnDicUtil YES
|
|
927 #endif
|
|
928 #ifndef BuildPubdic
|
|
929 #define BuildPubdic YES
|
|
930 #endif
|
|
931 #ifndef BuildWnnConsDic
|
|
932 #define BuildWnnConsDic YES
|
|
933 #endif
|
|
934 #ifndef BuildWnnMan
|
|
935 #define BuildWnnMan YES
|
|
936 #endif
|
|
937 #ifndef BuildJlibV3
|
|
938 #define BuildJlibV3 NO
|
|
939 #endif
|
|
940 #if BuildPubdic || BuildWnnConsDic
|
|
941 #define BuildWnnDicUtilForCompile YES
|
|
942 #else
|
|
943 #define BuildWnnDicUtilForCompile NO
|
|
944 #endif
|
|
945
|
|
946 #ifndef BuildCserver
|
|
947 #define BuildCserver YES
|
|
948 #endif
|
|
949 #ifndef BuildTserver
|
|
950 #define BuildTserver YES
|
|
951 #endif
|
|
952 #ifndef BuildCJlib
|
|
953 #define BuildCJlib YES
|
|
954 #endif
|
|
955 #ifndef BuildCWnnClients
|
|
956 #define BuildCWnnClients YES
|
|
957 #endif
|
|
958 #ifndef BuildCWnnDicUtil
|
|
959 #define BuildCWnnDicUtil YES
|
|
960 #endif
|
|
961 #ifndef BuildCDic
|
|
962 #define BuildCDic YES
|
|
963 #endif
|
|
964 #ifndef BuildTDic
|
|
965 #define BuildTDic YES
|
|
966 #endif
|
|
967 #if BuildCDic || BuildTDic
|
|
968 #define BuildCWnnDicUtilForCompile YES
|
|
969 #else
|
|
970 #define BuildCWnnDicUtilForCompile NO
|
|
971 #endif
|
|
972
|
|
973 #ifndef BuildKserver
|
|
974 #define BuildKserver YES
|
|
975 #endif
|
|
976 #ifndef BuildKJlib
|
|
977 #define BuildKJlib YES
|
|
978 #endif
|
|
979 #ifndef BuildKWnnClients
|
|
980 #define BuildKWnnClients YES
|
|
981 #endif
|
|
982 #ifndef BuildKWnnDicUtil
|
|
983 #define BuildKWnnDicUtil YES
|
|
984 #endif
|
|
985 #ifndef BuildKDic
|
|
986 #define BuildKDic YES
|
|
987 #endif
|
|
988 #if BuildKDic
|
|
989 #define BuildKWnnDicUtilForCompile YES
|
|
990 #else
|
|
991 #define BuildCWnnDicUtilForCompile NO
|
|
992 #endif
|
|
993
|
|
994 /*
|
|
995 * If you want to install dictionaries forcibly, set WnnInstallDicForcibly
|
|
996 * as YES. Default is that dictionary isn't installed if it exist already.
|
|
997 */
|
|
998
|
|
999 WNNOWNER = wnn
|
|
1000 #ifdef UseInstalled
|
|
1001 IMTOP = IMROOT
|
|
1002 #else
|
|
1003 IMTOP = $(CONTRIBSRC)/im/Xsi
|
|
1004 #endif
|
|
1005 WNNWNNDIR = /usr/local/lib/wnn
|
|
1006 WNNBINDIR = /usr/local/bin
|
|
1007 WNNINCDIR = $(INCROOT)
|
|
1008 WNNLIBDIR = $(USRLIBDIR)
|
|
1009 WNNTERM_LIB = termLibrary
|
|
1010
|
|
1011 PUBDICSRC = $(IMTOP)/Pubdic
|
|
1012 WNNCONSDICSRC = $(IMTOP)/Wnn-consortium/dic
|
|
1013
|
|
1014 WNNTOP = $(IMTOP)/Wnn
|
|
1015 JWNNLANG = ja_JP
|
|
1016 JWNNWNNDIR = $(WNNWNNDIR)/$(JWNNLANG)
|
|
1017 JWNNBINDIR = $(WNNBINDIR)/Wnn4
|
|
1018 JWNNINCDIR = $(WNNINCDIR)/wnn
|
|
1019 JWNNDICDIR = $(JWNNWNNDIR)/dic
|
|
1020 JWNNPUBDICDIR = $(JWNNDICDIR)/pubdic
|
|
1021 JWNNWNNCONSDICDIR = $(JWNNDICDIR)/wnncons
|
|
1022 JWNNFZKSRCDIR = $(JWNNDICDIR)/src
|
|
1023 WNNCONVSRC = $(WNNTOP)/conv
|
|
1024 WNNETCSRC = $(WNNTOP)/etc
|
|
1025 WNNINCLUDESRC = $(WNNTOP)/include
|
|
1026 WNNJDSRC = $(WNNTOP)/jd
|
|
1027 WNNJLIBSRC = $(WNNTOP)/jlib
|
|
1028 WNNJLIBV3SRC = $(WNNTOP)/jlib.V3
|
|
1029 WNNJSERVERSRC = $(WNNTOP)/jserver
|
|
1030 WNNJUTILSRC = $(WNNTOP)/jutil
|
|
1031 WNNLDSRC = $(WNNTOP)/ld
|
|
1032 WNNPUBDICSRC = $(WNNTOP)/pubdic
|
|
1033 WNNWNNCONSSRC = $(WNNTOP)/wnncons
|
|
1034 WNNWNNCONSDICSRC = $(WNNWNNCONSSRC)/dic
|
|
1035 WNNROMKANSRC = $(WNNTOP)/romkan
|
|
1036 WNNUUMSRC = $(WNNTOP)/uum
|
|
1037 WNNCNVFILEDIR = $(WNNJDSRC)/cvtfileDir
|
|
1038 WNNINCLUDES = -I$(WNNINCLUDESRC) -I$(WNNROMKANMSRC)
|
|
1039 WNNDEFINES = -DLIBDIR=\"$(WNNWNNDIR)\"
|
|
1040 WNNJLIB = $(WNNJLIBSRC)/libwnn.a
|
|
1041 WNNCONVLIB = $(WNNCONVSRC)/libconvkey.a
|
|
1042
|
|
1043 CWNNTOP = $(IMTOP)/cWnn
|
|
1044 CWNNLANG = zh_CN
|
|
1045 CWNNWNNDIR = $(WNNWNNDIR)/$(CWNNLANG)
|
|
1046 CWNNINCDIR = $(WNNINCDIR)/cwnn
|
|
1047 CWNNBINDIR = $(WNNBINDIR)/cWnn4
|
|
1048 CWNNDICDIR = $(CWNNWNNDIR)/dic
|
|
1049 CWNNSYSDICDIR = $(CWNNDICDIR)/sys
|
|
1050 CWNNCDSRC = $(CWNNTOP)/cd
|
|
1051 CWNNCDICSRC = $(CWNNTOP)/cdic
|
|
1052 CWNNCONVSRC = $(CWNNTOP)/conv
|
|
1053 CWNNETCSRC = $(CWNNTOP)/etc
|
|
1054 CWNNINCLUDESRC = $(CWNNTOP)/include
|
|
1055 CWNNJLIBSRC = $(CWNNTOP)/jlib
|
|
1056 CWNNJSERVERSRC = $(CWNNTOP)/jserver
|
|
1057 CWNNJUTILSRC = $(CWNNTOP)/jutil
|
|
1058 CWNNROMKANSRC = $(CWNNTOP)/romkan
|
|
1059 CWNNUUMSRC = $(CWNNTOP)/uum
|
|
1060 CWNNCNVFILEDIR = $(CWNNCDSRC)/cvtfileDir
|
|
1061 CWNNINCLUDES = -I$(CWNNINCLUDESRC) -I$(CWNNROMKANMSRC)
|
|
1062 CWNNDEFINES = -DLIBDIR=\"$(WNNWNNDIR)\"
|
|
1063 CWNNJLIB = $(CWNNJLIBSRC)/libcwnn.a
|
|
1064 CWNNCONVLIB = $(CWNNCONVSRC)/libconvkey.a
|
|
1065
|
|
1066 KWNNTOP = $(IMTOP)/kWnn
|
|
1067 KWNNLANG = ko_KR
|
|
1068 KWNNWNNDIR = $(WNNWNNDIR)/$(KWNNLANG)
|
|
1069 KWNNINCDIR = $(WNNINCDIR)/kwnn
|
|
1070 KWNNBINDIR = $(WNNBINDIR)/kWnn4
|
|
1071 KWNNDICDIR = $(KWNNWNNDIR)/dic
|
|
1072 KWNNSYSDICDIR = $(KWNNDICDIR)/sys
|
|
1073 KWNNKDSRC = $(KWNNTOP)/kd
|
|
1074 KWNNKDICSRC = $(KWNNTOP)/kdic
|
|
1075 KWNNCONVSRC = $(KWNNTOP)/conv
|
|
1076 KWNNETCSRC = $(KWNNTOP)/etc
|
|
1077 KWNNINCLUDESRC = $(KWNNTOP)/include
|
|
1078 KWNNJLIBSRC = $(KWNNTOP)/jlib
|
|
1079 KWNNJSERVERSRC = $(KWNNTOP)/jserver
|
|
1080 KWNNJUTILSRC = $(KWNNTOP)/jutil
|
|
1081 KWNNROMKANSRC = $(KWNNTOP)/romkan
|
|
1082 KWNNUUMSRC = $(KWNNTOP)/uum
|
|
1083 KWNNCNVFILEDIR = $(KWNNCDSRC)/cvtfileDir
|
|
1084 KWNNINCLUDES = -I$(KWNNINCLUDESRC) -I$(KWNNROMKANMSRC)
|
|
1085 KWNNDEFINES = -DLIBDIR=\"$(WNNWNNDIR)\"
|
|
1086 KWNNJLIB = $(KWNNJLIBSRC)/libkwnn.a
|
|
1087 KWNNCONVLIB = $(KWNNCONVSRC)/libconvkey.a
|
|
1088
|
|
1089 TWNNLANG = zh_TW
|
|
1090 TWNNWNNDIR = $(WNNWNNDIR)/$(TWNNLANG)
|
|
1091 TWNNDICDIR = $(TWNNWNNDIR)/dic
|
|
1092 TWNNSYSDICDIR = $(TWNNDICDIR)/sys
|
|
1093 TWNNTDSRC = $(CWNNTOP)/td
|
|
1094 TWNNTDICSRC = $(CWNNTOP)/tdic
|
|
1095
|
|
1096 LWNNLANG = lt_LN
|
|
1097 LWNNWNNDIR = $(WNNWNNDIR)/$(LWNNLANG)
|
|
1098
|
|
1099 WNNLANGDEF = -DJAPANESE
|
|
1100 CWNNLANGDEF = -DCHINESE
|
|
1101 TWNNLANGDEF = -DTAIWANESE
|
|
1102 KWNNLANGDEF = -DKOREAN
|
|
1103 LWNNLANGDEF = -DLATIN
|
|
1104 ALLLANGDEF = $(WNNLANGDEF) $(CWNNLANGDEF) $(KWNNLANGDEF) $(LWNNLANGDEF)
|
|
1105
|
|
1106 XWNMOTOP = $(IMTOP)/Xwnmo
|
|
1107 XWNMOSRC = $(XWNMOTOP)/xwnmo
|
|
1108 XJUTILSRC = $(XWNMOTOP)/xjutil
|
|
1109 XWNMOROMKANSRC = $(XWNMOTOP)/romkan
|
|
1110 XWNMOJLIBSRC = $(XWNMOTOP)/jlib
|
|
1111 XWNMOJDSRC = $(XWNMOTOP)/jd
|
|
1112 XWNMOROMKANMSRC = $(XWNMOTOP)/romkan_m
|
|
1113 #ifdef UseInstalled
|
|
1114 XWNMOXLIBINC = -I$(TOP)/include/X11/mit
|
|
1115 #else
|
|
1116 XWNMOXLIBINC = -I$(XLIBSRC)
|
|
1117 #endif
|
|
1118 XWNMOINCLUDES = -I$(XWNMOROMKANMSRC) -I$(WNNINCLUDESRC) $(XWNMOXLIBINC)
|
|
1119 XWNMOJLIB = $(XWNMOJLIBSRC)/libwnn_m.a
|
|
1120 XWNMOLIBRARIES = $(XWNMOJLIB)
|
|
1121
|
|
1122 XWNMODEF = -DX11R5
|
|
1123
|
|
1124 IMIRULESRC = $(IMTOP)/configR5
|
|
1125
|
|
1126 #ifdef UseInstalled
|
|
1127 IMAKE_CMD = $(NEWTOP)$(IMAKE) -DUseInstalled -I$(NEWTOP)$(IMIRULESRC) \
|
|
1128 -I$(NEWTOP)$(IRULESRC) -DIMROOT=$(IMTOP) $(IMAKE_DEFINES)
|
|
1129 #else
|
|
1130 IMAKE_CMD = $(NEWTOP)$(IMAKE) -I$(NEWTOP)$(IMIRULESRC) \
|
|
1131 -I$(NEWTOP)$(IRULESRC) $(IMAKE_DEFINES)
|
|
1132 #endif
|