| 1 |
XCOMM ---------------------------------------------------------------------- |
| 2 |
XCOMM Makefile generated from IMAKE_TEMPLATE and INCLUDE_IMAKEFILE |
| 3 |
XCOMM ---------------------------------------------------------------------- |
| 4 |
|
| 5 |
/* |
| 6 |
* generic imake template |
| 7 |
*/ |
| 8 |
|
| 9 |
/* |
| 10 |
* Modify Imake.cf when adding a new architecture, do not modify this file. |
| 11 |
* Platform-specific parameters may be set in the appropriate <vendor>.cf |
| 12 |
* configuration files. Site-specific parameters should be set in the file |
| 13 |
* site.def. Full rebuilds are recommended if any parameters are changed. |
| 14 |
* If your C preprocessor does not define any unique symbols, you will need |
| 15 |
* to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing |
| 16 |
* "make World" the first time). |
| 17 |
*/ |
| 18 |
|
| 19 |
#define ImakeConfigRelease 6 |
| 20 |
|
| 21 |
#define YES 1 |
| 22 |
#define NO 0 |
| 23 |
|
| 24 |
/* Ensure that "all" is the default target in the Makefile. */ |
| 25 |
all:: |
| 26 |
|
| 27 |
.SUFFIXES: .i |
| 28 |
|
| 29 |
/* Intercept clean rules for current directory */ |
| 30 |
#undef clean |
| 31 |
#define clean cleandir |
| 32 |
|
| 33 |
#include <Imake.cf> |
| 34 |
|
| 35 |
XCOMM ----------------------------------------------------------------------- |
| 36 |
XCOMM site-specific configuration parameters that need to come before |
| 37 |
XCOMM the platform-specific parameters - edit site.def to change |
| 38 |
#define BeforeVendorCF |
| 39 |
#include <site.def> |
| 40 |
#undef BeforeVendorCF |
| 41 |
|
| 42 |
#if defined(HasGcc3) && !defined(HasGcc2) |
| 43 |
# define HasGcc2 HasGcc3 |
| 44 |
#endif |
| 45 |
#if defined(HasGcc2) && !defined(HasGcc) |
| 46 |
# define HasGcc HasGcc2 |
| 47 |
#endif |
| 48 |
|
| 49 |
#ifndef HasCenterLineC |
| 50 |
#define HasCenterLineC NO |
| 51 |
#endif |
| 52 |
#ifndef HasCenterLineCplusplus |
| 53 |
#define HasCenterLineCplusplus NO |
| 54 |
#endif |
| 55 |
|
| 56 |
#ifndef HasClearmake |
| 57 |
# define HasClearmake NO |
| 58 |
#endif |
| 59 |
|
| 60 |
#ifndef ProPoliceSupport |
| 61 |
#define ProPoliceSupport NO |
| 62 |
#endif |
| 63 |
|
| 64 |
/* |
| 65 |
* ClearmakeOSName - insert the current OS type into the clearmake |
| 66 |
* build script, so .o files from different platforms cannot be winked in. |
| 67 |
* If clearmake finds the build script for two .o files is the same, it |
| 68 |
* will share the .o, even across different architectures. Inserting the |
| 69 |
* O/S name into the build script in a comment prevents unwanted sharing. |
| 70 |
* Note the trailing double-@ in the macro: end a line using this macro |
| 71 |
* with backslash without the double-@ usually used. |
| 72 |
* Like this: |
| 73 |
* |
| 74 |
* #define SomeRule() @@\ |
| 75 |
* something or other @@\ |
| 76 |
* ClearmakeOSName \ |
| 77 |
* something else @@\ |
| 78 |
* and more |
| 79 |
*/ |
| 80 |
#ifndef ClearmakeOSName |
| 81 |
# if HasClearmake |
| 82 |
# define ClearmakeOSName @ XCOMM $(OSNAME) @@ |
| 83 |
# else |
| 84 |
# define ClearmakeOSName /**/ |
| 85 |
# endif |
| 86 |
#endif |
| 87 |
|
| 88 |
#if HasClearmake |
| 89 |
# ifndef MakeCmd |
| 90 |
# define MakeCmd clearmake |
| 91 |
# endif |
| 92 |
#endif |
| 93 |
|
| 94 |
#if HasClearmake |
| 95 |
XCOMM ---------------------------------------------------------------------- |
| 96 |
.c.o: |
| 97 |
ClearmakeOSName $(CC) -c $(CFLAGS) $*.c |
| 98 |
#endif |
| 99 |
|
| 100 |
XCOMM ---------------------------------------------------------------------- |
| 101 |
XCOMM platform-specific configuration parameters - edit MacroFile to change |
| 102 |
#include MacroIncludeFile |
| 103 |
|
| 104 |
XCOMM ---------------------------------------------------------------------- |
| 105 |
XCOMM site-specific configuration parameters that go after |
| 106 |
XCOMM the platform-specific parameters - edit site.def to change |
| 107 |
#define AfterVendorCF |
| 108 |
#include <site.def> |
| 109 |
#undef AfterVendorCF |
| 110 |
|
| 111 |
/* |
| 112 |
* defaults for various generic parameters; set in site.def if needed |
| 113 |
*/ |
| 114 |
|
| 115 |
/* the following are needed before we can include Imake.rules */ |
| 116 |
|
| 117 |
#ifndef NothingOutsideProjectRoot |
| 118 |
#define NothingOutsideProjectRoot NO |
| 119 |
#endif |
| 120 |
|
| 121 |
#ifndef RemoveObsoleteFiles |
| 122 |
#define RemoveObsoleteFiles YES |
| 123 |
#endif |
| 124 |
|
| 125 |
#ifndef HasVarDirectory |
| 126 |
#define HasVarDirectory YES |
| 127 |
#endif |
| 128 |
#ifndef UseEtcX11 |
| 129 |
#define UseEtcX11 YES |
| 130 |
#endif |
| 131 |
#ifndef UseInstalledX11 |
| 132 |
# define UseInstalledX11 NO |
| 133 |
#endif |
| 134 |
#ifdef UseInstalled |
| 135 |
# undef UseInstalledX11 |
| 136 |
# define UseInstalledX11 YES |
| 137 |
#endif |
| 138 |
#if NothingOutsideProjectRoot |
| 139 |
#undef UseEtcX11 |
| 140 |
#define UseEtcX11 NO |
| 141 |
#endif |
| 142 |
#ifndef UseSeparateConfDir |
| 143 |
#define UseSeparateConfDir (UseEtcX11 || HasVarDirectory) |
| 144 |
#endif |
| 145 |
#if NothingOutsideProjectRoot |
| 146 |
#undef UseSeparateConfDir |
| 147 |
#define UseSeparateConfDir NO |
| 148 |
#endif |
| 149 |
#ifndef SystemV |
| 150 |
#define SystemV NO /* SYSV (R3) */ |
| 151 |
#endif |
| 152 |
#ifndef SystemV4 |
| 153 |
#define SystemV4 NO /* SVR4 */ |
| 154 |
#endif |
| 155 |
#ifndef HasCodeCenter |
| 156 |
#define HasCodeCenter NO |
| 157 |
#endif |
| 158 |
#ifndef HasSentinel |
| 159 |
#define HasSentinel NO |
| 160 |
#endif |
| 161 |
#ifndef HasPurify |
| 162 |
#define HasPurify NO |
| 163 |
#endif |
| 164 |
#ifndef HasTestCenter |
| 165 |
#define HasTestCenter NO |
| 166 |
#endif |
| 167 |
#ifndef HasGnuMake |
| 168 |
#define HasGnuMake NO |
| 169 |
#endif |
| 170 |
/* |
| 171 |
* The following fixes a glitch with GNU make -j |
| 172 |
*/ |
| 173 |
#ifndef ForceServerRemake |
| 174 |
#define ForceServerRemake HasGnuMake |
| 175 |
#endif |
| 176 |
#ifndef HasBsdMake |
| 177 |
#define HasBsdMake NO |
| 178 |
#endif |
| 179 |
#ifndef HasParallelMake |
| 180 |
#define HasParallelMake NO |
| 181 |
#endif |
| 182 |
#ifndef RemoveTargetProgramByMoving |
| 183 |
#define RemoveTargetProgramByMoving NO |
| 184 |
#endif |
| 185 |
#ifndef DoRanlibCmd |
| 186 |
#if SystemV || SystemV4 |
| 187 |
#define DoRanlibCmd NO |
| 188 |
#else |
| 189 |
#define DoRanlibCmd YES |
| 190 |
#endif |
| 191 |
#endif |
| 192 |
#ifndef ExecableScripts |
| 193 |
#if SystemV |
| 194 |
#define ExecableScripts NO |
| 195 |
#else |
| 196 |
#define ExecableScripts YES /* kernel exec() can handle #! */ |
| 197 |
#endif |
| 198 |
#endif |
| 199 |
|
| 200 |
#ifndef HasMakefileSafeInclude /* -include or sinclude in a Makefile */ |
| 201 |
#if HasClearmake || HasBsdMake |
| 202 |
#define HasMakefileSafeInclude YES |
| 203 |
#else |
| 204 |
#define HasMakefileSafeInclude NO /* see also vendor-specific .cf files */ |
| 205 |
#endif |
| 206 |
#endif |
| 207 |
|
| 208 |
#ifndef HasSymLinks |
| 209 |
#define HasSymLinks YES |
| 210 |
#endif |
| 211 |
|
| 212 |
#ifndef HasPerl |
| 213 |
#define HasPerl YES |
| 214 |
#endif |
| 215 |
|
| 216 |
#ifndef HasPerl5 |
| 217 |
#define HasPerl5 HasPerl |
| 218 |
#endif |
| 219 |
|
| 220 |
#ifndef PerlCmd |
| 221 |
#define PerlCmd perl |
| 222 |
#endif |
| 223 |
|
| 224 |
#ifndef PerlOptions |
| 225 |
#define PerlOptions /**/ |
| 226 |
#endif |
| 227 |
|
| 228 |
#ifndef PerlEnvSetup |
| 229 |
#define PerlEnvSetup env LC_ALL=C |
| 230 |
#endif |
| 231 |
|
| 232 |
#ifndef HasGperf |
| 233 |
#define HasGperf NO |
| 234 |
#endif |
| 235 |
|
| 236 |
#ifndef GperfCmd |
| 237 |
#define GperfCmd gperf |
| 238 |
#endif |
| 239 |
|
| 240 |
#ifndef RmanCmd |
| 241 |
#endif |
| 242 |
|
| 243 |
#ifndef RmanOptions |
| 244 |
#endif |
| 245 |
|
| 246 |
#ifndef BuildHtmlManPages |
| 247 |
#ifdef RmanCmd |
| 248 |
#define BuildHtmlManPages YES |
| 249 |
#else |
| 250 |
#define BuildHtmlManPages NO |
| 251 |
#endif |
| 252 |
#endif |
| 253 |
/* Can't do this while bootstrapping imake */ |
| 254 |
#ifdef BootStrap |
| 255 |
#undef BuildHtmlManPages |
| 256 |
#define BuildHtmlManPages NO |
| 257 |
#endif |
| 258 |
|
| 259 |
#ifndef DontPreprocessManPages |
| 260 |
#ifdef UseInstalled |
| 261 |
#define DontPreprocessManPages YES |
| 262 |
#else |
| 263 |
#define DontPreprocessManPages NO |
| 264 |
#endif |
| 265 |
#endif |
| 266 |
|
| 267 |
#ifndef CompressManPages |
| 268 |
#define CompressManPages NO |
| 269 |
#endif |
| 270 |
|
| 271 |
#ifndef HasGroff |
| 272 |
#define HasGroff NO |
| 273 |
#endif |
| 274 |
#ifndef HasGroffHtml |
| 275 |
#define HasGroffHtml NO |
| 276 |
#endif |
| 277 |
|
| 278 |
#ifndef HasCookieMaker |
| 279 |
#define HasCookieMaker NO |
| 280 |
#endif |
| 281 |
|
| 282 |
#ifndef StripInstalledPrograms |
| 283 |
#define StripInstalledPrograms NO /* leave symbol table just in case */ |
| 284 |
#endif |
| 285 |
#ifndef StaticNeedsPicForShared |
| 286 |
#define StaticNeedsPicForShared NO |
| 287 |
#endif |
| 288 |
|
| 289 |
#include <Imake.rules> |
| 290 |
|
| 291 |
#ifndef HasSharedLibraries |
| 292 |
#define HasSharedLibraries NO |
| 293 |
#endif |
| 294 |
#ifndef OSMajorVersion |
| 295 |
#define OSMajorVersion 0 |
| 296 |
#endif |
| 297 |
#ifndef OSMinorVersion |
| 298 |
#define OSMinorVersion 0 |
| 299 |
#endif |
| 300 |
#ifndef OSTeenyVersion |
| 301 |
#define OSTeenyVersion 0 |
| 302 |
#endif |
| 303 |
#ifndef UnalignedReferencesAllowed |
| 304 |
#define UnalignedReferencesAllowed NO /* if arbitrary deref is okay */ |
| 305 |
#endif |
| 306 |
#ifndef AvoidNullMakeCommand |
| 307 |
#if !HasBsdMake |
| 308 |
#define AvoidNullMakeCommand NO |
| 309 |
#else |
| 310 |
#define AvoidNullMakeCommand YES |
| 311 |
#endif |
| 312 |
#endif |
| 313 |
#if AvoidNullMakeCommand |
| 314 |
#ifndef NullMakeCommand |
| 315 |
#define NullMakeCommand @ echo -n |
| 316 |
#endif |
| 317 |
/* |
| 318 |
* An obscure bug in BSD4.3's original make causes it not to recognize a |
| 319 |
* macro definition if the macro name starts with a non-alpha and in |
| 320 |
* column one. |
| 321 |
*/ |
| 322 |
_NULLCMD_ = NullMakeCommand |
| 323 |
#endif |
| 324 |
|
| 325 |
#ifndef CrossCompiling |
| 326 |
#define CrossCompiling NO |
| 327 |
#undef CrossCompileDir |
| 328 |
#endif |
| 329 |
#ifndef BourneShell /* to force shell in makefile */ |
| 330 |
#define BourneShell /bin/sh |
| 331 |
#endif |
| 332 |
#ifndef ConstructMFLAGS |
| 333 |
#if SystemV |
| 334 |
#define ConstructMFLAGS YES /* build MFLAGS from MAKEFLAGS */ |
| 335 |
#else |
| 336 |
#define ConstructMFLAGS NO /* build MFLAGS from MAKEFLAGS */ |
| 337 |
#endif |
| 338 |
#endif |
| 339 |
|
| 340 |
#ifndef ConstructMAKEFLAGS /* needed on old BSD-based? */ |
| 341 |
#define ConstructMAKEFLAGS NO /* build MAKEFLAGS from MFLAGS */ |
| 342 |
#endif |
| 343 |
|
| 344 |
#ifndef HasLargeTmp |
| 345 |
#define HasLargeTmp NO /* be paranoid */ |
| 346 |
#endif |
| 347 |
|
| 348 |
#ifndef HasMotif |
| 349 |
#define HasMotif NO |
| 350 |
#endif |
| 351 |
#ifndef HasMotif2 |
| 352 |
#define HasMotif2 NO /* only if system has working Motif2 or OpenMotif */ |
| 353 |
#endif |
| 354 |
#ifndef HasBSDAuth |
| 355 |
#define HasBSDAuth NO |
| 356 |
#endif |
| 357 |
|
| 358 |
#ifndef HasBSD44Sockets |
| 359 |
#define HasBSD44Sockets NO |
| 360 |
#endif |
| 361 |
#ifndef HasSockets |
| 362 |
#define HasSockets YES |
| 363 |
#endif |
| 364 |
#ifndef HasPoll |
| 365 |
#if SystemV || SystemV4 |
| 366 |
#define HasPoll YES |
| 367 |
#else |
| 368 |
#define HasPoll NO |
| 369 |
#endif |
| 370 |
#endif |
| 371 |
#ifndef HasVFork |
| 372 |
#if SystemV |
| 373 |
#define HasVFork NO /* not yet... */ |
| 374 |
#else |
| 375 |
#define HasVFork YES |
| 376 |
#endif |
| 377 |
#endif |
| 378 |
#ifndef HasSetProcTitle |
| 379 |
#define HasSetProcTitle NO |
| 380 |
#endif |
| 381 |
#ifndef HasSetUserContext |
| 382 |
#define HasSetUserContext NO |
| 383 |
#endif |
| 384 |
#ifndef HasLibCrypt |
| 385 |
#define HasLibCrypt NO |
| 386 |
#endif |
| 387 |
#ifndef HasPutenv |
| 388 |
#define HasPutenv NO /* assume not */ |
| 389 |
#endif |
| 390 |
/* setenv(3) and unsetenv(3) */ |
| 391 |
#ifndef HasSetenv |
| 392 |
#define HasSetenv YES /* assume yes */ |
| 393 |
#endif |
| 394 |
#ifndef HasVoidSignalReturn |
| 395 |
#define HasVoidSignalReturn YES /* assume yes */ |
| 396 |
#endif |
| 397 |
#ifndef HasBsearch |
| 398 |
#define HasBsearch YES /* assume yes */ |
| 399 |
#endif |
| 400 |
#ifndef HasSnprintf |
| 401 |
#define HasSnprintf NO /* assume not */ |
| 402 |
#endif |
| 403 |
#ifndef HasStrlcat |
| 404 |
#define HasStrlcat NO /* assume not */ |
| 405 |
#endif |
| 406 |
#ifndef HasReallocarray |
| 407 |
#define HasReallocarray NO /* assume not */ |
| 408 |
#endif |
| 409 |
#ifndef HasDlopen |
| 410 |
#define HasDlopen NO /* assume not */ |
| 411 |
#endif |
| 412 |
#ifndef HasWeakSymbols |
| 413 |
#define HasWeakSymbols NO /* assume not */ |
| 414 |
#endif |
| 415 |
#ifndef HasIssetugid |
| 416 |
#define HasIssetugid NO /* assume not */ |
| 417 |
#endif |
| 418 |
#ifndef HasGetresuid |
| 419 |
#define HasGetresuid NO /* assume not */ |
| 420 |
#endif |
| 421 |
#ifndef HasMkstemp |
| 422 |
#define HasMkstemp NO /* assume not */ |
| 423 |
#endif |
| 424 |
#ifndef HasUsableFileMmap |
| 425 |
#define HasUsableFileMmap NO /* assume not */ |
| 426 |
#endif |
| 427 |
#ifndef HasGetIfAddrs |
| 428 |
#define HasGetIfAddrs NO /* assume not */ |
| 429 |
#endif |
| 430 |
#ifndef HasStickyDirBit |
| 431 |
#define HasStickyDirBit YES |
| 432 |
#endif |
| 433 |
#ifndef HasFchown |
| 434 |
#define HasFchown YES |
| 435 |
#endif |
| 436 |
#ifndef HasPam |
| 437 |
#define HasPam NO |
| 438 |
#endif |
| 439 |
#ifndef HasPamMisc |
| 440 |
#define HasPamMisc NO |
| 441 |
#endif |
| 442 |
#ifndef HasGetpeereid |
| 443 |
#define HasGetpeereid NO |
| 444 |
#endif |
| 445 |
#ifndef HasGetpeerucred |
| 446 |
#define HasGetpeerucred NO |
| 447 |
#endif |
| 448 |
#ifndef NoStrstr |
| 449 |
#define NoStrstr NO |
| 450 |
#endif |
| 451 |
#ifndef HasShadowPasswd |
| 452 |
#define HasShadowPasswd NO |
| 453 |
#endif |
| 454 |
#ifndef HasBasename |
| 455 |
#define HasBasename YES |
| 456 |
#endif |
| 457 |
#ifndef HasTimingsafeMemcmp |
| 458 |
#define HasTimingsafeMemcmp NO /* assume not */ |
| 459 |
#endif |
| 460 |
#ifndef HasGetopt |
| 461 |
# if !defined(Win32Architecture) |
| 462 |
# define HasGetopt YES |
| 463 |
# else |
| 464 |
# define HasGetopt NO |
| 465 |
# endif |
| 466 |
#endif |
| 467 |
#ifndef HasGetoptLong |
| 468 |
# define HasGetoptLong NO |
| 469 |
#endif |
| 470 |
/* byte-order defaults */ |
| 471 |
#ifndef ByteOrder |
| 472 |
#if defined(VaxArchitecture) |
| 473 |
#define ByteOrder X_LITTLE_ENDIAN |
| 474 |
#elif defined(MipsArchitecture) && defined(MipselArchitecture) |
| 475 |
#define ByteOrder X_LITTLE_ENDIAN |
| 476 |
#elif defined(MipsArchitecture) |
| 477 |
#define ByteOrder X_BIG_ENDIAN |
| 478 |
#elif defined(i386Architecture) |
| 479 |
#define ByteOrder X_LITTLE_ENDIAN |
| 480 |
#elif defined(ia64Architecture) |
| 481 |
#define ByteOrder X_LITTLE_ENDIAN |
| 482 |
#elif defined(AMD64Architecture) |
| 483 |
#define ByteOrder X_LITTLE_ENDIAN |
| 484 |
#elif defined(SparcArchitecture) || defined(Sparc64Architecture) |
| 485 |
#define ByteOrder X_BIG_ENDIAN |
| 486 |
#elif defined(AlphaArchitecture) |
| 487 |
#define ByteOrder X_LITTLE_ENDIAN |
| 488 |
#elif defined(Mc68000Architecture) |
| 489 |
#define ByteOrder X_BIG_ENDIAN |
| 490 |
#elif defined(Mc68020Architecture) |
| 491 |
#define ByteOrder X_BIG_ENDIAN |
| 492 |
#elif defined(Mc88000Architecture) |
| 493 |
#define ByteOrder X_BIG_ENDIAN |
| 494 |
#elif defined(s390Architecture) |
| 495 |
#define ByteOrder X_BIG_ENDIAN |
| 496 |
#elif defined(s390xArchitecture) |
| 497 |
#define ByteOrder X_BIG_ENDIAN |
| 498 |
#elif defined(Arm32ebArchitecture) |
| 499 |
#define ByteOrder X_BIG_ENDIAN |
| 500 |
#elif defined(Arm32Architecture) |
| 501 |
#define ByteOrder X_LITTLE_ENDIAN |
| 502 |
#elif defined(Arm64ebArchitecture) |
| 503 |
#define ByteOrder X_BIG_ENDIAN |
| 504 |
#elif defined(Arm64Architecture) |
| 505 |
#define ByteOrder X_LITTLE_ENDIAN |
| 506 |
#elif defined(RsArchitecture) |
| 507 |
#define ByteOrder X_BIG_ENDIAN |
| 508 |
#elif defined(PpcArchitecture) || defined(Ppc64Architecture) |
| 509 |
#define ByteOrder X_BIG_ENDIAN |
| 510 |
#elif defined(Ppc64LeArchitecture) |
| 511 |
#define ByteOrder X_LITTLE_ENDIAN |
| 512 |
#elif defined(Riscv64Architecture) |
| 513 |
#define ByteOrder X_LITTLE_ENDIAN |
| 514 |
#elif defined(HPArchitecture) |
| 515 |
#define ByteOrder X_BIG_ENDIAN |
| 516 |
#elif defined(SuperHArchitecture) |
| 517 |
#define ByteOrder X_LITTLE_ENDIAN |
| 518 |
#elif defined(SuperHebArchitecture) |
| 519 |
#define ByteOrder X_BIG_ENDIAN |
| 520 |
#endif |
| 521 |
#endif /* ByteOrder */ |
| 522 |
X_BYTE_ORDER = ByteOrder |
| 523 |
|
| 524 |
#ifndef HasFortran |
| 525 |
#define HasFortran NO |
| 526 |
#endif |
| 527 |
#ifndef HasGcc2ForCplusplus |
| 528 |
#define HasGcc2ForCplusplus NO |
| 529 |
#endif |
| 530 |
#ifndef HasCplusplus |
| 531 |
#if HasGcc2ForCplusplus |
| 532 |
#define HasCplusplus YES |
| 533 |
#else |
| 534 |
#define HasCplusplus NO |
| 535 |
#endif |
| 536 |
#endif |
| 537 |
#ifndef HasMktemp |
| 538 |
#define HasMktemp NO /* if you have the mktemp command */ |
| 539 |
#endif |
| 540 |
#ifndef HasSecureRPC |
| 541 |
#define HasSecureRPC NO /* if you have Secure RPC */ |
| 542 |
#endif |
| 543 |
#ifndef HasLatex |
| 544 |
#define HasLatex NO |
| 545 |
#endif |
| 546 |
#ifndef HasShm |
| 547 |
#if SystemV || SystemV4 |
| 548 |
#define HasShm YES |
| 549 |
#else |
| 550 |
#define HasShm NO |
| 551 |
#endif |
| 552 |
#endif |
| 553 |
#ifndef HasLegacyXextProto |
| 554 |
#define HasLegacyXextProto NO |
| 555 |
#endif |
| 556 |
#ifndef HasCbrt |
| 557 |
#define HasCbrt YES |
| 558 |
#endif |
| 559 |
#ifndef HasFfs |
| 560 |
#define HasFfs YES |
| 561 |
#endif |
| 562 |
#ifndef HasXfont2 |
| 563 |
#define HasXfont2 NO |
| 564 |
#endif |
| 565 |
#ifndef HasLegacyXfont1 |
| 566 |
#define HasLegacyXfont1 NO |
| 567 |
#endif |
| 568 |
#ifndef UseTIRPC |
| 569 |
#define UseTIRPC NO |
| 570 |
#endif |
| 571 |
#ifndef GzipLibrary /* if OS config didn't define it, assume it's -lz */ |
| 572 |
#define GzipLibrary -lz |
| 573 |
#endif |
| 574 |
#ifndef UseGnuMalloc |
| 575 |
#define UseGnuMalloc NO |
| 576 |
#endif |
| 577 |
#ifndef GnuMallocLibrary |
| 578 |
#define GnuMallocLibrary -lgmalloc |
| 579 |
#endif |
| 580 |
#ifndef MallocLibraries |
| 581 |
#if UseGnuMalloc |
| 582 |
#define MallocLibraries GnuMallocLibrary |
| 583 |
#else |
| 584 |
#define MallocLibraries /**/ |
| 585 |
#endif |
| 586 |
#endif |
| 587 |
#ifndef HasPosixRegex /* Most modern platforms have it */ |
| 588 |
#define HasPosixRegex YES |
| 589 |
#endif |
| 590 |
#ifndef RegexLibrary |
| 591 |
#if HasPosixRegex |
| 592 |
#define RegexLibrary /**/ |
| 593 |
#else |
| 594 |
#define RegexLibrary -lregex |
| 595 |
#endif |
| 596 |
#endif |
| 597 |
#ifndef HasNCurses |
| 598 |
#define HasNCurses NO |
| 599 |
#endif |
| 600 |
#ifndef NCursesLibName |
| 601 |
#if HasNCurses |
| 602 |
#define NCursesLibName -lncurses |
| 603 |
#else |
| 604 |
#define NCursesLibName |
| 605 |
#endif |
| 606 |
#endif |
| 607 |
#ifdef NCursesLibDir |
| 608 |
NCURSESLIBDIR = NCursesLibDir |
| 609 |
#endif |
| 610 |
#ifdef NCursesIncDir |
| 611 |
NCURSESINCDIR = NCursesIncDir |
| 612 |
#endif |
| 613 |
#ifndef HasTk |
| 614 |
#define HasTk NO |
| 615 |
#endif |
| 616 |
#ifndef TkLibName |
| 617 |
#if HasTk |
| 618 |
#define TkLibName tk |
| 619 |
#else |
| 620 |
#define TkLibName |
| 621 |
#endif |
| 622 |
#endif |
| 623 |
TKLIBNAME = TkLibName |
| 624 |
#ifndef TkLibDir |
| 625 |
#if HasTk |
| 626 |
#define TkLibDir /usr/local/lib |
| 627 |
#else |
| 628 |
#define TkLibDir |
| 629 |
#endif |
| 630 |
#endif |
| 631 |
TKLIBDIR = TkLibDir |
| 632 |
#ifndef TkIncDir |
| 633 |
#if HasTk |
| 634 |
#define TkIncDir /usr/local/include |
| 635 |
#else |
| 636 |
#define TkIncDir |
| 637 |
#endif |
| 638 |
#endif |
| 639 |
#ifndef TkLibrary |
| 640 |
#ifdef HasTk |
| 641 |
#define TkLibrary Concat(-L,$(TKLIBDIR)) Concat(-l,$(TKLIBNAME)) |
| 642 |
#else |
| 643 |
#define TkLibrary |
| 644 |
#endif |
| 645 |
#endif |
| 646 |
#ifndef HasTcl |
| 647 |
#define HasTcl NO |
| 648 |
#endif |
| 649 |
#ifndef TclLibName |
| 650 |
#if HasTcl |
| 651 |
#define TclLibName tcl |
| 652 |
#else |
| 653 |
#define TclLibName |
| 654 |
#endif |
| 655 |
#endif |
| 656 |
TCLLIBNAME = TclLibName |
| 657 |
#ifndef TclLibDir |
| 658 |
#if HasTcl |
| 659 |
#define TclLibDir /usr/local/lib |
| 660 |
#else |
| 661 |
#define TclLibDir |
| 662 |
#endif |
| 663 |
#endif |
| 664 |
TCLIBDIR = TclLibDir |
| 665 |
#ifndef TclIncDir |
| 666 |
#if HasTcl |
| 667 |
#define TclIncDir /usr/local/include |
| 668 |
#else |
| 669 |
#define TclIncDir |
| 670 |
#endif |
| 671 |
#endif |
| 672 |
#ifndef TclLibrary |
| 673 |
#ifdef HasTcl |
| 674 |
#define TclLibrary Concat(-L,$(TCLLIBDIR)) Concat(-l,$(TCLLIBNAME)) |
| 675 |
#else |
| 676 |
#define TclLibrary |
| 677 |
#endif |
| 678 |
#endif |
| 679 |
#ifndef HasTsLib |
| 680 |
#define HasTsLib NO |
| 681 |
#endif |
| 682 |
/* |
| 683 |
* Libtool has two different behaviours for version numbers. |
| 684 |
* On platforms which support a minor number, the library |
| 685 |
* version is (version - minor).minor, on those that don't, |
| 686 |
* the version if version.0. Linux and Darwin support minor |
| 687 |
* numbers; some BSDs do as well. Set this to YES if libtool |
| 688 |
* uses minor numbers on your platform. |
| 689 |
*/ |
| 690 |
#ifndef LibtoolMinorVersions |
| 691 |
#define LibtoolMinorVersions NO |
| 692 |
#endif |
| 693 |
#ifndef NeedConstPrototypes |
| 694 |
#define NeedConstPrototypes NO |
| 695 |
#endif |
| 696 |
#ifndef NeedVarargsPrototypes |
| 697 |
#define NeedVarargsPrototypes NO |
| 698 |
#endif |
| 699 |
#ifndef NeedNestedPrototypes |
| 700 |
#define NeedNestedPrototypes NO |
| 701 |
#endif |
| 702 |
#ifndef NeedFunctionPrototypes |
| 703 |
#define NeedFunctionPrototypes (NeedVarargsPrototypes || NeedNestedPrototypes) |
| 704 |
#endif |
| 705 |
#ifndef NeedWidePrototypes |
| 706 |
#define NeedWidePrototypes YES /* mix and match ANSI-C, non-ANSI */ |
| 707 |
#endif |
| 708 |
|
| 709 |
#ifndef UseCCMakeDepend /* use slow cc -E script */ |
| 710 |
#define UseCCMakeDepend NO |
| 711 |
#endif |
| 712 |
#ifndef UseGccMakeDepend /* use slowish but correct gcc -M */ |
| 713 |
#define UseGccMakeDepend NO |
| 714 |
#endif |
| 715 |
|
| 716 |
#ifndef CaseSensitiveFileSystem |
| 717 |
#define CaseSensitiveFileSystem YES |
| 718 |
#endif |
| 719 |
|
| 720 |
/* DefaultUsrBin is independent of ProjectRoot. |
| 721 |
This is a directory where programs will be found even if PATH |
| 722 |
is not set, for example when coming in remotely via rsh. */ |
| 723 |
#ifndef DefaultUsrBin |
| 724 |
#define DefaultUsrBin /usr/bin |
| 725 |
#endif |
| 726 |
|
| 727 |
#ifndef LibDirName |
| 728 |
# define LibDirName lib |
| 729 |
#endif |
| 730 |
|
| 731 |
#ifndef UsrLibDir |
| 732 |
#ifdef ProjectRoot |
| 733 |
#define UsrLibDir Concat4(ProjectRoot,/,LibDirName,/nx/X11) |
| 734 |
#ifndef AlternateUsrLibDir |
| 735 |
#define AlternateUsrLibDir YES |
| 736 |
#endif |
| 737 |
#else |
| 738 |
#define UsrLibDir Concat4(/usr/local,/,LibDirName,/nx/X11) |
| 739 |
#ifndef AlternateUsrLibDir |
| 740 |
#define AlternateUsrLibDir NO |
| 741 |
#endif |
| 742 |
#endif |
| 743 |
#else |
| 744 |
#ifndef AlternateUsrLibDir |
| 745 |
#define AlternateUsrLibDir YES |
| 746 |
#endif |
| 747 |
#endif |
| 748 |
|
| 749 |
#ifndef UsrDataDir |
| 750 |
#ifdef ProjectRoot |
| 751 |
#define UsrDataDir Concat4(ProjectRoot,/,share,/nx) |
| 752 |
#ifndef AlternateUsrDataDir |
| 753 |
#define AlternateUsrDataDir YES |
| 754 |
#endif |
| 755 |
#else |
| 756 |
#define UsrDataDir Concat4(/usr/local,/,share,/nx) |
| 757 |
#ifndef AlternateUsrDataDir |
| 758 |
#define AlternateUsrDataDir NO |
| 759 |
#endif |
| 760 |
#endif |
| 761 |
#else |
| 762 |
#ifndef AlternateUsrDataDir |
| 763 |
#define AlternateUsrDataDir YES |
| 764 |
#endif |
| 765 |
#endif |
| 766 |
|
| 767 |
#ifndef VarDirectory |
| 768 |
#ifdef ProjectVar |
| 769 |
#define VarDirectory ProjectVar |
| 770 |
#else |
| 771 |
#define VarDirectory /var |
| 772 |
#endif |
| 773 |
#endif |
| 774 |
#ifndef VarLibDir |
| 775 |
#define VarLibDir $(VARDIR)/lib |
| 776 |
#endif |
| 777 |
|
| 778 |
/* |
| 779 |
* SystemUsrLibDir is independent of ProjectRoot. It is used primarily |
| 780 |
* to allow links for shared libraries in /usr/lib for compliance to |
| 781 |
* various standards (e.g., Linux/OpenGL). |
| 782 |
*/ |
| 783 |
#ifndef SystemUsrLibDir |
| 784 |
#define SystemUsrLibDir /usr/LibDirName |
| 785 |
#endif |
| 786 |
#ifndef SystemUsrIncDir |
| 787 |
#define SystemUsrIncDir /usr/include |
| 788 |
#endif |
| 789 |
#ifndef SystemXkbConfigDir |
| 790 |
#define SystemXkbConfigDir /usr/share/X11/xkb |
| 791 |
#endif |
| 792 |
#ifndef SystemXkbBinDir |
| 793 |
#define SystemXkbBinDir /usr/bin |
| 794 |
#endif |
| 795 |
|
| 796 |
#ifndef SystemFontDir |
| 797 |
#define SystemFontDir /usr/share/fonts/X11 |
| 798 |
#endif |
| 799 |
|
| 800 |
#ifndef ShLibDir |
| 801 |
#define ShLibDir UsrLibDir |
| 802 |
#endif |
| 803 |
#ifndef IncRoot |
| 804 |
#ifdef ProjectRoot |
| 805 |
#define IncRoot Concat(ProjectRoot,/include/nx) |
| 806 |
#ifndef AlternateIncRoot |
| 807 |
#define AlternateIncRoot YES |
| 808 |
#endif |
| 809 |
#else |
| 810 |
#define IncRoot /usr/include |
| 811 |
#ifndef AlternateIncRoot |
| 812 |
#define AlternateIncRoot NO |
| 813 |
#endif |
| 814 |
#endif |
| 815 |
#else |
| 816 |
#ifndef AlternateIncRoot |
| 817 |
#define AlternateIncRoot YES |
| 818 |
#endif |
| 819 |
#endif |
| 820 |
#ifndef LintlibDir |
| 821 |
#define LintlibDir $(USRLIBDIR)/lint |
| 822 |
#endif |
| 823 |
#ifndef SystemManDirectory |
| 824 |
#if SystemV4 |
| 825 |
#define SystemManDirectory /usr/share/man |
| 826 |
#else |
| 827 |
#define SystemManDirectory /usr/man |
| 828 |
#endif |
| 829 |
#endif |
| 830 |
#ifndef ManDirectoryRoot |
| 831 |
#ifdef ProjectRoot |
| 832 |
#define ManDirectoryRoot Concat(ProjectRoot,/man) |
| 833 |
#else |
| 834 |
#define ManDirectoryRoot SystemManDirectory |
| 835 |
#endif |
| 836 |
#endif |
| 837 |
#ifndef ManPath |
| 838 |
#define ManPath ManDirectoryRoot |
| 839 |
#endif |
| 840 |
#ifndef ManSourcePath |
| 841 |
#define ManSourcePath $(MANPATH)/man |
| 842 |
#endif |
| 843 |
#ifndef ManDir |
| 844 |
#define ManDir $(MANSOURCEPATH)$(MANSUFFIX) |
| 845 |
#endif |
| 846 |
#ifndef LibmanDir |
| 847 |
#define LibmanDir $(MANSOURCEPATH)$(LIBMANSUFFIX) |
| 848 |
#endif |
| 849 |
#ifndef FileManDir |
| 850 |
#define FileManDir $(MANSOURCEPATH)$(FILEMANSUFFIX) |
| 851 |
#endif |
| 852 |
#ifndef MiscManDir |
| 853 |
#define MiscManDir $(MANSOURCEPATH)$(MISCMANSUFFIX) |
| 854 |
#endif |
| 855 |
#ifndef DriverManDir |
| 856 |
#define DriverManDir $(MANSOURCEPATH)$(DRIVERMANSUFFIX) |
| 857 |
#endif |
| 858 |
#ifndef AppLoadDefs |
| 859 |
#define AppLoadDefs -D__apploaddir__=$(XAPPLOADDIR) |
| 860 |
#endif |
| 861 |
#ifndef AppManDefs |
| 862 |
#define AppManDefs -D__appmansuffix__=$(MANSUFFIX) |
| 863 |
#endif |
| 864 |
#ifndef LibManDefs |
| 865 |
#define LibManDefs -D__libmansuffix__=$(LIBMANSUFFIX) |
| 866 |
#endif |
| 867 |
#ifndef FileManDefs |
| 868 |
#define FileManDefs -D__filemansuffix__=$(FILEMANSUFFIX) |
| 869 |
#endif |
| 870 |
#ifndef MiscManDefs |
| 871 |
#define MiscManDefs -D__miscmansuffix__=$(MISCMANSUFFIX) |
| 872 |
#endif |
| 873 |
#ifndef DriverManDefs |
| 874 |
#define DriverManDefs -D__drivermansuffix__=$(DRIVERMANSUFFIX) |
| 875 |
#endif |
| 876 |
#ifndef AdminManDefs |
| 877 |
#define AdminManDefs -D__adminmansuffix__=$(ADMINMANSUFFIX) |
| 878 |
#endif |
| 879 |
#ifndef ProjectManDefs |
| 880 |
#define ProjectManDefs -D__projectroot__=$(PROJECTROOT) |
| 881 |
#endif |
| 882 |
#ifndef XConfigFileManDefs |
| 883 |
#define XConfigFileManDefs -D__xconfigfile__=$(XCONFIGFILE) |
| 884 |
#endif |
| 885 |
#ifndef XConfigDirManDefs |
| 886 |
#define XConfigDirManDefs -D__xconfigdir__=$(XCONFIGDIR) |
| 887 |
#endif |
| 888 |
#ifndef XLogFileManDefs |
| 889 |
#define XLogFileManDefs -D__xlogfile__=$(XLOGFILE) |
| 890 |
#endif |
| 891 |
#ifndef XServerManDefs |
| 892 |
#define XServerManDefs -D__xservername__=$(XSERVERNAME) |
| 893 |
#endif |
| 894 |
|
| 895 |
#ifndef CompressManCmd |
| 896 |
#define CompressManCmd gzip -n |
| 897 |
#endif |
| 898 |
|
| 899 |
#ifndef HtmlIndexCmd |
| 900 |
#if BuildHtmlManPages |
| 901 |
#define HtmlIndexCmd $(MKHTMLINDEX) |
| 902 |
#endif |
| 903 |
#endif |
| 904 |
|
| 905 |
#ifndef LogDirectory |
| 906 |
#if HasVarDirectory |
| 907 |
#define LogDirectory $(VARDIR)/log |
| 908 |
#else |
| 909 |
#define LogDirectory /usr/adm |
| 910 |
#endif |
| 911 |
#endif |
| 912 |
|
| 913 |
#ifndef HasVarRun |
| 914 |
#define HasVarRun NO |
| 915 |
#endif |
| 916 |
|
| 917 |
#ifndef VarRunDirectory |
| 918 |
#if HasVarRun |
| 919 |
#define VarRunDirectory $(VARDIR)/run |
| 920 |
#endif |
| 921 |
#endif |
| 922 |
|
| 923 |
#ifndef HasVarDb |
| 924 |
#define HasVarDb NO |
| 925 |
#endif |
| 926 |
|
| 927 |
#ifndef VarDbDirectory |
| 928 |
#if HasVarDb |
| 929 |
#define VarDbDirectory $(VARDIR)/db |
| 930 |
#endif |
| 931 |
#endif |
| 932 |
|
| 933 |
#ifndef ConfigSrc |
| 934 |
#define ConfigSrc $(TOP)/config |
| 935 |
#endif |
| 936 |
#ifndef DependDir |
| 937 |
#if UseCCMakeDepend || UseGccMakeDepend |
| 938 |
#define DependDir $(CONFIGSRC)/util |
| 939 |
#else |
| 940 |
#define DependDir $(CONFIGSRC)/makedepend |
| 941 |
#endif |
| 942 |
#endif |
| 943 |
#ifndef UNCOMPRESSPATH |
| 944 |
#define UNCOMPRESSPATH /usr/ucb/uncompress /* obsolete */ |
| 945 |
#endif |
| 946 |
#ifndef OptimizedCDebugFlags |
| 947 |
#define OptimizedCDebugFlags -O |
| 948 |
#endif |
| 949 |
#ifndef OptimizedCplusplusDebugFlags |
| 950 |
#define OptimizedCplusplusDebugFlags OptimizedCDebugFlags |
| 951 |
#endif |
| 952 |
#ifndef DebuggableCDebugFlags |
| 953 |
#define DebuggableCDebugFlags -g |
| 954 |
#endif |
| 955 |
#ifndef DebuggableCplusplusDebugFlags |
| 956 |
#define DebuggableCplusplusDebugFlags DebuggableCDebugFlags |
| 957 |
#endif |
| 958 |
#ifndef ProfiledCDebugFlags |
| 959 |
#define ProfiledCDebugFlags -pg |
| 960 |
#endif |
| 961 |
#ifndef ProfiledCplusplusDebugFlags |
| 962 |
#define ProfiledCplusplusDebugFlags ProfiledCDebugFlags |
| 963 |
#endif |
| 964 |
#ifndef NoOpCDebugFlags |
| 965 |
#define NoOpCDebugFlags /**/ |
| 966 |
#endif |
| 967 |
#ifndef DefaultCDebugFlags |
| 968 |
#define DefaultCDebugFlags OptimizedCDebugFlags |
| 969 |
#endif |
| 970 |
#ifndef DefaultCplusplusDebugFlags |
| 971 |
#define DefaultCplusplusDebugFlags OptimizedCplusplusDebugFlags |
| 972 |
#endif |
| 973 |
#ifndef DefaultCCOptions |
| 974 |
#define DefaultCCOptions /* floating point, etc. */ |
| 975 |
#endif |
| 976 |
#ifndef DefaultCplusplusOptions |
| 977 |
#define DefaultCplusplusOptions /* floating point, etc. */ |
| 978 |
#endif |
| 979 |
#ifndef HardCodeLibdirFlag |
| 980 |
#define HardCodeLibdirFlag /**/ |
| 981 |
#endif |
| 982 |
#ifndef NoRConst |
| 983 |
#define NoRConst NO /* YES if const for structs of funcs is bad */ |
| 984 |
#endif |
| 985 |
#ifndef InstPgmFlags |
| 986 |
# if CrossCompiling |
| 987 |
# define InstPgmFlags |
| 988 |
# else |
| 989 |
# define InstPgmFlags -s |
| 990 |
# endif |
| 991 |
#endif |
| 992 |
#ifndef InstBinFlags |
| 993 |
#define InstBinFlags -m 0755 |
| 994 |
#endif |
| 995 |
#ifndef InstUidFlags |
| 996 |
#define InstUidFlags -m 4711 |
| 997 |
#endif |
| 998 |
#ifndef InstLibFlags |
| 999 |
#define InstLibFlags -m 0644 |
| 1000 |
#endif |
| 1001 |
#ifndef InstIncFlags |
| 1002 |
#define InstIncFlags -m 0444 |
| 1003 |
#endif |
| 1004 |
#ifndef InstManFlags |
| 1005 |
#define InstManFlags -m 0444 |
| 1006 |
#endif |
| 1007 |
#ifndef InstDatFlags |
| 1008 |
#define InstDatFlags -m 0444 |
| 1009 |
#endif |
| 1010 |
#ifndef InstKmemFlags /* put -g kmem -m 2711 in site.def... */ |
| 1011 |
#define InstKmemFlags InstUidFlags |
| 1012 |
#endif |
| 1013 |
#ifndef ParallelMakeFlags |
| 1014 |
#define ParallelMakeFlags /**/ |
| 1015 |
#endif |
| 1016 |
#ifndef ArCmdBase |
| 1017 |
#define ArCmdBase ar |
| 1018 |
#endif |
| 1019 |
#ifndef ArCmd |
| 1020 |
#define ArCmd ArCmdBase cq |
| 1021 |
#endif |
| 1022 |
#ifndef ArAddCmd |
| 1023 |
#define ArAddCmd ArCmdBase ru |
| 1024 |
#endif |
| 1025 |
#ifndef ArExtCmd |
| 1026 |
#define ArExtCmd ArCmdBase x |
| 1027 |
#endif |
| 1028 |
#ifndef BootstrapCFlags |
| 1029 |
#define BootstrapCFlags /**/ |
| 1030 |
#endif |
| 1031 |
#ifndef HasGcc3 |
| 1032 |
#define HasGcc3 NO |
| 1033 |
#endif |
| 1034 |
#ifndef HasGcc2 |
| 1035 |
#define HasGcc2 HasGcc3 |
| 1036 |
#endif |
| 1037 |
#ifndef HasGcc |
| 1038 |
#define HasGcc HasGcc2 |
| 1039 |
#endif |
| 1040 |
#ifndef HasIntelC |
| 1041 |
#define HasIntelC NO |
| 1042 |
#endif |
| 1043 |
#ifndef HasSunC |
| 1044 |
#define HasSunC NO |
| 1045 |
#endif |
| 1046 |
#ifndef HasBrokenCCForLink |
| 1047 |
#define HasBrokenCCForLink NO |
| 1048 |
#endif |
| 1049 |
#ifndef CcCmd |
| 1050 |
#if HasGcc2 |
| 1051 |
#define CcCmd gcc -fpcc-struct-return |
| 1052 |
#else |
| 1053 |
#if HasGcc |
| 1054 |
#define CcCmd gcc -fstrength-reduce -fpcc-struct-return |
| 1055 |
#else |
| 1056 |
#if HasCenterLineC |
| 1057 |
#define CcCmd clcc |
| 1058 |
#else |
| 1059 |
#define CcCmd cc |
| 1060 |
#endif |
| 1061 |
#endif |
| 1062 |
#endif |
| 1063 |
#endif |
| 1064 |
#ifndef CplusplusCmd |
| 1065 |
#if HasGcc2ForCplusplus |
| 1066 |
#define CplusplusCmd g++ |
| 1067 |
#else |
| 1068 |
#define CplusplusCmd CC |
| 1069 |
#endif |
| 1070 |
#endif |
| 1071 |
#ifndef CplusplusFilt |
| 1072 |
# define CplusplusFilt c++filt |
| 1073 |
#endif |
| 1074 |
#ifndef CplusplusLibC |
| 1075 |
#if HasGcc2ForCplusplus |
| 1076 |
#define CplusplusLibC -lstdc++ |
| 1077 |
#else |
| 1078 |
#define CplusplusLibC /**/ |
| 1079 |
#endif |
| 1080 |
#endif |
| 1081 |
#ifndef CplusplusStandardDefines |
| 1082 |
#define CplusplusStandardDefines StandardDefines |
| 1083 |
#endif |
| 1084 |
#ifndef CplusplusExtraDefines |
| 1085 |
#define CplusplusExtraDefines /**/ |
| 1086 |
#endif |
| 1087 |
#ifndef CplusplusExtraIncludes |
| 1088 |
#define CplusplusExtraIncludes /**/ |
| 1089 |
#endif |
| 1090 |
#ifndef CplusplusDependIncludes |
| 1091 |
#define CplusplusDependIncludes /**/ |
| 1092 |
#endif |
| 1093 |
#ifndef CplusplusOptions |
| 1094 |
#define CplusplusOptions DefaultCplusplusOptions |
| 1095 |
#endif |
| 1096 |
#ifndef CplusplusSpecialOptions |
| 1097 |
#define CplusplusSpecialOptions /**/ |
| 1098 |
#endif |
| 1099 |
#if HasFortran |
| 1100 |
#ifndef FortranCmd |
| 1101 |
#define FortranCmd f77 |
| 1102 |
#endif |
| 1103 |
#ifndef FortranFlags |
| 1104 |
#define FortranFlags /**/ |
| 1105 |
#endif |
| 1106 |
#ifndef FortranDebugFlags /* for -O or -g */ |
| 1107 |
#define FortranDebugFlags /**/ |
| 1108 |
#endif |
| 1109 |
#endif |
| 1110 |
#ifndef AsCmd |
| 1111 |
#define AsCmd as |
| 1112 |
#endif |
| 1113 |
#ifndef AsmDefines |
| 1114 |
#define AsmDefines /**/ |
| 1115 |
#endif |
| 1116 |
#ifndef CompressCmd |
| 1117 |
#define CompressCmd compress |
| 1118 |
#endif |
| 1119 |
#ifndef GzipCmd |
| 1120 |
#define GzipCmd gzip |
| 1121 |
#endif |
| 1122 |
#ifndef CppCmd |
| 1123 |
#define CppCmd /LibDirName/cpp |
| 1124 |
#endif |
| 1125 |
#ifndef RawCppCmd |
| 1126 |
#define RawCppCmd CppCmd -undef |
| 1127 |
#endif |
| 1128 |
#ifndef CppNoLineInfoOption |
| 1129 |
#define CppNoLineInfoOption /**/ |
| 1130 |
#endif |
| 1131 |
#ifndef PreProcessCmd |
| 1132 |
#define PreProcessCmd CcCmd -E |
| 1133 |
#endif |
| 1134 |
#ifndef InstallCmd /* hack should be in project */ |
| 1135 |
#if SystemV || SystemV4 |
| 1136 |
#ifdef UseInstalled /* assume BINDIR in path */ |
| 1137 |
#define InstallCmd bsdinst |
| 1138 |
#else |
| 1139 |
#define InstallCmd $(SHELL) $(CONFIGSRC)/util/bsdinst.sh |
| 1140 |
#endif |
| 1141 |
#else |
| 1142 |
#define InstallCmd install |
| 1143 |
#endif |
| 1144 |
#endif |
| 1145 |
#ifndef InstallFlags |
| 1146 |
#define InstallFlags -c |
| 1147 |
#endif |
| 1148 |
#ifndef StripCmd |
| 1149 |
#define StripCmd strip |
| 1150 |
#endif |
| 1151 |
#ifndef LdCmd |
| 1152 |
#define LdCmd ld |
| 1153 |
#endif |
| 1154 |
#ifndef M4Cmd |
| 1155 |
#define M4Cmd m4 |
| 1156 |
#endif |
| 1157 |
#ifndef M4Flags |
| 1158 |
#define M4Flags /**/ |
| 1159 |
#endif |
| 1160 |
#ifndef LexCmd |
| 1161 |
#define LexCmd lex |
| 1162 |
#endif |
| 1163 |
#ifndef LexLib |
| 1164 |
#define LexLib -ll |
| 1165 |
#endif |
| 1166 |
#ifndef HasFlex |
| 1167 |
#define HasFlex NO |
| 1168 |
#endif |
| 1169 |
#ifndef YaccCmd |
| 1170 |
#define YaccCmd yacc |
| 1171 |
#endif |
| 1172 |
#ifndef CplusplusYaccCmd |
| 1173 |
#define CplusplusYaccCmd YaccCmd |
| 1174 |
#endif |
| 1175 |
#ifndef LintCmd |
| 1176 |
#define LintCmd lint |
| 1177 |
#endif |
| 1178 |
#ifndef LintLibFlag |
| 1179 |
#if SystemV || SystemV4 |
| 1180 |
#define LintLibFlag -o |
| 1181 |
#else |
| 1182 |
#define LintLibFlag -C |
| 1183 |
#endif |
| 1184 |
#endif |
| 1185 |
#ifndef LintOpts |
| 1186 |
#if SystemV || SystemV4 |
| 1187 |
#define LintOpts -bh |
| 1188 |
#else |
| 1189 |
#define LintOpts -axz |
| 1190 |
#endif |
| 1191 |
#endif |
| 1192 |
#ifndef CpCmd |
| 1193 |
#define CpCmd cp |
| 1194 |
#endif |
| 1195 |
#ifndef LnCmd /* can use cp instead of ln if necessary */ |
| 1196 |
#if HasSymLinks |
| 1197 |
#define LnCmd ln -s |
| 1198 |
#else |
| 1199 |
#define LnCmd ln |
| 1200 |
#endif |
| 1201 |
#endif |
| 1202 |
#ifndef MakeCmd |
| 1203 |
#define MakeCmd make |
| 1204 |
#endif |
| 1205 |
#ifndef MvCmd |
| 1206 |
#define MvCmd mv -f |
| 1207 |
#endif |
| 1208 |
#ifndef RanlibCmd |
| 1209 |
#define RanlibCmd ranlib |
| 1210 |
#endif |
| 1211 |
#ifndef RanlibInstFlags |
| 1212 |
#define RanlibInstFlags /**/ |
| 1213 |
#endif |
| 1214 |
#ifndef RmCmd |
| 1215 |
#define RmCmd rm -f |
| 1216 |
#endif |
| 1217 |
|
| 1218 |
/* |
| 1219 |
* Module cross-compile stuff. By default they are defined to be exactly the |
| 1220 |
* same as the non-module versions. |
| 1221 |
*/ |
| 1222 |
#ifndef ModuleCcCmd |
| 1223 |
#define ModuleCcCmd CcCmd |
| 1224 |
#endif |
| 1225 |
#ifndef ModuleCppCmd |
| 1226 |
#define ModuleCppCmd CppCmd |
| 1227 |
#endif |
| 1228 |
#ifndef ModuleCFlags |
| 1229 |
#define ModuleCFlags $(CFLAGS) |
| 1230 |
#endif |
| 1231 |
#ifndef ModuleAsCmd |
| 1232 |
#define ModuleAsCmd AsCmd |
| 1233 |
#endif |
| 1234 |
#ifndef ModuleAsFlags |
| 1235 |
#define ModuleAsFlags /**/ |
| 1236 |
#endif |
| 1237 |
#ifndef ModuleLdCmd |
| 1238 |
#define ModuleLdCmd LdCmd |
| 1239 |
#endif |
| 1240 |
#ifndef ModuleLdFlags |
| 1241 |
#define ModuleLdFlags /**/ |
| 1242 |
#endif |
| 1243 |
#ifndef ModuleLdCombineFlags |
| 1244 |
#define ModuleLdCombineFlags LdCombineFlags |
| 1245 |
#endif |
| 1246 |
#ifndef ModuleArCmd |
| 1247 |
#define ModuleArCmd ArCmd |
| 1248 |
#endif |
| 1249 |
#ifndef NeedModuleRanlib |
| 1250 |
#define NeedModuleRanlib NO |
| 1251 |
#endif |
| 1252 |
#ifndef ModuleRanlibCmd |
| 1253 |
#define ModuleRanlibCmd RanlibCmd |
| 1254 |
#endif |
| 1255 |
|
| 1256 |
#ifndef HostCcCmd |
| 1257 |
#define HostCcCmd cc |
| 1258 |
#endif |
| 1259 |
#ifndef StandardIncludes /* for platform-specifics */ |
| 1260 |
#define StandardIncludes /**/ |
| 1261 |
#endif |
| 1262 |
#ifndef StandardDefines |
| 1263 |
#if SystemV |
| 1264 |
#define StandardDefines -DSYSV |
| 1265 |
#else |
| 1266 |
#if SystemV4 |
| 1267 |
#define StandardDefines -DSVR4 |
| 1268 |
#else |
| 1269 |
#define StandardDefines /**/ |
| 1270 |
#endif |
| 1271 |
#endif |
| 1272 |
#endif |
| 1273 |
#ifndef StandardCppOptions |
| 1274 |
#define StandardCppOptions /**/ |
| 1275 |
#endif |
| 1276 |
#ifndef StandardCppDefines |
| 1277 |
#define StandardCppDefines StandardCppOptions StandardDefines |
| 1278 |
#endif |
| 1279 |
#ifndef Malloc0ReturnsNull |
| 1280 |
#if UseGnuMalloc |
| 1281 |
#define Malloc0ReturnsNull YES |
| 1282 |
#else |
| 1283 |
#define Malloc0ReturnsNull NO |
| 1284 |
#endif |
| 1285 |
#endif |
| 1286 |
#if Malloc0ReturnsNull |
| 1287 |
#ifndef Malloc0ReturnsNullDefines |
| 1288 |
#define Malloc0ReturnsNullDefines -DMALLOC_0_RETURNS_NULL |
| 1289 |
#endif |
| 1290 |
#endif |
| 1291 |
#ifndef ToolkitStringsABIOptions |
| 1292 |
#define ToolkitStringsABIOptions /**/ |
| 1293 |
#endif |
| 1294 |
#ifndef HasSetitimer |
| 1295 |
#define HasSetitimer YES |
| 1296 |
#endif |
| 1297 |
#ifndef HasSetitimerDefines |
| 1298 |
#define HasSetitimerDefines -DHAVE_SETITIMER=1 |
| 1299 |
#endif |
| 1300 |
#ifndef HasLdRunPath |
| 1301 |
#define HasLdRunPath NO |
| 1302 |
#endif |
| 1303 |
#ifndef LdPreLib |
| 1304 |
# if !defined(UseInstalled) |
| 1305 |
# define LdPreLib -L$(BUILDLIBDIR) |
| 1306 |
# else |
| 1307 |
# if AlternateUsrLibDir |
| 1308 |
# define LdPreLib -L$(USRLIBDIR) |
| 1309 |
# else |
| 1310 |
# define LdPreLib /**/ |
| 1311 |
# endif |
| 1312 |
#endif |
| 1313 |
#endif |
| 1314 |
#ifndef LdPostLib |
| 1315 |
#if !defined(UseInstalled) && AlternateUsrLibDir && !HasLdRunPath && !defined(CrossCompileDir) |
| 1316 |
#define LdPostLib -L$(USRLIBDIR) |
| 1317 |
#else |
| 1318 |
#define LdPostLib /**/ |
| 1319 |
#endif |
| 1320 |
#endif |
| 1321 |
#ifndef MathLibrary |
| 1322 |
#define MathLibrary -lm |
| 1323 |
#endif |
| 1324 |
#ifndef DlLibrary |
| 1325 |
#define DlLibrary -ldl |
| 1326 |
#endif |
| 1327 |
#ifndef ExtraLibraries |
| 1328 |
#if SystemV4 |
| 1329 |
#if HasSockets |
| 1330 |
#define ExtraLibraries -lsocket -lnsl -lw |
| 1331 |
#else |
| 1332 |
#define ExtraLibraries -lnsl -lw |
| 1333 |
#endif |
| 1334 |
#else |
| 1335 |
#define ExtraLibraries /**/ |
| 1336 |
#endif |
| 1337 |
#endif |
| 1338 |
#ifndef ExtraLoadOptions |
| 1339 |
#define ExtraLoadOptions /**/ |
| 1340 |
#endif |
| 1341 |
#ifndef ExtraLoadFlags |
| 1342 |
#define ExtraLoadFlags /**/ |
| 1343 |
#endif |
| 1344 |
#ifndef LdCombineFlags |
| 1345 |
#if SystemV4 |
| 1346 |
#define LdCombineFlags -r |
| 1347 |
#else |
| 1348 |
#define LdCombineFlags -X -r |
| 1349 |
#endif |
| 1350 |
#endif |
| 1351 |
#ifndef LdStripFlags |
| 1352 |
#define LdStripFlags -x |
| 1353 |
#endif |
| 1354 |
#ifndef TagsCmd |
| 1355 |
#define TagsCmd ctags |
| 1356 |
#endif |
| 1357 |
#ifndef LoaderLibPrefix |
| 1358 |
#define LoaderLibPrefix /**/ |
| 1359 |
#endif |
| 1360 |
#ifndef ImakeCmd |
| 1361 |
#define ImakeCmd imake |
| 1362 |
#endif |
| 1363 |
#ifndef ImakeWarningFlags |
| 1364 |
#define ImakeWarningFlags /* Nothing */ |
| 1365 |
#endif |
| 1366 |
#ifndef DependCmd |
| 1367 |
#define DependCmd gccmakedep |
| 1368 |
#endif |
| 1369 |
#ifndef DependDefines |
| 1370 |
# if UseCCMakeDepend || UseGccMakeDepend |
| 1371 |
# define DependDefines /**/ |
| 1372 |
# else |
| 1373 |
# define DependDefines -DUSE_MAKEDEPEND |
| 1374 |
# endif |
| 1375 |
#endif |
| 1376 |
#ifndef DependFlags |
| 1377 |
#define DependFlags /**/ |
| 1378 |
#endif |
| 1379 |
#ifndef DependFileName |
| 1380 |
#if !HasBsdMake |
| 1381 |
#define DependFileName Makefile.dep |
| 1382 |
#else |
| 1383 |
#define DependFileName .depend |
| 1384 |
#endif |
| 1385 |
#endif |
| 1386 |
#ifndef ExportListCmd |
| 1387 |
# ifndef ExportListGenSource |
| 1388 |
# define ExportListCmd /**/ |
| 1389 |
# elif !defined(UseInstalled) |
| 1390 |
# define ExportListCmd $(CONFIGSRC)/util/exportlistgen |
| 1391 |
# else |
| 1392 |
# define ExportListCmd exportlistgen |
| 1393 |
# endif |
| 1394 |
#endif |
| 1395 |
#ifndef MkdirHierCmd |
| 1396 |
#ifdef UseInstalled /* assume BINDIR in path */ |
| 1397 |
#define MkdirHierCmd mkdirhier |
| 1398 |
#else |
| 1399 |
#define MkdirHierCmd $(SHELL) $(CONFIGSRC)/util/mkdirhier.sh |
| 1400 |
#endif |
| 1401 |
#endif |
| 1402 |
#ifndef RevPathCmd |
| 1403 |
#ifdef UseInstalled /* assume BINDIR in path */ |
| 1404 |
#define RevPathCmd revpath |
| 1405 |
#else |
| 1406 |
#define RevPathCmd $(CONFIGSRC)/util/revpath |
| 1407 |
#endif |
| 1408 |
#endif |
| 1409 |
#ifndef TroffCmd |
| 1410 |
#if HasGroff |
| 1411 |
#define TroffCmd groff -Tps |
| 1412 |
#else |
| 1413 |
#define TroffCmd troff -Tps |
| 1414 |
#endif |
| 1415 |
#endif |
| 1416 |
#ifndef NroffCmd |
| 1417 |
#define NroffCmd nroff |
| 1418 |
#endif |
| 1419 |
#ifndef HTMLroffCmd |
| 1420 |
#if HasGroff && HasGroffHtml |
| 1421 |
#define HTMLroffCmd groff -Thtml |
| 1422 |
#endif |
| 1423 |
#endif |
| 1424 |
#ifdef HTMLroffCmd |
| 1425 |
#ifndef DocFilesToClean |
| 1426 |
#define DocFilesToClean grohtml*.png *-auto-*.png |
| 1427 |
#endif |
| 1428 |
#endif |
| 1429 |
#ifndef MsMacros |
| 1430 |
#define MsMacros -ms |
| 1431 |
#endif |
| 1432 |
#ifndef ManMacros |
| 1433 |
#define ManMacros -man |
| 1434 |
#endif |
| 1435 |
#ifndef TblCmd |
| 1436 |
#define TblCmd tbl |
| 1437 |
#endif |
| 1438 |
#ifndef EqnCmd |
| 1439 |
#define EqnCmd eqn |
| 1440 |
#endif |
| 1441 |
#ifndef NeqnCmd |
| 1442 |
#define NeqnCmd neqn |
| 1443 |
#endif |
| 1444 |
#ifndef ColCmd |
| 1445 |
#define ColCmd col |
| 1446 |
#endif |
| 1447 |
#ifndef ColFlags |
| 1448 |
#define ColFlags -b |
| 1449 |
#endif |
| 1450 |
#ifndef DvipsCmd |
| 1451 |
#define DvipsCmd dvips |
| 1452 |
#endif |
| 1453 |
#ifndef LatexCmd |
| 1454 |
#define LatexCmd latex |
| 1455 |
#endif |
| 1456 |
#ifndef HasPdfLatex |
| 1457 |
#define HasPdfLatex NO |
| 1458 |
#endif |
| 1459 |
#ifndef PdfLatexCmd |
| 1460 |
#define PdfLatexCmd pdflatex |
| 1461 |
#endif |
| 1462 |
#ifndef GhostScriptCmd |
| 1463 |
#define GhostScriptCmd gs |
| 1464 |
#endif |
| 1465 |
#ifndef HasGhostPCL |
| 1466 |
#define HasGhostPCL NO |
| 1467 |
#endif |
| 1468 |
#ifndef HasGhostScript |
| 1469 |
#define HasGhostScript NO |
| 1470 |
#endif |
| 1471 |
#ifndef BuildPDFdocs |
| 1472 |
#define BuildPDFdocs (HasGhostScript) |
| 1473 |
#endif |
| 1474 |
#if BuildPDFdocs |
| 1475 |
#define PsToPdfCmd GhostScriptCmd -q -sOutputFile=- -sDEVICE=pdfwrite -dSAFER -dNOPAUSE - |
| 1476 |
#endif |
| 1477 |
#if HasSentinel |
| 1478 |
#ifndef SentinelCmd |
| 1479 |
#define SentinelCmd sentinel |
| 1480 |
#endif |
| 1481 |
#ifndef SentinelOptions |
| 1482 |
#define SentinelOptions /**/ |
| 1483 |
#endif |
| 1484 |
#endif |
| 1485 |
#if HasPurify |
| 1486 |
#ifndef PurifyCmd |
| 1487 |
#define PurifyCmd purify |
| 1488 |
#endif |
| 1489 |
#ifndef PurifyOptions |
| 1490 |
#define PurifyOptions /**/ |
| 1491 |
#endif |
| 1492 |
#endif |
| 1493 |
#if HasTestCenter |
| 1494 |
#ifndef ProofCmd |
| 1495 |
#define ProofCmd proof |
| 1496 |
#endif |
| 1497 |
#ifndef ProofOptions |
| 1498 |
#define ProofOptions /**/ |
| 1499 |
#endif |
| 1500 |
#endif |
| 1501 |
#ifndef PathSeparator |
| 1502 |
#define PathSeparator / |
| 1503 |
#endif |
| 1504 |
#ifndef Osuf |
| 1505 |
#define Osuf o |
| 1506 |
#endif |
| 1507 |
#ifndef CCsuf |
| 1508 |
#define CCsuf cc |
| 1509 |
#endif |
| 1510 |
#ifndef SHsuf |
| 1511 |
#define SHsuf sh |
| 1512 |
#endif |
| 1513 |
#ifndef ManSuffix |
| 1514 |
#define ManSuffix n /* use just one tab or cpp will die */ |
| 1515 |
#endif |
| 1516 |
#ifndef LibManSuffix |
| 1517 |
#define LibManSuffix 3 /* use just one tab or cpp will die */ |
| 1518 |
#endif |
| 1519 |
#ifndef FileManSuffix |
| 1520 |
#if SystemV || SystemV4 |
| 1521 |
#define FileManSuffix 4 /* use just one tab or cpp will die */ |
| 1522 |
#else |
| 1523 |
#define FileManSuffix 5 /* use just one tab or cpp will die */ |
| 1524 |
#endif |
| 1525 |
#endif |
| 1526 |
#ifndef MiscManSuffix |
| 1527 |
#if SystemV || SystemV4 |
| 1528 |
#define MiscManSuffix 5 /* use just one tab or cpp will die */ |
| 1529 |
#else |
| 1530 |
#define MiscManSuffix 7 /* use just one tab or cpp will die */ |
| 1531 |
#endif |
| 1532 |
#endif |
| 1533 |
#ifndef DriverManSuffix |
| 1534 |
#if SystemV || SystemV4 |
| 1535 |
#define DriverManSuffix 7 /* use just one tab or cpp will die */ |
| 1536 |
#else |
| 1537 |
#define DriverManSuffix 4 /* use just one tab or cpp will die */ |
| 1538 |
#endif |
| 1539 |
#endif |
| 1540 |
#ifndef AdminManSuffix |
| 1541 |
#if SystemV || SystemV4 |
| 1542 |
#define AdminManSuffix 1m /* use just one tab or cpp will die */ |
| 1543 |
#else |
| 1544 |
#define AdminManSuffix 8 /* use just one tab or cpp will die */ |
| 1545 |
#endif |
| 1546 |
#endif |
| 1547 |
#ifndef ExpandManNames |
| 1548 |
#if SystemV |
| 1549 |
#define ExpandManNames NO |
| 1550 |
#else |
| 1551 |
#define ExpandManNames YES |
| 1552 |
#endif |
| 1553 |
#endif |
| 1554 |
#ifndef ManSrcSuffix |
| 1555 |
#define ManSrcSuffix man |
| 1556 |
#endif |
| 1557 |
#ifndef ManNewSuffix |
| 1558 |
#define ManNewSuffix _man |
| 1559 |
#endif |
| 1560 |
#ifndef TOPDIR |
| 1561 |
#define TOPDIR . |
| 1562 |
#endif |
| 1563 |
#ifndef CURDIR |
| 1564 |
#define CURDIR . |
| 1565 |
#endif |
| 1566 |
#ifndef SiteIConfigFiles |
| 1567 |
#define SiteIConfigFiles /**/ |
| 1568 |
#endif |
| 1569 |
#ifndef OtherIConfigFiles |
| 1570 |
#define OtherIConfigFiles /**/ |
| 1571 |
#endif |
| 1572 |
#ifndef ExtraFilesToClean |
| 1573 |
#define ExtraFilesToClean /**/ |
| 1574 |
#endif |
| 1575 |
#ifndef DocFilesToClean |
| 1576 |
#define DocFilesToClean /**/ |
| 1577 |
#endif |
| 1578 |
#ifndef FilesToClean |
| 1579 |
#define FilesToClean *.CKP *.ln *.BAK *.bak *.Osuf core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut |
| 1580 |
#endif |
| 1581 |
|
| 1582 |
#ifdef CrossCompileDir |
| 1583 |
# ifndef StripPath |
| 1584 |
# define StripPath(x) `echo x|sed "s%.*/%%"` |
| 1585 |
# endif |
| 1586 |
# ifndef CrossArCmd |
| 1587 |
# define CrossArCmd Concat3(CrossCompileDir,/,StripPath(ArCmd)) |
| 1588 |
# endif |
| 1589 |
# ifndef CrossCcCmd |
| 1590 |
# define CrossCcCmd Concat3(CrossCompileDir,/,StripPath(CcCmd)) |
| 1591 |
# endif |
| 1592 |
# ifndef CrossAsCmd |
| 1593 |
# define CrossAsCmd Concat3(CrossCompileDir,/,StripPath(AsCmd)) |
| 1594 |
# endif |
| 1595 |
# ifdef HasFortran |
| 1596 |
# ifndef CrossFortranCmd |
| 1597 |
# define CrossFortranCmd Concat3(CrossCompileDir,/,StripPath(FortranCmd)) |
| 1598 |
# endif |
| 1599 |
# endif |
| 1600 |
# ifndef CrossCplusplusCmd |
| 1601 |
# define CrossCplusplusCmd Concat3(CrossCompileDir,/,StripPath(CplusplusCmd)) |
| 1602 |
# endif |
| 1603 |
# ifndef CrossCppCmd |
| 1604 |
# define CrossCppCmd Concat3(CrossCompileDir,/,StripPath(CppCmd)) |
| 1605 |
# endif |
| 1606 |
# ifndef CrossRawCppCmdCmd |
| 1607 |
# define CrossRawCppCmd Concat3(CrossCompileDir,/,StripPath(RawCppCmd)) |
| 1608 |
# endif |
| 1609 |
# ifndef CrossPreProcessCmd |
| 1610 |
# define CrossPreProcessCmd Concat3(CrossCompileDir,/,StripPath(PreProcessCmd)) |
| 1611 |
# endif |
| 1612 |
# ifndef CrossAsCmd |
| 1613 |
# define CrossAsCmd Concat3(CrossCompileDir,/,StripPath(AsCmd)) |
| 1614 |
# endif |
| 1615 |
# ifndef CrossLdCmd |
| 1616 |
# define CrossLdCmd Concat3(CrossCompileDir,/,StripPath(LdCmd)) |
| 1617 |
# endif |
| 1618 |
# ifndef CrossModuleLdCmd |
| 1619 |
# define CrossModuleLdCmd CrossLdCmd |
| 1620 |
# endif |
| 1621 |
# ifndef CrossLintCmd |
| 1622 |
# define CrossLintCmd Concat3(CrossCompileDir,/,StripPath(LintCmd)) |
| 1623 |
# endif |
| 1624 |
# ifndef CrossRanlibCmd |
| 1625 |
# define CrossRanlibCmd Concat3(CrossCompileDir,/,StripPath(RanlibCmd)) |
| 1626 |
# endif |
| 1627 |
# ifndef CrossModuleCcCmd |
| 1628 |
# define CrossModuleCcCmd Concat3(CrossCompileDir,/,StripPath(ModuleCcCmd)) |
| 1629 |
# endif |
| 1630 |
# ifndef CrossAsCmd |
| 1631 |
# define CrossAsCmd Concat3(CrossCompileDir,/,StripPath(AsCmd)) |
| 1632 |
# endif |
| 1633 |
# ifndef CrossStripCmd |
| 1634 |
# define CrossStripCmd Concat3(CrossCompileDir,/,StripPath(StripCmd)) |
| 1635 |
# endif |
| 1636 |
#endif |
| 1637 |
|
| 1638 |
PATHSEP = PathSeparator |
| 1639 |
SHELL = BourneShell |
| 1640 |
|
| 1641 |
TOP = TOPDIR |
| 1642 |
CURRENT_DIR = CURDIR |
| 1643 |
|
| 1644 |
IMAKE = ImakeCmd |
| 1645 |
DEPEND = DependCmd |
| 1646 |
MKDIRHIER = MkdirHierCmd |
| 1647 |
REVPATH = RevPathCmd |
| 1648 |
EXPORTLISTGEN = ExportListCmd |
| 1649 |
RMAN = RmanCmd |
| 1650 |
RMANBASENAME = HostProgramTargetName(rman) |
| 1651 |
RMANOPTIONS = RmanOptions |
| 1652 |
CONFIGSRC = ConfigSrc |
| 1653 |
IMAKESRC = $(CONFIGSRC)/imake |
| 1654 |
DEPENDSRC = DependDir |
| 1655 |
|
| 1656 |
INCROOT = IncRoot /* base of where to put header files */ |
| 1657 |
USRLIBDIR = UsrLibDir /* nonshared libraries */ |
| 1658 |
USRDATADIR = UsrDataDir /* arch-indep files (XErrorDB, etc.) */ |
| 1659 |
VARDIR = VarDirectory /* usually /var */ |
| 1660 |
VARLIBDIR = VarLibDir /* xdm runtime files */ |
| 1661 |
SYSTEMUSRLIBDIR = SystemUsrLibDir /* system's "/usr/lib" */ |
| 1662 |
SYSTEMUSRINCDIR = SystemUsrIncDir /* system's "/usr/include" */ |
| 1663 |
SYSTEMXKBCONFDIR = SystemXkbConfigDir /* system's "/usr/share/xkb" */ |
| 1664 |
SYSTEMXKBBINDIR = SystemXkbBinDir /* system's "/usr/bin" */ |
| 1665 |
SYSTEMFONTDIR = SystemFontDir /* system's "/usr/share/fonts/X11" */ |
| 1666 |
SHLIBDIR = ShLibDir /* shared libraries */ |
| 1667 |
LINTLIBDIR = LintlibDir /* lint libraries */ |
| 1668 |
MANPATH = ManPath /* top of manual page tree */ |
| 1669 |
MANSOURCEPATH = ManSourcePath /* prefix for man page sources */ |
| 1670 |
MANDIR = ManDir /* man pages for commands */ |
| 1671 |
LIBMANDIR = LibmanDir /* man pages for library routines */ |
| 1672 |
FILEMANDIR = FileManDir /* man pages for config files */ |
| 1673 |
MISCMANDIR = MiscManDir /* man pages for miscellaneous files */ |
| 1674 |
DRIVERMANDIR = DriverManDir /* man pages for drivers */ |
| 1675 |
LOGDIRECTORY = LogDirectory /* OS location of log files */ |
| 1676 |
#ifdef VarRunDirectory |
| 1677 |
VARRUNDIR = VarRunDirectory /* OS location of PID files */ |
| 1678 |
#endif |
| 1679 |
#ifdef VarDbDirectory |
| 1680 |
VARDBDIR = VarDbDirectory /* OS location of db/state files */ |
| 1681 |
#endif |
| 1682 |
#ifdef CrossCompileDir |
| 1683 |
AR = CrossArCmd |
| 1684 |
#else |
| 1685 |
AR = ArCmd |
| 1686 |
#endif |
| 1687 |
XCOMM Nice try but useless: make will inherit BOOTSTRAPCFLAGS |
| 1688 |
XCOMM from top Makefile |
| 1689 |
BOOTSTRAPCFLAGS = BootstrapCFlags /* set if cpp does not have uniq sym */ |
| 1690 |
#ifdef CrossCompileDir |
| 1691 |
CC = CrossCcCmd |
| 1692 |
AS = CrossAsCmd |
| 1693 |
#else |
| 1694 |
CC = CcCmd |
| 1695 |
AS = AsCmd |
| 1696 |
#endif |
| 1697 |
#if HasFortran |
| 1698 |
# ifdef CrossCompileDir |
| 1699 |
FC = CrossFortranCmd |
| 1700 |
# else |
| 1701 |
FC = FortranCmd |
| 1702 |
# endif |
| 1703 |
FDEBUGFLAGS = FortranDebugFlags |
| 1704 |
FCFLAGS = FortranFlags $(FDEBUGFLAGS) |
| 1705 |
#endif |
| 1706 |
#if HasCplusplus |
| 1707 |
|
| 1708 |
.SUFFIXES: Concat(.,CCsuf) |
| 1709 |
|
| 1710 |
#ifdef CrossCompileDir |
| 1711 |
CXX = CrossCplusplusCmd |
| 1712 |
#else |
| 1713 |
CXX = CplusplusCmd |
| 1714 |
#endif |
| 1715 |
CXXFILT = CplusplusFilt |
| 1716 |
#ifdef CplusplusLibCDir |
| 1717 |
CXXLIBDIR = CplusplusLibCDir |
| 1718 |
CXXLIB = -L$(CXXLIBDIR) CplusplusLibC |
| 1719 |
#else |
| 1720 |
CXXLIB = CplusplusLibC |
| 1721 |
#endif |
| 1722 |
|
| 1723 |
CXXDEBUGFLAGS = DefaultCplusplusDebugFlags |
| 1724 |
CXXDEPENDINCLUDES = CplusplusDependIncludes |
| 1725 |
CXXEXTRA_DEFINES = CplusplusExtraDefines |
| 1726 |
CXXEXTRA_INCLUDES = CplusplusExtraIncludes |
| 1727 |
CXXSTD_DEFINES = CplusplusStandardDefines $(CXXPROJECT_DEFINES) |
| 1728 |
CXXOPTIONS = CplusplusOptions |
| 1729 |
CXXINCLUDES = $(INCLUDES) $(TOP_INCLUDES) $(CXXEXTRA_INCLUDES) |
| 1730 |
CXXDEFINES = $(CXXINCLUDES) $(CXXSTD_DEFINES) $(THREADS_CXXDEFINES) $(DEFINES) $(CXXEXTRA_DEFINES) |
| 1731 |
CXXFLAGS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) $(THREADS_CXXFLAGS) $(CXXDEFINES) |
| 1732 |
#endif |
| 1733 |
COMPRESS = CompressCmd |
| 1734 |
GZIPCMD = GzipCmd |
| 1735 |
#ifdef CrossCompileDir |
| 1736 |
CPP = CrossCppCmd $(STD_CPP_DEFINES) |
| 1737 |
RAWCPP = CrossRawCppCmd $(STD_CPP_OPTIONS) |
| 1738 |
PREPROCESSCMD = CrossPreProcessCmd $(STD_CPP_DEFINES) |
| 1739 |
#else |
| 1740 |
CPP = CppCmd $(STD_CPP_DEFINES) /* simple filters */ |
| 1741 |
RAWCPP = RawCppCmd $(STD_CPP_OPTIONS) |
| 1742 |
PREPROCESSCMD = PreProcessCmd $(STD_CPP_DEFINES) /* preferred; mdep */ |
| 1743 |
#endif |
| 1744 |
INSTALL = InstallCmd |
| 1745 |
INSTALLFLAGS = InstallFlags |
| 1746 |
#ifdef CrossCompileDir |
| 1747 |
LD = CrossLdCmd |
| 1748 |
#else |
| 1749 |
LD = LdCmd |
| 1750 |
#endif |
| 1751 |
LEX = LexCmd |
| 1752 |
M4 = M4Cmd |
| 1753 |
M4FLAGS = M4Flags |
| 1754 |
LEXLIB = LexLib |
| 1755 |
YACC = YaccCmd |
| 1756 |
CCYACC = CplusplusYaccCmd |
| 1757 |
#ifdef CrossCompileDir |
| 1758 |
LINT = CrossLintCmd |
| 1759 |
#else |
| 1760 |
LINT = LintCmd |
| 1761 |
#endif |
| 1762 |
LINTLIBFLAG = LintLibFlag |
| 1763 |
LINTOPTS = LintOpts |
| 1764 |
LN = LnCmd |
| 1765 |
MAKE = MakeCmd |
| 1766 |
MV = MvCmd |
| 1767 |
CP = CpCmd |
| 1768 |
#if DoRanlibCmd |
| 1769 |
#ifdef CrossCompileDir |
| 1770 |
RANLIB = CrossCompileDir/RanlibCmd |
| 1771 |
#else |
| 1772 |
RANLIB = RanlibCmd |
| 1773 |
#endif |
| 1774 |
RANLIBINSTFLAGS = RanlibInstFlags |
| 1775 |
#endif |
| 1776 |
RM = RmCmd |
| 1777 |
PERL = PerlCmd |
| 1778 |
PERLOPTS = PerlOptions |
| 1779 |
PERLENVSETUP = PerlEnvSetup |
| 1780 |
MANSUFFIX = ManSuffix /* suffix for command man pages */ |
| 1781 |
LIBMANSUFFIX = LibManSuffix /* suffix for library man pages */ |
| 1782 |
FILEMANSUFFIX = FileManSuffix /* suffix for file format man pages */ |
| 1783 |
MISCMANSUFFIX = MiscManSuffix /* suffix for misc man pages */ |
| 1784 |
DRIVERMANSUFFIX = DriverManSuffix /* suffix for driver man pages */ |
| 1785 |
ADMINMANSUFFIX = AdminManSuffix /* suffix for admin command man pages */ |
| 1786 |
MANSRCSUFFIX = ManSrcSuffix /* suffix for man page source */ |
| 1787 |
MANNEWSUFFIX = ManNewSuffix /* suffix for preprocessed man source */ |
| 1788 |
MANDEFS = AppLoadDefs AppManDefs FileManDefs LibManDefs MiscManDefs DriverManDefs AdminManDefs ProjectManDefs XConfigFileManDefs XConfigDirManDefs XLogFileManDefs XServerManDefs $(XORGMANDEFS) $(VENDORMANDEFS) |
| 1789 |
|
| 1790 |
COMPRESSMANCMD = CompressManCmd |
| 1791 |
|
| 1792 |
TROFF = TroffCmd |
| 1793 |
NROFF = NroffCmd |
| 1794 |
#ifdef HTMLroffCmd |
| 1795 |
HTMLROFF = HTMLroffCmd |
| 1796 |
#endif |
| 1797 |
#ifdef PsToPdfCmd |
| 1798 |
PSTOPDFCMD = PsToPdfCmd |
| 1799 |
#endif |
| 1800 |
MSMACROS = MsMacros |
| 1801 |
MANMACROS = ManMacros |
| 1802 |
TBL = TblCmd |
| 1803 |
EQN = EqnCmd |
| 1804 |
NEQN = NeqnCmd |
| 1805 |
COL = ColCmd |
| 1806 |
COLFLAGS = ColFlags |
| 1807 |
#ifdef CrossCompileDir |
| 1808 |
MODCC = CrossModuleCcCmd |
| 1809 |
#else |
| 1810 |
MODCC = ModuleCcCmd |
| 1811 |
#endif |
| 1812 |
MODCPP = ModuleCppCmd |
| 1813 |
MODCFLAGS = ModuleCFlags |
| 1814 |
MODAS = ModuleAsCmd |
| 1815 |
MODASFLAGS = ModuleAsFlags |
| 1816 |
#ifdef CrossCompileDir |
| 1817 |
MODLD = CrossModuleLdCmd |
| 1818 |
#else |
| 1819 |
MODLD = ModuleLdCmd |
| 1820 |
#endif |
| 1821 |
MODLDFLAGS = ModuleLdFlags |
| 1822 |
MODLDCOMBINEFLAGS = ModuleLdCombineFlags |
| 1823 |
MODAR = ModuleArCmd |
| 1824 |
#ifdef CrossCompileDir |
| 1825 |
MODRANLIB = CrossCompileDir/ModuleRanlibCmd |
| 1826 |
#else |
| 1827 |
MODRANLIB = ModuleRanlibCmd |
| 1828 |
#endif |
| 1829 |
#if HasLatex |
| 1830 |
DVIPS = DvipsCmd |
| 1831 |
LATEX = LatexCmd |
| 1832 |
#endif |
| 1833 |
#if HasPdfLatex |
| 1834 |
PDFLATEXCMD = PdfLatexCmd |
| 1835 |
#endif |
| 1836 |
#if HasSentinel |
| 1837 |
SENTINEL = SentinelCmd |
| 1838 |
SENTINELOPTIONS = SentinelOptions |
| 1839 |
#endif |
| 1840 |
#if HasPurify |
| 1841 |
PURIFY = PurifyCmd |
| 1842 |
PURIFYOPTIONS = PurifyOptions |
| 1843 |
#endif |
| 1844 |
#if HasTestCenter |
| 1845 |
PROOF = ProofCmd |
| 1846 |
PROOFOPTIONS = ProofOptions |
| 1847 |
#endif |
| 1848 |
#if CrossCompiling |
| 1849 |
HOST_CC = HostCcCmd |
| 1850 |
#endif |
| 1851 |
STD_INCLUDES = StandardIncludes |
| 1852 |
STD_CPP_OPTIONS = StandardCppOptions |
| 1853 |
STD_CPP_DEFINES = StandardCppOptions StandardCppDefines $(PROJECT_DEFINES) |
| 1854 |
STD_DEFINES = StandardDefines $(PROJECT_DEFINES) |
| 1855 |
SETITIMER_DEFINES = HasSetitimerDefines |
| 1856 |
EXTRA_LOAD_FLAGS = ExtraLoadFlags |
| 1857 |
EXTRA_INSTALL_LOAD_FLAGS = ExtraInstallLoadFlags |
| 1858 |
EXTRA_LDOPTIONS = ExtraLoadOptions |
| 1859 |
EXTRA_LIBRARIES = MallocLibraries ExtraLibraries |
| 1860 |
TAGS = TagsCmd |
| 1861 |
#if ConstructMFLAGS |
| 1862 |
MFLAGS = -$(MAKEFLAGS) |
| 1863 |
#endif |
| 1864 |
#if ConstructMAKEFLAGS |
| 1865 |
MAKEFLAGS = $(MFLAGS) |
| 1866 |
#endif |
| 1867 |
PARALLELMFLAGS = ParallelMakeFlags |
| 1868 |
#if HasSharedLibraries |
| 1869 |
SHAREDCODEDEF = SharedCodeDef |
| 1870 |
SHLIBDEF = SharedLibraryDef |
| 1871 |
#ifdef SharedLibraryLoadFlags |
| 1872 |
SHLIBLDFLAGS = SharedLibraryLoadFlags $(SHLIBGLOBALSFLAGS) |
| 1873 |
#if HasGcc |
| 1874 |
NOSTDLIB = -nostdlib |
| 1875 |
POSTNOSTDLIB = -Wl,-Bstatic -lgcc -Wl,-Bdynamic |
| 1876 |
#elif HasIntelC |
| 1877 |
NOSTDLIB = -nostdlib |
| 1878 |
POSTNOSTDLIB = |
| 1879 |
#elif HasSunC |
| 1880 |
NOSTDLIB = -xnolib |
| 1881 |
POSTNOSTDLIB = |
| 1882 |
#endif |
| 1883 |
#endif |
| 1884 |
|
| 1885 |
#if HasXfont2 |
| 1886 |
FONT_DEFINES = -DHAS_XFONT2 |
| 1887 |
XFONTLIB = -lXfont2 |
| 1888 |
#else |
| 1889 |
#if HasLegacyXfont1 |
| 1890 |
FONT_DEFINES = -DLEGACY_XFONT1 |
| 1891 |
#else |
| 1892 |
FONT_DEFINES = |
| 1893 |
#endif |
| 1894 |
XFONTLIB = -lXfont |
| 1895 |
#endif |
| 1896 |
|
| 1897 |
#if HasLegacyXextProto |
| 1898 |
XEXT_EXTRA_DEFINES = -DLEGACY_XEXT_PROTO |
| 1899 |
#else |
| 1900 |
XEXT_EXTRA_DEFINES = |
| 1901 |
#endif |
| 1902 |
|
| 1903 |
/* |
| 1904 |
* Here we set up flags needed to produce position-independent code |
| 1905 |
* when doing C and C++ compilation. The default if you specify C |
| 1906 |
* PIC flags without also specifying C++ PIC flags is to assume that |
| 1907 |
* the C flags work for both. If your C++ compiler requires different |
| 1908 |
* flags, specify them explicitly in PositionIndependentCplusplusFlags. |
| 1909 |
*/ |
| 1910 |
#ifdef PositionIndependentCFlags |
| 1911 |
PICFLAGS = PositionIndependentCFlags |
| 1912 |
#endif |
| 1913 |
#ifdef PositionIndependentCplusplusFlags |
| 1914 |
CXXPICFLAGS = PositionIndependentCplusplusFlags |
| 1915 |
#else |
| 1916 |
#ifdef PositionIndependentCFlags |
| 1917 |
CXXPICFLAGS = PositionIndependentCFlags |
| 1918 |
#endif |
| 1919 |
#endif |
| 1920 |
#endif |
| 1921 |
#if !HasVoidSignalReturn |
| 1922 |
SIGNAL_DEFINES = -DSIGNALRETURNSINT |
| 1923 |
#endif |
| 1924 |
/* |
| 1925 |
* The following supports forcing of function prototypes |
| 1926 |
*/ |
| 1927 |
#if NeedFunctionPrototypes && NeedVarargsPrototypes && NeedConstPrototypes && NeedNestedPrototypes |
| 1928 |
#define _funcprotodef -DFUNCPROTO=15 |
| 1929 |
#else |
| 1930 |
#if NeedFunctionPrototypes && NeedVarargsPrototypes && NeedNestedPrototypes |
| 1931 |
#define _funcprotodef -DFUNCPROTO=11 |
| 1932 |
#else |
| 1933 |
#if NeedFunctionPrototypes && NeedNestedPrototypes |
| 1934 |
#define _funcprotodef -DFUNCPROTO=9 |
| 1935 |
#else |
| 1936 |
#if NeedFunctionPrototypes && NeedVarargsPrototypes && NeedConstPrototypes |
| 1937 |
#define _funcprotodef -DFUNCPROTO=7 |
| 1938 |
#else |
| 1939 |
#if NeedFunctionPrototypes && NeedConstPrototypes |
| 1940 |
#define _funcprotodef -DFUNCPROTO=5 |
| 1941 |
#else |
| 1942 |
#if NeedFunctionPrototypes && NeedVarargsPrototypes |
| 1943 |
#define _funcprotodef -DFUNCPROTO=3 |
| 1944 |
#else |
| 1945 |
#if NeedFunctionPrototypes |
| 1946 |
#define _funcprotodef -DFUNCPROTO |
| 1947 |
#else |
| 1948 |
#define _funcprotodef /**/ |
| 1949 |
#endif |
| 1950 |
#endif |
| 1951 |
#endif |
| 1952 |
#endif |
| 1953 |
#endif |
| 1954 |
#endif |
| 1955 |
#endif |
| 1956 |
#if NeedWidePrototypes |
| 1957 |
#define _wideprotodef /**/ |
| 1958 |
#else |
| 1959 |
#define _wideprotodef -DNARROWPROTO |
| 1960 |
#endif |
| 1961 |
PROTO_DEFINES = _funcprotodef _wideprotodef |
| 1962 |
#undef _funcprotodef |
| 1963 |
#undef _wideprotodef |
| 1964 |
|
| 1965 |
#if StripInstalledPrograms |
| 1966 |
INSTPGMFLAGS = InstPgmFlags /* install flags for stripping */ |
| 1967 |
#else |
| 1968 |
INSTPGMFLAGS = |
| 1969 |
#endif |
| 1970 |
INSTBINFLAGS = InstBinFlags /* install flags for programs */ |
| 1971 |
INSTUIDFLAGS = InstUidFlags /* install flags for setuid programs */ |
| 1972 |
INSTLIBFLAGS = InstLibFlags /* install flags for libraries */ |
| 1973 |
INSTINCFLAGS = InstIncFlags /* install flags for headers */ |
| 1974 |
INSTMANFLAGS = InstManFlags /* install flags for man pages */ |
| 1975 |
INSTDATFLAGS = InstDatFlags /* install flags for data files */ |
| 1976 |
INSTKMEMFLAGS = InstKmemFlags /* install flags for /dev/kmem progs */ |
| 1977 |
|
| 1978 |
#ifdef ProjectRoot |
| 1979 |
PROJECTROOT = ProjectRoot |
| 1980 |
#endif |
| 1981 |
#ifdef UseInstalled |
| 1982 |
# if AlternateIncRoot |
| 1983 |
# define TopInclude -I$(INCROOT) |
| 1984 |
# else |
| 1985 |
# define TopInclude /**/ |
| 1986 |
# endif |
| 1987 |
#else |
| 1988 |
# define TopInclude -I$(TOP) |
| 1989 |
#endif |
| 1990 |
|
| 1991 |
CDEBUGFLAGS = DefaultCDebugFlags |
| 1992 |
CCOPTIONS = DefaultCCOptions /* to distinguish from param flags */ |
| 1993 |
/* |
| 1994 |
* STD_INCLUDES contains system-specific includes |
| 1995 |
* TOP_INCLUDES specifies how to get to /usr/include or its build substitute |
| 1996 |
* EXTRA_INCLUDES contains project-specific includes set in project incfiles |
| 1997 |
* INCLUDES contains client-specific includes set in Imakefile |
| 1998 |
* LOCAL_LDFLAGS contains client-specific ld flags flags set in Imakefile |
| 1999 |
*/ |
| 2000 |
ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(INSTALLED_INCLUDES) $(STD_INCLUDES) |
| 2001 |
ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(SETITIMER_DEFINES) $(FONT_DEFINES) $(PROTO_DEFINES) $(XEXT_EXTRA_DEFINES) $(THREADS_DEFINES) $(MODULE_DEFINES) $(DEFINES) $(EXTRA_DEFINES) |
| 2002 |
CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(THREADS_CFLAGS) $(MODULE_CFLAGS) $(ALLDEFINES) |
| 2003 |
LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES) $(DEPEND_DEFINES) |
| 2004 |
LDPRELIB = LdPreLib $(INSTALLED_LIBS) |
| 2005 |
LDPOSTLIB = LdPostLib |
| 2006 |
LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(EXTRA_LDOPTIONS) $(THREADS_LDFLAGS) $(LOCAL_LDFLAGS) $(LDPRELIBS) |
| 2007 |
SERVERLDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(EXTRA_LDOPTIONS) $(THREADS_LDFLAGS) $(LOCAL_LDFLAGS) |
| 2008 |
CXXLDOPTIONS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) $(EXTRA_LDOPTIONS) $(THREADS_CXXLDFLAGS) $(LOCAL_LDFLAGS) $(LDPRELIBS) |
| 2009 |
|
| 2010 |
LDLIBS = $(LDPOSTLIBS) $(THREADS_LIBS) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES) |
| 2011 |
#if HasBrokenCCForLink |
| 2012 |
CCLINK = LdCmd |
| 2013 |
#else |
| 2014 |
#if AlternateUsrLibDir && HasLdRunPath |
| 2015 |
CCENVSETUP = LD_RUN_PATH=$(USRLIBDIRPATH) |
| 2016 |
CCLINK = $(CCENVSETUP) $(CC) |
| 2017 |
#else |
| 2018 |
CCLINK = $(CC) |
| 2019 |
#endif |
| 2020 |
#endif |
| 2021 |
#if AlternateUsrLibDir && HasLdRunPath |
| 2022 |
CXXENVSETUP = LD_RUN_PATH=$(USRLIBDIRPATH) |
| 2023 |
CXXLINK = $(CXXENVSETUP) $(CXX) |
| 2024 |
#else |
| 2025 |
CXXLINK = $(CXX) |
| 2026 |
#endif |
| 2027 |
LDSTRIPFLAGS = LdStripFlags |
| 2028 |
LDCOMBINEFLAGS = LdCombineFlags |
| 2029 |
DEPENDFLAGS = DependFlags |
| 2030 |
DEPEND_DEFINES = DependDefines |
| 2031 |
|
| 2032 |
XCOMM Not sure this belongs here |
| 2033 |
TKLIBDIR = TkLibDir |
| 2034 |
TKINCDIR = TkIncDir |
| 2035 |
TKLIBNAME = TkLibName |
| 2036 |
TKLIBRARY = TkLibrary |
| 2037 |
TCLLIBDIR = TclLibDir |
| 2038 |
TCLINCDIR = TclIncDir |
| 2039 |
TCLLIBNAME = TclLibName |
| 2040 |
TCLLIBRARY = TclLibrary |
| 2041 |
|
| 2042 |
MACROFILE = MacroFile |
| 2043 |
RM_CMD = $(RM) |
| 2044 |
|
| 2045 |
IMAKE_DEFINES = /* leave blank, for command line use only */ |
| 2046 |
IMAKE_WARNINGS = ImakeWarningFlags |
| 2047 |
#ifdef UseInstalled |
| 2048 |
IRULESRC = $(CONFIGDIR) /* used in rules file */ |
| 2049 |
IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES) \ |
| 2050 |
$(IMAKE_WARNINGS) |
| 2051 |
#else |
| 2052 |
IRULESRC = $(CONFIGSRC)/cf |
| 2053 |
IMAKE_CMD = $(IMAKE) -I$(IRULESRC) $(IMAKE_DEFINES) $(IMAKE_WARNINGS) |
| 2054 |
#endif |
| 2055 |
#if !HasClearmake |
| 2056 |
/* clearmake records relevant defines and flags in the build script, |
| 2057 |
so it knows when they change and we don't need this coarser-level |
| 2058 |
dependency. We also don't want it, since it prevents sharing if |
| 2059 |
even one config file, say site.def or host.def, changes. */ |
| 2060 |
ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/X11.tmpl \ |
| 2061 |
$(IRULESRC)/site.def $(IRULESRC)/$(MACROFILE) \ |
| 2062 |
OtherIConfigFiles SiteIConfigFiles $(EXTRA_ICONFIGFILES) |
| 2063 |
#endif |
| 2064 |
|
| 2065 |
#ifndef TopLevelProject |
| 2066 |
# define TopLevelProject X11 |
| 2067 |
#endif |
| 2068 |
#ifndef ProjectRulesFile |
| 2069 |
# define ProjectRulesFile Concat3(<,TopLevelProject,.rules>) |
| 2070 |
#endif |
| 2071 |
#include ProjectRulesFile |
| 2072 |
#ifndef LocalRulesFile |
| 2073 |
/* need this to make ANSI-style preprocessors happy */ |
| 2074 |
#define LocalRulesFile <noop.rules> |
| 2075 |
#endif |
| 2076 |
#include LocalRulesFile |
| 2077 |
|
| 2078 |
/* |
| 2079 |
* get project-specific configuration and rules |
| 2080 |
*/ |
| 2081 |
#ifndef ProjectTmplFile |
| 2082 |
#define ProjectTmplFile Concat3(<,TopLevelProject,.tmpl>) |
| 2083 |
#endif |
| 2084 |
#include ProjectTmplFile |
| 2085 |
#ifndef LocalTmplFile |
| 2086 |
/* need this to make ANSI-style preprocessors happy */ |
| 2087 |
#define LocalTmplFile <noop.rules> |
| 2088 |
#endif |
| 2089 |
#include LocalTmplFile |
| 2090 |
|
| 2091 |
#if !BuildLibraries && AlternateIncRoot && !defined(CrossCompileDir) |
| 2092 |
INSTALLED_INCLUDES = -I$(INCROOT) |
| 2093 |
#endif |
| 2094 |
|
| 2095 |
#if !defined(UseInstalled) && !BuildLibraries && AlternateUsrLibDir && !defined(CrossCompileDir) |
| 2096 |
INSTALLED_LIBS = -L$(USRLIBDIR) |
| 2097 |
#endif |
| 2098 |
|
| 2099 |
#ifdef FixupLibReferences |
| 2100 |
FixupLibReferences() |
| 2101 |
#endif |
| 2102 |
|
| 2103 |
/* ConfigDir comes from X11.tmpl */ |
| 2104 |
CONFIGDIR = ConfigDir /* build configuration information */ |
| 2105 |
#if HasClearmake |
| 2106 |
OSNAME = OSName |
| 2107 |
#endif |
| 2108 |
USRLIBDIRPATH = UsrLibDirPath |
| 2109 |
LDPRELIBS = LdPreLibs $(INSTALLED_LIBS) |
| 2110 |
LDPOSTLIBS = LdPostLibs |
| 2111 |
TOP_INCLUDES = TopIncludes |
| 2112 |
PROJECT_DEFINES = ProjectDefines |
| 2113 |
VENDOR_DEFINES = VendorDefines |
| 2114 |
#if HasCplusplus |
| 2115 |
CXXPROJECT_DEFINES = CplusplusProjectDefines |
| 2116 |
#endif |
| 2117 |
|
| 2118 |
XCOMM ---------------------------------------------------------------------- |
| 2119 |
XCOMM start of Imakefile |
| 2120 |
#include INCLUDE_IMAKEFILE |
| 2121 |
|
| 2122 |
XCOMM ---------------------------------------------------------------------- |
| 2123 |
XCOMM common rules for all Makefiles - do not edit |
| 2124 |
|
| 2125 |
.c.i: |
| 2126 |
CPPOnlyCompile($*.c,$(_NOOP_)) |
| 2127 |
|
| 2128 |
.SUFFIXES: .ii |
| 2129 |
|
| 2130 |
.cc.ii: |
| 2131 |
CPPOnlyCompile($*.cc,$(_NOOP_)) |
| 2132 |
|
| 2133 |
.SUFFIXES: .s |
| 2134 |
|
| 2135 |
.c.s: |
| 2136 |
CompileCToAsm($(_NOOP_)) |
| 2137 |
|
| 2138 |
.cc.s: |
| 2139 |
CompileCplusplusToAsm($(_NOOP_)) |
| 2140 |
|
| 2141 |
/* |
| 2142 |
* These need to be here so that rules in Imakefile occur first; the blank |
| 2143 |
* emptyrule is to make sure that an empty Imakefile does not default to make |
| 2144 |
* clean. |
| 2145 |
*/ |
| 2146 |
emptyrule:: |
| 2147 |
|
| 2148 |
CleanTarget() |
| 2149 |
|
| 2150 |
#ifndef IHaveSpecialMakefileTarget |
| 2151 |
MakefileTarget() |
| 2152 |
#endif |
| 2153 |
|
| 2154 |
#if BuildHtmlManPages |
| 2155 |
RmanDependency() |
| 2156 |
#endif |
| 2157 |
|
| 2158 |
TagsTarget() |
| 2159 |
#ifdef MakefileAdditions |
| 2160 |
MakefileAdditions() |
| 2161 |
#endif |
| 2162 |
|
| 2163 |
CenterLoadTarget(debug_src,$(SRCS),NullParameter,$(ALLDEFINES)) |
| 2164 |
|
| 2165 |
CenterLoadTarget(debug_obj,$(OBJS),NullParameter,$(ALLDEFINES)) |
| 2166 |
|
| 2167 |
ManKeywordsTarget($(MANPATH)) |
| 2168 |
|
| 2169 |
HtmlManIndex |
| 2170 |
|
| 2171 |
/* Generate the "real" clean rules */ |
| 2172 |
#undef clean |
| 2173 |
|
| 2174 |
clean:: cleandir |
| 2175 |
|
| 2176 |
distclean:: cleandir |
| 2177 |
|
| 2178 |
#ifdef IHaveSubdirs |
| 2179 |
XCOMM ---------------------------------------------------------------------- |
| 2180 |
XCOMM rules for building in SUBDIRS - do not edit |
| 2181 |
|
| 2182 |
InstallSubdirs($(SUBDIRS)) |
| 2183 |
InstallManSubdirs($(SUBDIRS)) |
| 2184 |
InstallDriverSDKSubdirs($(SUBDIRS)) |
| 2185 |
CleanSubdirs($(SUBDIRS)) |
| 2186 |
TagSubdirs($(SUBDIRS)) |
| 2187 |
MakefileSubdirs($(SUBDIRS)) |
| 2188 |
IncludesSubdirs($(SUBDIRS)) |
| 2189 |
|
| 2190 |
/* "distclean" subdirectories */ |
| 2191 |
#undef BootstrapCleanSubdirs |
| 2192 |
#define BootstrapCleanSubdirs /**/ |
| 2193 |
#define clean distclean |
| 2194 |
CleanSubdirs($(SUBDIRS)) |
| 2195 |
#undef clean |
| 2196 |
|
| 2197 |
#endif |
| 2198 |
|
| 2199 |
#if !DontPreprocessManPages || defined(PreprocessManPages) |
| 2200 |
PREPROCESSMANPAGES = true |
| 2201 |
#endif |
| 2202 |
/* must be after all install.man rules that install anything */ |
| 2203 |
#ifndef MakeManKeywords |
| 2204 |
#define MakeManKeywords NO |
| 2205 |
#endif |
| 2206 |
#if MakeManKeywords /* typically only at top level */ |
| 2207 |
install.man:: man_keywords |
| 2208 |
#endif |
| 2209 |
|
| 2210 |
/* must be after all install.man rules that install anything */ |
| 2211 |
#ifndef MakeHtmlManIndex |
| 2212 |
#define MakeHtmlManIndex NO |
| 2213 |
#endif |
| 2214 |
#if MakeHtmlManIndex /* typically only at top level */ |
| 2215 |
install.man:: html_index |
| 2216 |
#endif |
| 2217 |
|
| 2218 |
#ifndef IHaveSubdirs |
| 2219 |
XCOMM ---------------------------------------------------------------------- |
| 2220 |
XCOMM empty rules for directories that do not have SUBDIRS - do not edit |
| 2221 |
|
| 2222 |
install:: |
| 2223 |
@echo "install in $(CURRENT_DIR) done" |
| 2224 |
|
| 2225 |
install.man:: |
| 2226 |
@echo "install.man in $(CURRENT_DIR) done" |
| 2227 |
|
| 2228 |
install.sdk:: |
| 2229 |
@echo "install.sdk in $(CURRENT_DIR) done" |
| 2230 |
|
| 2231 |
Makefiles:: |
| 2232 |
|
| 2233 |
includes:: |
| 2234 |
|
| 2235 |
depend:: |
| 2236 |
|
| 2237 |
#endif /* if subdirectory rules are needed */ |
| 2238 |
|
| 2239 |
#ifndef IHaveSpecialMakefileTarget |
| 2240 |
/* "distclean" also removes the Makefile and the depend file */ |
| 2241 |
distclean:: |
| 2242 |
RemoveFiles(Makefile DependFileName) |
| 2243 |
#endif |
| 2244 |
|
| 2245 |
XCOMM ---------------------------------------------------------------------- |
| 2246 |
XCOMM dependencies generated by makedepend |
| 2247 |
IncludeMakefile(DependFileName) |