ncr.cf 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. XCOMM platform: $XConsortium: ncr.cf /main/28 1996/09/28 16:11:31 rws $
  2. #ifndef OSName
  3. #define OSName Unix System V Release 4/MP-RAS
  4. #endif
  5. #ifndef OSVendor
  6. #define OSVendor NCR
  7. #endif
  8. XCOMM operating system: OSName
  9. #define BootstrapCFlags -DNCR
  10. #define HasStreams YES
  11. #define XawI18nDefines -DUSE_XWCHAR_STRING
  12. /* Build Flags */
  13. #define StandardDefines -DSVR4 -DNCR -Di386
  14. #define DefaultCCOptions -Xa -Hnocopyr -W0,-asm
  15. #define DefaultCDebugFlags -O3
  16. #define AllocateLocalDefines -DINCLUDE_ALLOCA_H
  17. #define ServerExtraDefines -DNO_SECONDARY AllocateLocalDefines XFree86ServerDefines
  18. #define ServerOSDefines -DDDXTIME XFree86ServerOSDefines
  19. #define ToolkitStringsABIOptions -intelabi
  20. XCOMM This has not been tested, don't turn it on yet.
  21. XCOMM #define ExtensionOSDefines -DXTESTEXT1
  22. #define ExtraLoadFlags -lc -L/usr/ucblib -lucb -lm -lgen -lcmd
  23. /* Setup proper ownership of installed files */
  24. #define StripInstalledPrograms YES
  25. #define InstPgmFlags -s -m 0711 -o bin -g bin
  26. #define InstBinFlags -m 0755 -o bin -g bin
  27. #define InstUidFlags -m 4711 -o root -g bin
  28. #define InstLibFlags -m 0644 -o bin -g bin
  29. #define InstIncFlags -m 0444 -o bin -g bin
  30. #define InstManFlags -m 0444 -o bin -g bin
  31. #define InstDatFlags -m 0444 -o bin -g bin
  32. /* Various Configuration settings */
  33. #define DefaultUserPath /bin:/sbin:/usr/bin:/usr/sbin:$(BINDIR):/usr/ucb
  34. #define DefaultSystemPath /etc:/bin:/usr/bin:/sbin:/usr/sbin:$(BINDIR):/usr/ucb
  35. #define ExtraFilesToClean *.z
  36. /* Create man pages properly */
  37. #define BookFormatManPages YES
  38. #define ManDirectoryRoot /usr/catman/X115
  39. #define ManSuffix 1X
  40. #define LibManSuffix 3X
  41. #define FileManSuffix 4X
  42. #define ManSourcePath $(MANPATH)/g
  43. #define XmanSearchPath /usr/catman
  44. #define TblCmd /usr/ucb/tbl
  45. #define EqnCmd /usr/ucb/eqn
  46. #define ColCmd /usr/bin/col
  47. #define NeqnCmd /usr/ucb/neqn
  48. #define NroffCmd /usr/ucb/nroff -Tlp
  49. /*
  50. * Man pages need to be formatted when installed, so override the default
  51. * imake rules.
  52. */
  53. #define InstallManPageLong(file,destdir,dest) @@\
  54. all:: file.z @@\
  55. @@\
  56. file.z:: file.man @@\
  57. @if [ -f file.man ]; \ @@\
  58. then \ @@\
  59. cat file.man | $(NEQN) | $(TBL) | $(NROFF) $(MANMACROS) | $(COL) >/tmp/$$$$.man; \ @@\
  60. $(RM) /tmp/$$$$.man.z; \ @@\
  61. pack -f /tmp/$$$$.man; \ @@\
  62. cp /tmp/$$$$.man.z file.z; \ @@\
  63. $(RM) /tmp/$$$$.man.z; \ @@\
  64. fi @@\
  65. @@\
  66. file.man:: @@\
  67. @@\
  68. install.man:: @@\
  69. MakeDir($(DESTDIR)destdir) @@\
  70. -@if [ -f file.z ]; \ @@\
  71. then \ @@\
  72. $(INSTALL) -c $(INSTMANFLAGS) file.z $(DESTDIR)destdir/dest.z; \@@\
  73. fi
  74. #define InstallMultipleManSuffix(list,dest,suff) @@\
  75. install.man:: @@\
  76. MakeDir($(DESTDIR)dest) @@\
  77. MakeFlagsToShellFlags(i,set +e); \ @@\
  78. for i in list; do \ @@\
  79. (set -x; \ @@\
  80. cat $$i.suff | $(NEQN) | $(TBL) | $(NROFF) $(MANMACROS) | $(COL) >/tmp/$$$$.suff; \ @@\
  81. pack -f /tmp/$$$$.suff; \ @@\
  82. $(INSTALL) -c $(INSTMANFLAGS) /tmp/$$$$.suff.z $(DESTDIR)dest/$$i.z; \ @@\
  83. $(RM) /tmp/$$$$.suff.z); \ @@\
  84. done
  85. #define InstallMultipleMan(list,dest) @@\
  86. InstallMultipleManSuffix(list,dest,man)
  87. #define InstallManPageAliases(file,destdir,aliases) @@\
  88. install.man:: @@\
  89. @MakeFlagsToShellFlags(i,set +e); \ @@\
  90. for i in aliases; do \ @@\
  91. (set -x; \ @@\
  92. $(RM) $(DESTDIR)destdir/$$i.z;\ @@\
  93. (cd $(DESTDIR)destdir; $(LN) file.z $$i.z);\ @@\
  94. ); \ @@\
  95. done
  96. #include <svr4.cf>