"Fossies" - the Fresh Open Source Software Archive

Member "ivtools-ivtools-2.0.4/config/InterViews/arch.def" (9 Oct 2020, 10738 Bytes) of package /linux/misc/ivtools-ivtools-2.0.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Modula2 source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 /*
    2  * Define a few common macros.  Caution: cpp will expand a, b, or c
    3  * before concatenating them ONLY IF they are parameters of a lexically
    4  * enclosing macro definition.
    5  */
    6 #define XCOMM #
    7 #define YES 1
    8 #define NO 0
    9 #define NullParameter /**/
   10 
   11 #if __STDC__
   12 #define Concat(a,b)a##b
   13 #else
   14 #define Concat(a,b)a/**/b
   15 #endif
   16 
   17 #if __STDC__
   18 #define Concat3(a,b,c)a##b##c
   19 #else
   20 #define Concat3(a,b,c)a/**/b/**/c
   21 #endif
   22 
   23 /*
   24  * Define the OS platform (UltrixArchitecture, etc).
   25  * Define the CPU architecture (MIPSEL, SUN4, etc.).
   26  * Define the name of the platform-specific .cf file.
   27  */
   28 #ifdef ultrix
   29 #undef ultrix
   30 #define UltrixArchitecture
   31 #ifdef vax
   32 #undef VAX
   33 #undef vax
   34 #define VaxArchitecture
   35 #define ArchitectureName VAX
   36 #define architectureName vax
   37 #define SiteDefCpu <site.def.VAX>
   38 #endif
   39 #ifdef mips
   40 #undef mips
   41 #undef MIPSEL
   42 #undef mipsel
   43 #define MipsArchitecture
   44 #define ArchitectureName MIPSEL
   45 #define architectureName mipsel
   46 #define SiteDefCpu <site.def.MIPSEL>
   47 #endif
   48 #define MacroIncludeFile <InterViews/iv-ultrix.cf>
   49 #define MacroFile iv-ultrix.cf
   50 #endif /* ultrix */
   51 
   52 #if defined(vax) && !defined(UltrixArchitecture)
   53 #undef VAX
   54 #undef vax
   55 #define VaxArchitecture
   56 #define ArchitectureName VAX
   57 #define architectureName vax
   58 #define SiteDefCpu <site.def.VAX>
   59 #define MacroIncludeFile <InterViews/iv-bsd.cf>
   60 #define MacroFile iv-bsd.cf
   61 #endif /* BSD vax */
   62 
   63 #ifdef sun
   64 #undef sun
   65 #define SunArchitecture
   66 #ifdef mc68020
   67 #undef SUN3
   68 #undef sun3
   69 #define ArchitectureName SUN3
   70 #define architectureName sun3
   71 #define SiteDefCpu <site.def.SUN3>
   72 #endif
   73 #ifdef sparc
   74 #undef SUN4
   75 #undef sun4
   76 #define ArchitectureName SUN4
   77 #define architectureName sun4
   78 #define SiteDefCpu <site.def.SUN4>
   79 #endif
   80 #ifdef i386
   81 #undef SUNi386
   82 #undef sunI386
   83 #define ArchitectureName SUNi386
   84 #define architectureName sunI386
   85 #define SiteDefCpu <site.def.SUNi386>
   86 #endif
   87 #ifndef ArchitectureName
   88 #undef SUN
   89 #undef sun
   90 #define ArchitectureName SUN
   91 #define architectureName sun
   92 #define SiteDefCpu <site.def.SUN>
   93 #endif
   94 #define MacroIncludeFile <InterViews/iv-sun.cf>
   95 #define MacroFile iv-sun.cf
   96 #endif /* sun */
   97 
   98 #ifdef hpux
   99 #undef hpux
  100 #define HPArchitecture
  101 #ifdef hp9000s300
  102 #undef HP300
  103 #undef hp300
  104 #define ArchitectureName HP300
  105 #define architectureName hp300
  106 #define SiteDefCpu <site.def.HP300>
  107 #else
  108 #ifdef hp9000s200
  109 #undef HP200
  110 #undef hp200
  111 #define ArchitectureName HP200
  112 #define architectureName hp200
  113 #define SiteDefCpu <site.def.HP200>
  114 #endif
  115 #endif
  116 #ifdef hp9000s500
  117 #undef HP500
  118 #undef hp500
  119 #define ArchitectureName HP500
  120 #define architectureName hp500
  121 #define SiteDefCpu <site.def.HP500>
  122 #endif
  123 #ifdef hp9000s800
  124 #undef HP800
  125 #undef hp800
  126 #define ArchitectureName HP800
  127 #define architectureName hp800
  128 #define SiteDefCpu <site.def.HP800>
  129 #endif
  130 #ifndef ArchitectureName
  131 #undef HP
  132 #undef hp
  133 #define ArchitectureName HP
  134 #define architectureName hp
  135 #define SiteDefCpu <site.def.HP>
  136 #endif
  137 #define MacroIncludeFile <InterViews/iv-hp.cf>
  138 #define MacroFile iv-hp.cf
  139 #endif /* hpux */
  140 
  141 #ifdef att
  142 #undef ATT
  143 #undef att
  144 #define ATTArchitecture
  145 #define ArchitectureName ATT
  146 #define architectureName att
  147 #define SiteDefCpu <site.def.ATT>
  148 #define MacroIncludeFile <InterViews/iv-att.cf>
  149 #define MacroFile iv-att.cf
  150 #endif /* att */
  151 
  152 #ifdef apollo
  153 #undef APOLLO
  154 #undef apollo
  155 #define ApolloArchitecture
  156 #define ArchitectureName APOLLO
  157 #define architectureName apollo
  158 #define SiteDefCpu <site.def.APOLLO>
  159 #define MacroIncludeFile <InterViews/iv-apollo.cf>
  160 #define MacroFile iv-apollo.cf
  161 #endif /* apollo */
  162 
  163 #ifdef sony
  164 #undef sony
  165 #undef sony_news
  166 #define SonyArchitecture
  167 #ifdef mc68020
  168 #undef mc68020
  169 #undef mc68030
  170 #undef SONY68
  171 #undef sony68
  172 #define Mc68020Architecture
  173 #define ArchitectureName SONY68
  174 #define architectureName sony68
  175 #define SiteDefCpu <site.def.SONY68>
  176 #endif
  177 #ifdef mips
  178 #undef mips
  179 #undef SONYmips
  180 #undef sonyMIPS
  181 #define MipsArchitecture
  182 #define ArchitectureName SONYmips
  183 #define architectureName sonyMIPS
  184 #define SiteDefCpu <site.def.SONYmips>
  185 #endif
  186 #ifndef ArchitectureName
  187 #undef SONY
  188 #undef sony
  189 #define ArchitectureName SONY
  190 #define architectureName sony
  191 #define SiteDefCpu <site.def.SONY>
  192 #endif
  193 #if !defined(bsd43) || defined(SYSTYPE_SYSV)
  194 #define SonySysvArchitecture
  195 #else
  196 #define SonyBsdArchitecture
  197 #endif
  198 #define MacroIncludeFile <InterViews/iv-sony.cf>
  199 #define MacroFile iv-sony.cf
  200 #endif /* sony */
  201 
  202 #ifdef M4310
  203 #undef M4310
  204 #undef PEGASUS
  205 #undef pegasus
  206 #define PegasusArchitecture
  207 #define ArchitectureName PEGASUS
  208 #define architectureName pegasus
  209 #define SiteDefCpu <site.def.PEGASUS>
  210 #define MacroIncludeFile <InterViews/iv-pegasus.cf>
  211 #define MacroFile iv-pegasus.cf
  212 #endif /* M4310 */
  213 
  214 #ifdef M4330
  215 #undef M4330
  216 #undef m4330
  217 #define M4330Architecture
  218 #define ArchitectureName M4330
  219 #define architectureName m4330
  220 #define SiteDefCpu <site.def.M4330>
  221 #define MacroIncludeFile <InterViews/iv-m4330.cf>
  222 #define MacroFile iv-m4330.cf
  223 #endif /* M4330 */
  224 
  225 #ifdef macII
  226 /* A/UX cpp has no unique symbol:  build imake with BOOTSTRAPCFLAGS=-DmacII */
  227 #undef MACII
  228 #undef macII
  229 #define MacIIArchitecture
  230 #define ArchitectureName MACII
  231 #define architectureName macII
  232 #define SiteDefCpu <site.def.MACII>
  233 #define MacroIncludeFile <InterViews/iv-macII.cf>
  234 #define MacroFile iv-macII.cf
  235 #endif /* macII */
  236 
  237 #ifdef CRAY
  238 #undef CRAY
  239 #undef cray
  240 #define CrayArchitecture
  241 #define ArchitectureName CRAY
  242 #define architectureName cray
  243 #define SiteDefCpu <site.def.CRAY>
  244 #define MacroIncludeFile <InterViews/iv-cray.cf>
  245 #define MacroFile iv-cray.cf
  246 #endif /* CRAY */
  247 
  248 #ifdef sgi
  249 #undef SGI
  250 #undef sgi
  251 #undef mips
  252 #define SGIArchitecture
  253 #define MipsArchitecture
  254 #define ArchitectureName SGI
  255 #define architectureName sgi
  256 #define SiteDefCpu <site.def.SGI>
  257 #define MacroIncludeFile <InterViews/iv-sgi.cf>
  258 #define MacroFile iv-sgi.cf
  259 #endif /* sgi */
  260 
  261 #ifdef stellar
  262 #undef stellar
  263 #undef STELLAR
  264 #define StellarArchitecture
  265 #define ArchitectureName STELLAR
  266 #define architectureName stellar
  267 #define SiteDefCpu <site.def.STELLAR>
  268 #define MacroIncludeFile <InterViews/iv-stellar.cf>
  269 #define MacroFile iv-stellar.cf
  270 #endif /* stellar */
  271 
  272 #if defined(ibm) || defined(_IBMR2) || defined(ibm032) || defined(aix)
  273 #undef ibm
  274 #define IBMArchitecture
  275 #ifdef i386
  276 #undef i386
  277 #undef IBMi386
  278 #undef ibmI386
  279 #define PS2Architecture
  280 #define ArchitectureName IBMi386
  281 #define architectureName ibmI386
  282 #define SiteDefCpu <site.def.IBMi386>
  283 #endif
  284 #ifdef ibm032
  285 #undef ibm032
  286 #undef IBMrt
  287 #undef ibmRT
  288 #define RtArchitecture
  289 #define ArchitectureName IBMrt
  290 #define architectureName ibmRT
  291 #define SiteDefCpu <site.def.IBMrt>
  292 #endif
  293 #ifdef aix
  294 #undef aix
  295 #undef IBMaix
  296 #undef ibmAIX
  297 #define AIXArchitecture
  298 #define ArchitectureName IBMaix
  299 #define architectureName ibmAIX
  300 #define SiteDefCpu <site.def.IBMaix>
  301 #endif
  302 #ifdef _IBMR2
  303 #undef _IBMR2
  304 #undef IBMr2
  305 #undef ibmR2
  306 #define RsArchitecture
  307 #define ArchitectureName IBMr2
  308 #define architectureName ibmR2
  309 #define SiteDefCpu <site.def.IBMr2>
  310 #endif
  311 #ifndef ArchitectureName
  312 #undef IBM
  313 #undef ibm
  314 #define ArchitectureName IBM
  315 #define architectureName ibm
  316 #define SiteDefCpu <site.def.IBM>
  317 #endif
  318 #define MacroIncludeFile <InterViews/iv-ibm.cf>
  319 #define MacroFile iv-ibm.cf
  320 #endif /* ibm */
  321 
  322 #ifdef linux
  323 #undef linux
  324 #define LinuxArchitecture
  325 #define ArchitectureName LINUX
  326 #define architectureName linux
  327 #define SiteDefCpu <site.def.LINUX>
  328 #define MacroIncludeFile <InterViews/iv-linux.cf>
  329 #define MacroFile iv-linux.cf
  330 #endif
  331 
  332 #ifdef luna
  333 #undef luna
  334 #ifdef mc68000
  335 #undef mc68000
  336 #undef LUNA68
  337 #undef luna68
  338 #define Mc68000Architecture
  339 #define ArchitectureName LUNA68
  340 #define architectureName luna68
  341 #define SiteDefCpu <site.def.LUNA68>
  342 #else
  343 #undef mc88000
  344 #undef LUNA88
  345 #undef luna88
  346 #define Mc88000Architecture
  347 #define ArchitectureName LUNA88
  348 #define architectureName luna88
  349 #define SiteDefCpu <site.def.LUNA88>
  350 #endif
  351 #define MacroIncludeFile <InterViews/iv-luna.cf>
  352 #define MacroFile iv-luna.cf
  353 #endif /* luna */
  354 
  355 #ifdef Mips
  356 #undef Mips
  357 #if defined(SYSTYPE_BSD43) || defined(BSD) || defined(BSD43)
  358 #define MipsBsdArchitecture
  359 #else
  360 #define MipsSysvArchitecture
  361 #endif
  362 #undef MIPSEB
  363 #undef mipseb
  364 #define ArchitectureName MIPSEB
  365 #define architectureName mipseb
  366 #define SiteDefCpu <site.def.MIPSEB>
  367 #define MacroIncludeFile <InterViews/iv-Mips.cf>
  368 #define MacroFile iv-Mips.cf
  369 #endif /* Mips */
  370 
  371 #ifdef MOTOROLA
  372 #undef MOTOROLA 
  373 #undef motorola 
  374 #ifdef SYSV
  375 #define MotoR3Architecture
  376 #endif
  377 #ifdef SVR4
  378 #define MotoR4Architecture
  379 #endif
  380 #define ArchitectureName MOTOROLA
  381 #define architectureName motorola
  382 #define SiteDefCpu <site.def.MOTOROLA>
  383 #define MacroIncludeFile <InterViews/iv-moto.cf>
  384 #define MacroFile iv-moto.cf
  385 #endif /* MOTOROLA */
  386 
  387 #ifdef SYSV386
  388 #ifdef SVR4
  389 #define i386SVR4Architecture
  390 #else
  391 #define i386SVR3Architecture
  392 #endif
  393 #undef X386
  394 #undef x386
  395 #define ArchitectureName X386
  396 #define architectureName x386
  397 #define SiteDefCpu <site.def.X386>
  398 #define MacroIncludeFile <InterViews/iv-x386.cf>
  399 #define MacroFile iv-x386.cf
  400 #endif /* SYSV386 */
  401 
  402 #ifdef DGUX
  403 #undef DGUX
  404 #undef dgux
  405 #define DguxArchitecture
  406 #define ArchitectureName DGUX
  407 #define architectureName dgux
  408 #define SiteDefCpu <site.def.DGUX>
  409 #define MacroIncludeFile <InterViews/iv-DGUX.cf>
  410 #define MacroFile iv-DGUX.cf
  411 #endif /* DGUX */
  412 
  413 #ifdef __convex__
  414 #undef CONVEX
  415 #undef convex
  416 #define ConvexArchitecture
  417 #define ArchitectureName CONVEX
  418 #define architectureName convex
  419 #define SiteDefCpu <site.def.CONVEX>
  420 #define MacroIncludeFile <InterViews/iv-convex.cf>
  421 #define MacroFile iv-convex.cf
  422 #endif /* __convex__ */
  423 
  424 #ifdef stratus
  425 #undef stratus
  426 #define StratusArchitecture
  427 #define ArchitectureName stratus
  428 #define architectureName stratus
  429 #define MacroIncludeFile <InterViews/iv-stratus.cf>
  430 #define MacroFile InterViews/iv-stratus.cf
  431 #endif
  432 
  433 #if defined(__alpha) && !defined(__linux__)
  434 #undef ALPHA
  435 #undef alpha
  436 #define AlphaArchitecture
  437 #define ArchitectureName ALPHA
  438 #define architectureName alpha
  439 #define SiteDefCpu <site.def.ALPHA>
  440 #define MacroIncludeFile <InterViews/iv-alpha.cf>
  441 #define MacroFile InterViews/iv-alpha.cf
  442 #endif /* __alpha */
  443 
  444 #ifndef ArchitectureName
  445 XCOMM WARNING: Imakefile not configured; guessing at definitions!!!
  446 XCOMM This might mean that BOOTSTRAPCFLAGS was not set when building imake.
  447 #undef UNKNOWN
  448 #undef unknown
  449 #define ArchitectureName UNKNOWN
  450 #define architectureName unknown
  451 #define SiteDefCpu <site.def.UNKNOWN>
  452 #define MacroIncludeFile <InterViews/iv-generic.cf>
  453 #define MacroFile iv-generic.cf
  454 #endif /* UNKNOWN */
  455 
  456 XCOMM Read IMAKE_TEMPLATE to understand how this Makefile was generated.
  457 XCOMM Edit <arch.def> to add support for a new platform.
  458 XCOMM Edit MacroIncludeFile to change platform-specific parameters.
  459 XCOMM Edit <local.def> to change site-specific parameters.
  460 XCOMM Edit INCLUDE_IMAKEFILE to change actions that make should perform.
  461 
  462 XCOMM architecture:  ArchitectureName