Remove macII support
[oweals/cde.git] / cde / config / cf / Imake.cf
1 XCOMM $TOG: Imake.cf /main/30 1998/04/28 13:55:25 barstow $
2 /*
3  * To add support for another platform:
4  * 
5  *     1.  Identify a machine-specific cpp symbol.  If your preprocessor 
6  *         does not have any built in, you will need to add the symbol to the
7  *         cpp_argv table in config/imake/imakemdep.h and rebuild imake with
8  *         the BOOTSTRAPCFLAGS variable set.
9  *
10  *     2.  Add all machine-specific cpp symbols (either defined by you or by
11  *         the preprocessor or compiler) to the predefs table in 
12  *         config/imake/imakemdep.h.
13  *
14  *     3.  But a new #ifdef block below that defines MacroIncludeFile and
15  *         MacroFile for your new platform and then #undefs the machine-
16  *         specific preprocessor symbols (to avoid problems with file names).
17  *
18  *     4.  Create a .cf file with the name given by MacroFile.
19  */
20
21 #ifdef ultrix
22 # define MacroIncludeFile <ultrix.cf>
23 # define MacroFile ultrix.cf
24 # ifdef vax
25 #  undef vax
26 #  define VaxArchitecture
27 # endif
28 # ifdef mips
29 #  undef mips
30 #  define MipsArchitecture
31 # endif
32 # undef ultrix
33 # define UltrixArchitecture
34 #endif /* ultrix */
35
36 #if defined(vax) && !defined(UltrixArchitecture)
37 # define MacroIncludeFile <bsd.cf>
38 # define MacroFile bsd.cf
39 # undef vax
40 # define VaxArchitecture
41 #endif /* vax */
42
43 #ifdef __OpenBSD__
44 # undef __OpenBSD__
45 # undef __NetBSD__
46 # define BSDArchitecture
47 # define OpenBSDArchitecture
48 # define KOpenBSDArchitecture
49 # define MacroIncludeFile <OpenBSD.cf>
50 # define MacroFile OpenBSD.cf
51 # ifdef __i386__
52 #  define i386BsdArchitecture
53 #  define i386Architecture
54 #  undef i386
55 # endif
56 # if defined(__sparc__) || defined(sparc)
57 #  if !defined(__arch64__)
58 #   define SparcArchitecture
59 #  else
60 #   define Sparc64Architecture
61 #  endif
62 #  undef sparc
63 #  undef sparc64
64 # endif
65 # if defined(__mips__) || defined(mips)
66 #   define MipsArchitecture
67 #   ifdef __LP64__
68 #     define Mips64Architecture
69 #   endif
70 #   ifdef arc
71 #     define ArcArchitecture
72 #     undef arc
73 #   endif
74 #   ifdef sgi
75 #     define SGIArchitecture
76 #     undef sgi
77 #   endif
78 #   ifdef pmax
79 #     define PmaxArchitecture
80 #     undef pmax
81 #   endif
82 #   undef mips
83 #   undef __mips__
84 # endif
85 # if defined(__alpha__) || defined(alpha)
86 #   define AlphaArchitecture
87 #   undef __alpha__
88 #   undef alpha
89 # endif
90 # if defined(__amd64__) || defined(__x86_64__)
91 #   define AMD64Architecture
92 #   undef __amd64__
93 #   undef __x86_64__
94 #   undef amd64
95 # endif
96 # if defined(__arm__)
97 #   define Arm32Architecture
98 #   undef __arm__
99 #   if defined(zaurus)
100 #     undef zaurus
101 #     define ZaurusArchitecture
102 #   endif
103 # endif
104 # if defined(__mc68020__) || defined(mc68020)
105 #  define Mc68020Architecture
106 #  if defined(amiga)
107 #   define AmigaArchitecture
108 #   undef amiga
109 #  endif
110 #  if defined(hp300)
111 #   define Hp300Architecture
112 #   undef hp300
113 #  endif
114 #  if defined(mac68k)
115 #    define Mac68kArchitecture
116 #    undef mac68k
117 #  endif
118 #  if defined(mvme68k)
119 #   define Mvme68kArchitecture
120 #   undef mvme68k
121 #  endif
122 #  if defined(sun3) 
123 #   define Sun3Architecture
124 #   undef sun3
125 #  endif
126 #  undef mc68000
127 # endif
128 # if defined(__m88k__) || defined(m88k)
129 #  define Mc88000Architecture
130 #  undef m88k
131 # endif
132 # ifdef __powerpc__
133 #  define PpcArchitecture
134 #  undef __powerpc__
135 #  undef __macppc__
136 #  undef macppc
137 # endif
138 # ifdef __sh__
139 #  undef __sh__
140 #  define SuperHArchitecture
141 # endif
142 # ifdef __vax__
143 #  undef vax
144 #  undef __vax__
145 #  define VaxArchitecture
146 # endif
147 # ifdef __hppa__
148 #  ifndef HPArchitecture
149 #   define HPArchitecture
150 #  endif
151 #  undef __hppa__
152 # endif /* __hppa__ */
153 #endif /* OpenBSD */
154
155 /* Systems based on kernel of OpenBSD */
156 #if defined(__OpenBSD_kernel__)
157 #define KOpenBSDArchitecture
158 #endif
159
160 #ifdef __NetBSD__
161 # define MacroIncludeFile <NetBSD.cf>
162 # define MacroFile NetBSD.cf
163 # undef __NetBSD__
164 # define BSDArchitecture
165 # define NetBSDArchitecture
166 # ifdef __i386__
167 #  define i386BsdArchitecture
168 #  define i386Architecture
169 #  undef i386
170 # endif
171 # ifdef __amd64__
172 #  define AMD64BsdArchitecture
173 #  define AMD64Architecture
174 #  undef amd64
175 # endif
176 # if defined(__sparc__) || defined(sparc)
177 #  define SparcArchitecture
178 #  undef sparc
179 # endif
180 #endif /* NetBSD */
181
182 #ifdef __FreeBSD__
183 # define MacroIncludeFile <FreeBSD.cf>
184 # define MacroFile FreeBSD.cf
185 # undef __FreeBSD__
186 # define BSDArchitecture
187 # define FreeBSDArchitecture
188 # ifdef __i386__
189 #  define i386BsdArchitecture
190 #  define i386Architecture
191 #  undef i386
192 # endif
193 # ifdef __amd64__
194 #  define AMD64BsdArchitecture
195 #  define AMD64Architecture
196 #  undef amd64
197 # endif
198 #endif /* __FreeBSD__ */
199
200 #ifdef AMOEBA
201  /* Should be before the 'sun' entry because we may be cross-compiling */
202 # define MacroIncludeFile <Amoeba.cf>
203 # define MacroFile Amoeba.cf
204 # if defined(i80386) || defined(__i80386__)
205 #  undef i80386
206 #  define i386Architecture
207 # else
208 #  if defined(mc68000) || defined(__mc68000__)
209 #   undef mc68000
210 #   define Sun3Architecture
211 #   define SunArchitecture
212 #  else
213 #   if defined(sparc) || defined(__sparc__)
214 #    undef sparc
215 #    define SparcArchitecture
216 #    define SunArchitecture
217 #   endif
218 #  endif
219 #  undef sun
220 # endif
221 #endif /* AMOEBA */
222
223 #ifdef sun
224 # define MacroIncludeFile <sun.cf>
225 # define MacroFile sun.cf
226 # ifdef SVR4
227 #  undef SVR4
228 #  define SVR4Architecture
229 # endif
230 # ifdef sparc
231 #  undef sparc
232 # define SparcArchitecture
233 # endif
234 # ifdef __sparcv9
235 #  undef __sparcv9
236 # define SparcV9Architecture
237 # endif
238 # ifdef mc68000
239 #  undef mc68000
240 # define Sun3Architecture
241 # endif
242 # ifdef i386
243 #  undef i386
244 #  define i386Architecture
245 # endif
246 # if defined(__amd64__) || defined (__x86_64__)
247 #  undef __amd64__
248 #  undef __x86_64__
249 #  define AMD64Architecture
250 # endif
251 # undef sun
252 # define SunArchitecture
253 #endif /* sun */
254
255 #ifdef hpux
256 # define MacroIncludeFile <hp.cf>
257 # define MacroFile hp.cf
258 # undef hpux
259 # define HPArchitecture
260 #endif /* hpux */
261
262 #ifdef NCR
263 # define MacroIncludeFile <ncr.cf>
264 # define MacroFile ncr.cf
265 # undef NCR
266 # undef SVR4
267 # undef i386
268 # define SVR4Architecture
269 # define i386Architecture
270 # define NCRArchitecture
271 #endif /* NCR */
272
273 #ifdef apollo
274 # define MacroIncludeFile <apollo.cf>
275 # define MacroFile apollo.cf
276 # undef apollo
277 # define ApolloArchitecture
278 #endif /* apollo */
279
280 #ifdef sony
281 # define MacroIncludeFile <sony.cf>
282 # define MacroFile sony.cf
283 # undef sony
284 # undef sony_news
285 # define SonyArchitecture
286 # ifdef mc68020
287 #  undef mc68020
288 #  undef mc68030
289 #  define Mc68020Architecture
290 # endif
291 # ifdef mips
292 #  undef mips
293 #  define MipsArchitecture
294 # endif
295 # ifdef __svr4
296 #  define SVR4Architecture
297 # else
298 #  if !defined(bsd43) || defined(SYSTYPE_SYSV) || defined(_SYSTYPE_SYSV)
299 #   define SonySysvArchitecture
300 #  else
301 #   define SonyBsdArchitecture
302 #  endif
303 # endif
304 #endif /* sony */
305
306 #ifdef M4310
307 # define MacroIncludeFile <pegasus.cf>
308 # define MacroFile pegasus.cf
309 # undef M4310
310 # define PegasusArchitecture
311 #endif /* M4310 */
312
313 #ifdef M4330
314 # define MacroIncludeFile <m4330.cf>
315 # define MacroFile m4330.cf
316 # undef  M4330
317 # define M4330Architecture
318 #endif /* M4330 */
319
320 #ifdef _CRAY
321 # define MacroIncludeFile <cray.cf>
322 # define MacroFile cray.cf
323 # undef cray
324 # undef CRAY
325 # undef CRAY1
326 # undef CRAY2
327 # undef YMP
328 # define CrayArchitecture
329 #endif /* _CRAY */
330
331 #ifdef sgi
332 # define MacroIncludeFile <sgi.cf>
333 # define MacroFile sgi.cf
334 # undef sgi
335 # define SGIArchitecture
336 # undef mips
337 # define MipsArchitecture
338 # ifdef _SVR4
339 #  undef _SVR4
340 #  define SVR4Architecture
341 # endif
342 # ifdef _SYSTYPE_SVR4
343 #  undef _SYSTYPE_SVR4
344 #  define SVR4Architecture
345 # endif
346 #endif /* sgi */
347
348 #ifdef stellar
349 # define MacroIncludeFile <stellar.cf>
350 # define MacroFile stellar.cf
351 # undef stellar
352 # define StellarArchitecture
353 #endif /* stellar */
354
355 #if defined(ibm) || defined(_IBMR2) || defined(ibm032) || defined(aix)
356 # define MacroIncludeFile <ibm.cf>
357 # define MacroFile ibm.cf
358 # ifdef ibm
359 #  undef ibm
360 # endif
361 # define IBMArchitecture
362 # ifdef i386
363 #  undef i386
364 #  define PS2Architecture
365 # endif
366 # ifdef ibm032
367 #  undef ibm032
368 #  define RtArchitecture
369 # endif
370 # ifdef aix
371 #  undef aix
372 #  define AIXArchitecture
373 # endif
374 # ifdef _IBMR2
375 #  undef _IBMR2
376 #  define RsArchitecture
377 # endif
378 #endif /* ibm */
379
380 #ifdef luna
381 # undef luna
382 # define MacroIncludeFile <luna.cf>
383 # define MacroFile luna.cf
384 # define LunaArchitecture
385 # ifdef mc68000
386 #  undef mc68000
387 #  define Mc68000Architecture
388 # else
389 #  undef mc88000
390 #  define Mc88000Architecture
391 # endif
392 #endif /* luna */
393
394 #ifdef Mips
395 #  define MacroIncludeFile <Mips.cf>
396 #  define MacroFile Mips.cf
397 #  undef Mips
398 #  undef mips
399 #  if defined(SYSTYPE_BSD43) || defined(BSD) || defined(BSD43)
400 #    define MipsBsdArchitecture
401 #  else /* BSD */
402 #    define MipsSysvArchitecture
403 #  endif /* BSD */
404 #endif /* Mips */
405
406 #ifdef MOTOROLA
407 # define MacroIncludeFile <moto.cf>
408 # define MacroFile moto.cf
409 # undef MOTOROLA        
410 # ifdef SYSV
411 #  define MotoR3Architecture
412 # endif
413 # ifdef SVR4
414 #  define MotoR4Architecture
415 # endif
416 #endif /* MOTOROLA */
417
418 #ifdef SVR4
419 # ifdef i386
420 #  define i386Architecture
421 #  undef i386
422 # endif
423 # define SVR4Architecture
424 # define MacroIncludeFile <svr4.cf>
425 # define MacroFile svr4.cf
426 # undef SVR4
427 #endif /* SVR4 */
428
429 #ifdef SYSV
430 # ifdef i386
431 #  define MacroIncludeFile <x386.cf>
432 #  define MacroFile x386.cf
433 #  define i386SVR3Architecture
434 #  undef i386
435 # endif
436 #endif /* SYSV */
437
438 #ifdef SYSV386
439 # undef i386
440 # ifdef SVR4
441 #  define i386Architecture
442 #  define SVR4Architecture
443 #  define i386SVR4Architecture
444 #  define MacroIncludeFile <svr4.cf>
445 #  define MacroFile svr4.cf
446 #  undef SVR4
447 # else
448 #  define MacroIncludeFile <x386.cf>
449 #  define MacroFile x386.cf
450 #  define i386SVR3Architecture
451 # endif
452 #endif /* SYSV386 */
453
454 #ifdef DGUX
455 # define MacroIncludeFile <DGUX.cf>
456 # define MacroFile DGUX.cf
457 # undef DGUX
458 # define DguxArchitecture
459 #endif /* DGUX */
460
461 #ifdef __convex__
462 # define MacroIncludeFile <convex.cf>
463 # define MacroFile convex.cf
464 # ifdef convex
465 #  undef convex
466 # endif
467 # define ConvexArchitecture
468 #endif /* _convex_ */
469
470 #ifdef Oki
471 # define MacroIncludeFile <Oki.cf>
472 # define MacroFile Oki.cf
473 # undef Oki
474 # define i860SVR4Architecture
475 # define SVR4Architecture
476 # undef SVR4
477 #endif /* Oki */
478
479 #ifdef WIN32
480 # define MacroIncludeFile <Win32.cf>
481 # define MacroFile Win32.cf
482 # define Win32Architecture
483 #endif /* WIN32 */
484
485 #ifdef linux 
486 # define MacroIncludeFile <linux.cf>
487 # define MacroFile linux.cf
488 # undef linux
489 # define LinuxArchitecture
490 # ifdef i386
491 #  undef pentium
492 #  undef pentiumpro
493 #  define i386Architecture
494 #  undef i386
495 # endif
496 # ifdef __i386__
497 #  ifndef i386Architecture
498 #   define i386Architecture
499 #  endif
500 #  undef __i386__
501 # endif /* i386 */
502 # ifdef __alpha
503 #  define AlphaArchitecture
504 #  undef __alpha
505 # endif /* __alpha */
506 # ifdef powerpc
507 #  define PpcArchitecture
508 #  undef powerpc
509 # endif
510 # ifdef __powerpc__
511 #  ifndef PpcArchitecture
512 #   define PpcArchitecture
513 #  endif
514 #  undef __powerpc__
515 # endif
516 # if defined(__amd64__) || defined (__x86_64__)
517 #  undef __amd64__
518 #  undef __x86_64__
519 #  define AMD64Architecture
520 # endif
521 # if defined(amd64__) || defined (x86_64__)
522 #  undef amd64__
523 #  undef x86_64__
524 #  ifndef AMD64Architecture
525 #   define AMD64Architecture
526 #  endif
527 # endif
528 # if defined(__arm__)
529 # undef __arm__
530 # define ARMArchitecture
531 # endif
532 # if defined(__sparc__) || defined(sparc)
533 # define SparcArchitecture
534 # undef sparc
535 # endif
536 #endif /* linux */
537
538 #if defined(sequent) || defined(_SEQUENT_)
539 # define MacroIncludeFile <sequent.cf>
540 # define MacroFile sequent.cf
541 # ifdef sequent
542 #  undef sequent
543 #  define Dynix3Architecture
544 # endif
545 # ifdef _SEQUENT_
546 #  undef _SEQUENT_
547 #  define DynixPtxArchitecture
548 # endif
549 # define SequentArchitecture
550 #endif
551
552 #if defined(_nec_ews_svr4) || defined(nec_ews_svr4) || defined(nec_ews_svr2) || defined(SX) || defined(_nec_up) || defined(_nec_ft) || defined(PC_UX)
553 # ifdef nec
554 #  undef nec
555 # endif
556 # define MacroIncludeFile <nec.cf>
557 # define MacroFile nec.cf
558 # define NecArchitecture
559 #endif
560
561 #ifndef MacroIncludeFile
562 XCOMM WARNING:  Imake.cf not configured; guessing at definitions!!!
563 XCOMM This might mean that BOOTSTRAPCFLAGS was not set when building imake.
564 #define MacroIncludeFile <generic.cf>
565 #define MacroFile generic.cf
566 #endif