bump product version to 5.0.4.1
[LibreOffice.git] / soltools / mkdepend / imakemdep.h
blob5252d27cce456c2764a45c5d240605b06c4d5c4f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 /* $XConsortium: imakemdep.h,v 1.83 95/04/07 19:47:46 kaleb Exp $ */
4 /* $XFree86: xc/config/imake/imakemdep.h,v 3.12 1995/07/08 10:22:17 dawes Exp $ */
5 /*
7 Copyright (c) 1993, 1994 X Consortium
9 Permission is hereby granted, free of charge, to any person obtaining a copy
10 of this software and associated documentation files (the "Software"), to deal
11 in the Software without restriction, including without limitation the rights
12 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 copies of the Software, and to permit persons to whom the Software is
14 furnished to do so, subject to the following conditions:
16 The above copyright notice and this permission notice shall be included in
17 all copies or substantial portions of the Software.
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 Except as contained in this notice, the name of the X Consortium shall not be
27 used in advertising or otherwise to promote the sale, use or other dealings
28 in this Software without prior written authorization from the X Consortium.
34 * This file contains machine-dependent constants for the imake utility.
35 * When porting imake, read each of the steps below and add in any necessary
36 * definitions. In general you should *not* edit ccimake.c or imake.c!
39 #ifdef CCIMAKE
41 * Step 1: imake_ccflags
42 * Define any special flags that will be needed to get imake.c to compile.
43 * These will be passed to the compile along with the contents of the
44 * make variable BOOTSTRAPCFLAGS.
46 #if defined(macII) || defined(_AUX_SOURCE)
47 #define imake_ccflags "-DmacII -DSYSV"
48 #endif
50 #ifdef stellar
51 #define imake_ccflags "-DSYSV"
52 #endif
54 #if defined(USL) || defined(Oki) || defined(NCR)
55 #define imake_ccflags "-Xc -DSVR4"
56 #endif
58 #ifdef sony
59 #if defined(SYSTYPE_SYSV) || defined(_SYSTYPE_SYSV)
60 #define imake_ccflags "-DSVR4"
61 #else
62 #include <sys/param.h>
63 #if NEWSOS < 41
64 #define imake_ccflags "-Dbsd43 -DNOSTDHDRS"
65 #else
66 #if NEWSOS < 42
67 #define imake_ccflags "-Dbsd43"
68 #endif
69 #endif
70 #endif
71 #endif
73 #ifdef _CRAY
74 #define imake_ccflags "-DSYSV -DUSG"
75 #endif
77 #if defined(_IBMR2) || defined(aix)
78 #define imake_ccflags "-Daix -DSYSV"
79 #endif
81 #ifdef Mips
82 # if defined(SYSTYPE_BSD) || defined(BSD) || defined(BSD43)
83 # define imake_ccflags "-DBSD43"
84 # else
85 # define imake_ccflags "-DSYSV"
86 # endif
87 #endif
89 #ifdef is68k
90 #define imake_ccflags "-Dluna -Duniosb"
91 #endif
93 #ifdef SYSV386
94 # ifdef SVR4
95 # define imake_ccflags "-Xc -DSVR4"
96 # else
97 # define imake_ccflags "-DSYSV"
98 # endif
99 #endif
101 #ifdef SVR4
102 # ifdef i386
103 # define imake_ccflags "-Xc -DSVR4"
104 # endif
105 #endif
107 #ifdef SYSV
108 # ifdef i386
109 # define imake_ccflags "-DSYSV"
110 # endif
111 #endif
113 #ifdef __convex__
114 #define imake_ccflags "-fn -tm c1"
115 #endif
117 #ifdef apollo
118 #define imake_ccflags "-DX_NOT_POSIX"
119 #endif
121 #ifdef WIN32
122 #define imake_ccflags "-nologo -batch -D__STDC__"
123 #endif
125 #ifdef __uxp__
126 #define imake_ccflags "-DSVR4 -DANSICPP"
127 #endif
129 #ifdef __sxg__
130 #define imake_ccflags "-DSYSV -DUSG -DNOSTDHDRS"
131 #endif
133 #if defined(SX) || defined(PC_UX)
134 #define imake_ccflags "-DSYSV"
135 #endif
137 #ifdef nec_ews_svr2
138 #define imake_ccflags "-DUSG"
139 #endif
141 #if defined(nec_ews_svr4) || defined(_nec_ews_svr4) || defined(_nec_up) || defined(_nec_ft)
142 #define imake_ccflags "-DSVR4"
143 #endif
145 #ifdef MACH
146 #define imake_ccflags "-DNOSTDHDRS"
147 #endif
149 /* this is for OS/2 under EMX. This won't work with DOS */
150 #if defined(__EMX__)
151 #define imake_ccflags "-DBSD43"
152 #endif
154 #else /* not CCIMAKE */
155 #ifndef MAKEDEPEND
157 * Step 2: dup2
158 * If your OS doesn't have a dup2() system call to duplicate one file
159 * descriptor onto another, define such a mechanism here (if you don't
160 * already fall under the existing category(ies).
162 #if defined(SYSV) && !defined(_CRAY) && !defined(Mips)
163 #define dup2(fd1,fd2) ((fd1 == fd2) ? fd1 : (close(fd2), \
164 fcntl(fd1, F_DUPFD, fd2)))
165 #endif
169 * Step 3: FIXUP_CPP_WHITESPACE
170 * If your cpp collapses tabs macro expansions into a single space and
171 * replaces escaped newlines with a space, define this symbol. This will
172 * cause imake to attempt to patch up the generated Makefile by looking
173 * for lines that have colons in them (this is why the rules file escapes
174 * all colons). One way to tell if you need this is to see whether or not
175 * your Makefiles have no tabs in them and lots of @@ strings.
177 #if defined(sun) || defined(SYSV) || defined(SVR4) || defined(hcx) || defined(WIN32) || (defined(AMOEBA) && defined(CROSS_COMPILE))
178 #define FIXUP_CPP_WHITESPACE
179 #endif
180 #ifdef WIN32
181 #define REMOVE_CPP_LEADSPACE
182 #define INLINE_SYNTAX
183 #define MAGIC_MAKE_VARS
184 #endif
185 #ifdef __minix_vmd
186 #define FIXUP_CPP_WHITESPACE
187 #endif
190 * Step 4: USE_CC_E, DEFAULT_CC, DEFAULT_CPP
191 * If you want to use cc -E instead of cpp, define USE_CC_E.
192 * If use cc -E but want a different compiler, define DEFAULT_CC.
193 * If the cpp you need is not in /lib/cpp, define DEFAULT_CPP.
195 #ifdef WIN32
196 #define USE_CC_E
197 #define DEFAULT_CC "cl"
198 #endif
199 #ifdef apollo
200 #define DEFAULT_CPP "/usr/lib/cpp"
201 #endif
202 #if defined(_IBMR2) && !defined(DEFAULT_CPP)
203 #define DEFAULT_CPP "/usr/lpp/X11/Xamples/util/cpp/cpp"
204 #endif
205 #if defined(sun) && defined(SVR4)
206 #define DEFAULT_CPP "/usr/ccs/lib/cpp"
207 #endif
208 #ifdef __bsdi__
209 #define DEFAULT_CPP "/usr/bin/cpp"
210 #endif
211 #ifdef __uxp__
212 #define DEFAULT_CPP "/usr/ccs/lib/cpp"
213 #endif
214 #ifdef __sxg__
215 #define DEFAULT_CPP "/usr/lib/cpp"
216 #endif
217 #ifdef _CRAY
218 #define DEFAULT_CPP "/lib/pcpp"
219 #endif
220 #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
221 #define DEFAULT_CPP "/usr/libexec/cpp"
222 #endif
223 #ifdef MACH
224 #define USE_CC_E
225 #endif
226 #ifdef __minix_vmd
227 #define DEFAULT_CPP "/usr/lib/cpp"
228 #endif
229 #if defined(__EMX__)
230 /* expects cpp in PATH */
231 #define DEFAULT_CPP "cpp"
232 #endif
235 * Step 5: cpp_argv
236 * The following table contains the flags that should be passed
237 * whenever a Makefile is being generated. If your preprocessor
238 * doesn't predefine any unique symbols, choose one and add it to the
239 * end of this table. Then, do the following:
241 * a. Use this symbol in Imake.tmpl when setting MacroFile.
242 * b. Put this symbol in the definition of BootstrapCFlags in your
243 * <platform>.cf file.
244 * c. When doing a make World, always add "BOOTSTRAPCFLAGS=-Dsymbol"
245 * to the end of the command line.
247 * Note that you may define more than one symbol (useful for platforms
248 * that support multiple operating systems).
251 #define ARGUMENTS 50 /* number of arguments in various arrays */
252 char *cpp_argv[ARGUMENTS] = {
253 "cc", /* replaced by the actual program to exec */
254 "-I.", /* add current directory to include path */
255 #ifdef unix
256 "-Uunix", /* remove unix symbol so that filename unix.c okay */
257 #endif
258 #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || \
259 defined(MACH) || defined(DRAGONFLY)
260 /* FIXME: strange list of obsolete systems */
261 # ifdef __i386__
262 "-D__i386__",
263 # endif
264 # ifdef __GNUC__
265 "-traditional",
266 # endif
267 #endif
268 #ifdef M4330
269 "-DM4330", /* Tektronix */
270 #endif
271 #ifdef M4310
272 "-DM4310", /* Tektronix */
273 #endif
274 #if defined(macII) || defined(_AUX_SOURCE)
275 "-DmacII", /* Apple A/UX */
276 #endif
277 #ifdef USL
278 "-DUSL", /* USL */
279 #endif
280 #ifdef sony
281 "-Dsony", /* Sony */
282 #if !defined(SYSTYPE_SYSV) && !defined(_SYSTYPE_SYSV) && NEWSOS < 42
283 "-Dbsd43",
284 #endif
285 #endif
286 #ifdef _IBMR2
287 "-D_IBMR2", /* IBM RS-6000 (we ensured that aix is defined above */
288 #ifndef aix
289 #define aix /* allow BOOTSTRAPCFLAGS="-D_IBMR2" */
290 #endif
291 #endif /* _IBMR2 */
292 #ifdef aix
293 "-Daix", /* AIX instead of AOS */
294 #ifndef ibm
295 #define ibm /* allow BOOTSTRAPCFLAGS="-Daix" */
296 #endif
297 #endif /* aix */
298 #ifdef ibm
299 "-Dibm", /* IBM PS/2 and RT under both AOS and AIX */
300 #endif
301 #ifdef luna
302 "-Dluna", /* OMRON luna 68K and 88K */
303 #ifdef luna1
304 "-Dluna1",
305 #endif
306 #ifdef luna88k /* need not on UniOS-Mach Vers. 1.13 */
307 "-traditional", /* for some older version */
308 #endif /* instead of "-DXCOMM=\\#" */
309 #ifdef uniosb
310 "-Duniosb",
311 #endif
312 #ifdef uniosu
313 "-Duniosu",
314 #endif
315 #endif /* luna */
316 #ifdef _CRAY /* Cray */
317 "-Ucray",
318 #endif
319 #ifdef Mips
320 "-DMips", /* Define and use Mips for Mips Co. OS/mach. */
321 # if defined(SYSTYPE_BSD) || defined(BSD) || defined(BSD43)
322 "-DBSD43", /* Mips RISCOS supports two environments */
323 # else
324 "-DSYSV", /* System V environment is the default */
325 # endif
326 #endif /* Mips */
327 #ifdef MOTOROLA
328 "-DMOTOROLA", /* Motorola Delta Systems */
329 # ifdef SYSV
330 "-DSYSV",
331 # endif
332 # ifdef SVR4
333 "-DSVR4",
334 # endif
335 #endif /* MOTOROLA */
336 #ifdef i386
337 "-Di386",
338 # ifdef SVR4
339 "-DSVR4",
340 # endif
341 # ifdef SYSV
342 "-DSYSV",
343 # ifdef ISC
344 "-DISC",
345 # ifdef ISC40
346 "-DISC40", /* ISC 4.0 */
347 # else
348 # ifdef ISC202
349 "-DISC202", /* ISC 2.0.2 */
350 # else
351 # ifdef ISC30
352 "-DISC30", /* ISC 3.0 */
353 # else
354 "-DISC22", /* ISC 2.2.1 */
355 # endif
356 # endif
357 # endif
358 # endif
359 # ifdef SCO
360 "-DSCO",
361 # ifdef SCO324
362 "-DSCO324",
363 # endif
364 # endif
365 # endif
366 # ifdef ESIX
367 "-DESIX",
368 # endif
369 # ifdef ATT
370 "-DATT",
371 # endif
372 # ifdef DELL
373 "-DDELL",
374 # endif
375 #endif
376 #ifdef SYSV386 /* System V/386 folks, obsolete */
377 "-Di386",
378 # ifdef SVR4
379 "-DSVR4",
380 # endif
381 # ifdef ISC
382 "-DISC",
383 # ifdef ISC40
384 "-DISC40", /* ISC 4.0 */
385 # else
386 # ifdef ISC202
387 "-DISC202", /* ISC 2.0.2 */
388 # else
389 # ifdef ISC30
390 "-DISC30", /* ISC 3.0 */
391 # else
392 "-DISC22", /* ISC 2.2.1 */
393 # endif
394 # endif
395 # endif
396 # endif
397 # ifdef SCO
398 "-DSCO",
399 # ifdef SCO324
400 "-DSCO324",
401 # endif
402 # endif
403 # ifdef ESIX
404 "-DESIX",
405 # endif
406 # ifdef ATT
407 "-DATT",
408 # endif
409 # ifdef DELL
410 "-DDELL",
411 # endif
412 #endif
413 #ifdef __osf__
414 "-D__osf__",
415 # ifdef __mips__
416 "-D__mips__",
417 # endif
418 # ifdef __alpha
419 "-D__alpha",
420 # endif
421 # ifdef __i386__
422 "-D__i386__",
423 # endif
424 # ifdef __GNUC__
425 "-traditional",
426 # endif
427 #endif
428 #ifdef Oki
429 "-DOki",
430 #endif
431 #ifdef sun
432 #ifdef SVR4
433 "-DSVR4",
434 #endif
435 #endif
436 #ifdef WIN32
437 "-DWIN32",
438 "-nologo",
439 "-batch",
440 "-D__STDC__",
441 #endif
442 #ifdef NCR
443 "-DNCR", /* NCR */
444 #endif
445 #ifdef linux
446 "-traditional",
447 "-Dlinux",
448 #endif
449 #ifdef __uxp__
450 "-D__uxp__",
451 #endif
452 #ifdef __sxg__
453 "-D__sxg__",
454 #endif
455 #ifdef nec_ews_svr2
456 "-Dnec_ews_svr2",
457 #endif
458 #ifdef AMOEBA
459 "-DAMOEBA",
460 # ifdef CROSS_COMPILE
461 "-DCROSS_COMPILE",
462 # ifdef CROSS_i80386
463 "-Di80386",
464 # endif
465 # ifdef CROSS_sparc
466 "-Dsparc",
467 # endif
468 # ifdef CROSS_mc68000
469 "-Dmc68000",
470 # endif
471 # else
472 # ifdef i80386
473 "-Di80386",
474 # endif
475 # ifdef sparc
476 "-Dsparc",
477 # endif
478 # ifdef mc68000
479 "-Dmc68000",
480 # endif
481 # endif
482 #endif
483 #ifdef __minix_vmd
484 "-Dminix",
485 #endif
487 #if defined(__EMX__)
488 "-traditional",
489 "-Demxos2",
490 #endif
493 #else /* else MAKEDEPEND */
495 * Step 6: predefs
496 * If your compiler and/or preprocessor define any specific symbols, add
497 * them to the following table. The definition of struct symtab is
498 * in util/makedepend/def.h.
501 /* FIXME: strange list of obsolete systems */
502 struct pair predefs[] = {
503 #ifdef apollo
504 {"apollo", "1", NULL},
505 #endif
506 #ifdef ibm032
507 {"ibm032", "1", NULL},
508 #endif
509 #ifdef ibm
510 {"ibm", "1", NULL},
511 #endif
512 #ifdef aix
513 {"aix", "1", NULL},
514 #endif
515 #ifdef sun
516 {"sun", "1", NULL},
517 #endif
518 #ifdef sun2
519 {"sun2", "1", NULL},
520 #endif
521 #ifdef sun3
522 {"sun3", "1", NULL},
523 #endif
524 #ifdef sun4
525 {"sun4", "1", NULL},
526 #endif
527 #ifdef sparc
528 {"sparc", "1", NULL},
529 #endif
530 #ifdef __sparc__
531 {"__sparc__", "1", NULL},
532 #endif
533 #ifdef vax
534 {"vax", "1", NULL},
535 #endif
536 #ifdef VMS
537 {"VMS", "1", NULL},
538 #endif
539 #ifdef cray
540 {"cray", "1", NULL},
541 #endif
542 #ifdef CRAY
543 {"CRAY", "1", NULL},
544 #endif
545 #ifdef _CRAY
546 {"_CRAY", "1", NULL},
547 #endif
548 #ifdef att
549 {"att", "1", NULL},
550 #endif
551 #ifdef mips
552 {"mips", "1", NULL},
553 #endif
554 #ifdef __mips__
555 {"__mips__", "1", NULL},
556 #endif
557 #ifdef stellar
558 {"stellar", "1", NULL},
559 #endif
560 #ifdef mc68000
561 {"mc68000", "1", NULL},
562 #endif
563 #ifdef mc68020
564 {"mc68020", "1", NULL},
565 #endif
566 #ifdef __GNUC__
567 {"__GNUC__", "1", NULL},
568 #endif
569 #if __STDC__
570 {"__STDC__", "1", NULL},
571 #endif
572 #ifdef __HIGHC__
573 {"__HIGHC__", "1", NULL},
574 #endif
575 #ifdef CMU
576 {"CMU", "1", NULL},
577 #endif
578 #ifdef luna
579 {"luna", "1", NULL},
580 #ifdef luna1
581 {"luna1", "1", NULL},
582 #endif
583 #ifdef luna2
584 {"luna2", "1", NULL},
585 #endif
586 #ifdef luna88k
587 {"luna88k", "1", NULL},
588 #endif
589 #ifdef uniosb
590 {"uniosb", "1", NULL},
591 #endif
592 #ifdef uniosu
593 {"uniosu", "1", NULL},
594 #endif
595 #endif
596 #ifdef ieeep754
597 {"ieeep754", "1", NULL},
598 #endif
599 #ifdef is68k
600 {"is68k", "1", NULL},
601 #endif
602 #ifdef m68k
603 {"m68k", "1", NULL},
604 #endif
605 #ifdef m88k
606 {"m88k", "1", NULL},
607 #endif
608 #ifdef __m88k__
609 {"__m88k__", "1", NULL},
610 #endif
611 #ifdef bsd43
612 {"bsd43", "1", NULL},
613 #endif
614 #ifdef hcx
615 {"hcx", "1", NULL},
616 #endif
617 #ifdef sony
618 {"sony", "1", NULL},
619 #ifdef SYSTYPE_SYSV
620 {"SYSTYPE_SYSV", "1", NULL},
621 #endif
622 #ifdef _SYSTYPE_SYSV
623 {"_SYSTYPE_SYSV", "1", NULL},
624 #endif
625 #endif
626 #ifdef __OSF__
627 {"__OSF__", "1", NULL},
628 #endif
629 #ifdef __osf__
630 {"__osf__", "1", NULL},
631 #endif
632 #ifdef __alpha
633 {"__alpha", "1", NULL},
634 #endif
635 #ifdef __DECC
636 {"__DECC", "1", NULL},
637 #endif
638 #ifdef __decc
639 {"__decc", "1", NULL},
640 #endif
641 #ifdef __uxp__
642 {"__uxp__", "1", NULL},
643 #endif
644 #ifdef __sxg__
645 {"__sxg__", "1", NULL},
646 #endif
647 #ifdef __bsdi__
648 {"__bsdi__", "1", NULL},
649 #endif
650 #ifdef nec_ews_svr2
651 {"nec_ews_svr2", "1", NULL},
652 #endif
653 #ifdef nec_ews_svr4
654 {"nec_ews_svr4", "1", NULL},
655 #endif
656 #ifdef _nec_ews_svr4
657 {"_nec_ews_svr4", "1", NULL},
658 #endif
659 #ifdef _nec_up
660 {"_nec_up", "1", NULL},
661 #endif
662 #ifdef SX
663 {"SX", "1", NULL},
664 #endif
665 #ifdef nec
666 {"nec", "1", NULL},
667 #endif
668 #ifdef _nec_ft
669 {"_nec_ft", "1", NULL},
670 #endif
671 #ifdef PC_UX
672 {"PC_UX", "1", NULL},
673 #endif
674 #ifdef sgi
675 {"sgi", "1", NULL},
676 #endif
677 #ifdef __sgi
678 {"__sgi", "1", NULL},
679 #endif
680 #ifdef __FreeBSD__
681 {"__FreeBSD__", "1", NULL},
682 #endif
683 #ifdef __NetBSD__
684 {"__NetBSD__", "1", NULL},
685 #endif
686 #ifdef __OpenBSD__
687 {"__OpenBSD__", "1", NULL},
688 #endif
689 #ifdef __DragonFly__
690 {"__DragonFly__", "1", NULL},
691 #endif
692 #ifdef __EMX__
693 {"__EMX__", "1", NULL},
694 #endif
695 /* add any additional symbols before this line */
696 {NULL, NULL, NULL}
699 #endif /* MAKEDEPEND */
700 #endif /* CCIMAKE */
702 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */