/config/InterViews/arch.def

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