home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / lib / x11 / config / amiga.cf next >
Encoding:
Text File  |  1996-10-17  |  5.0 KB  |  182 lines

  1. XCOMM platform:  $XConsortium: Amiga.cf,v 1.5 95/04/07 19:42:55 kaleb Exp $
  2.  
  3. #define OSName        Amiga
  4. #define    OSVendor    /**/
  5. XCOMM operating system:  OSName
  6. #define OSMajorVersion    2
  7. #define OSMinorVersion    0
  8.  
  9. #define HasPutenv       YES
  10. #define HasBSD44Sockets YES
  11.  
  12. /* Must use cp everywhere instead of ln -s, unless we can arrange to only
  13.    use symbolic links in the build tree and not the binary install tree.
  14.    The current ADE packaging system, which uses lha archives, can't
  15.    handle symbolic links. */
  16. #define LnCmd        cp
  17.  
  18. #define CppCmd          /ade/bin/cpp -traditional
  19. #define YaccCmd        bison -y
  20. #define LexCmd        flex -l
  21. #define LexLib        -lfl
  22. #define PreProcessCmd   /ade/bin/cpp -traditional
  23. #undef  InstallCmd
  24. #define InstallCmd    /ade/bin/install
  25. #undef    TblCmd
  26. #define    TblCmd    /ade/bin/gtbl
  27. #undef    EqnCmd
  28. #define    EqnCmd        /ade/bin/eqn -Tascii
  29. #undef    NeqnCmd
  30. #define    NeqnCmd    /ade/bin/geqn -Tascii
  31.           COL = /ade/bin/col
  32.          NEQN = /ade/bin/geqn
  33.         NROFF = /ade/bin/nroff
  34.  
  35. /*
  36.  * Compiler Features
  37.  */
  38. #undef HasGcc
  39. #define HasGcc            YES
  40. #define HasGcc2            YES
  41. #ifndef HasGcc2ForCplusplus
  42. #define HasGcc2ForCplusplus    YES
  43. #endif
  44. #define GccUsesGas        YES
  45. #define UseGas            YES
  46. #define GnuCpp            YES
  47.  
  48. #ifndef AsmDefines
  49. # define AsmDefines    -DUSE_GAS
  50. #endif
  51.  
  52. #if GccUsesGas
  53. # define GccGasOption -DGCCUSESGAS
  54. #else
  55. # define GccGasOption /**/
  56. #endif
  57.  
  58. #define CcCmd gcc
  59. #if UseInstalled
  60. #define DefaultCCOptions    /**/
  61. #else
  62. #define DefaultCCOptions    -ansi -Dasm=__asm
  63. #endif
  64.  
  65. #define OptimizedCDebugFlags    -O2 -Wa,-S -m68020
  66. #define ServerOSDefines    /**/
  67. #define ServerExtraDefines GccGasOption
  68.  
  69. #define StandardDefines    -D__amigaos__  -DCSRG_BASED
  70. #define XawI18nDefines    -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
  71.  
  72. #define TroffCmd        groff -Tps
  73. #define SetTtyGroup     YES
  74. #define DBMLibrary    /**/
  75. #define HasNdbm         YES
  76. #define HasWChar32      YES
  77.  
  78. #define HasLibCrypt    YES
  79.  
  80. #define AvoidNullMakeCommand YES
  81.  
  82. XCOMM Man pages need to be formatted when installed, so override the default
  83. XCOMM imake rules.
  84.  
  85. #define ManSuffix    1
  86. #define FileManSuffix    5
  87. #define ManSourcePath    $(MANPATH)/cat
  88.  
  89. #define LinkRule(program,options,objects,libraries)    prelink libraries    @@\
  90.     $(CCLINK) -Tshared.x -o program options objects libraries $(EXTRA_LOAD_FLAGS)    @@\
  91.     postlink program                        @@\
  92.     strip program                            @@\
  93.     @$(RM) shared.x xlibs.c xlibs.o
  94.  
  95. #define InstallManPageLong(file,destdir,dest)                           @@\
  96. all:: file.0                                @@\
  97.                                     @@\
  98. file.0:: file.man                            @@\
  99.     @if [ -f file.man ]; \                        @@\
  100.     then \                                @@\
  101.     cat file.man | $(NEQN) | $(TBL) | $(NROFF) -man | $(COL) >/tmp/$$$$.man; \    @@\
  102.     cp /tmp/$$$$.man file.0; \                    @@\
  103.     $(RM) /tmp/$$$$.man; \                        @@\
  104.     fi                                 @@\
  105.                                     @@\
  106. file.man::                                @@\
  107.                                     @@\
  108. install.man::                                                           @@\
  109.     MakeDir($(DESTDIR)destdir)                    @@\
  110.     -@if [ -f file.0 ]; \                        @@\
  111.     then \                                @@\
  112.     $(INSTALL) -c $(INSTMANFLAGS) file.0 $(DESTDIR)destdir/dest.0; \@@\
  113.     fi
  114.  
  115. #define InstallMultipleManSuffix(list,dest,suff)                        @@\
  116. install.man::                                 @@\
  117.     MakeDir($(DESTDIR)dest)                        @@\
  118.     case '${MFLAGS}' in *[i]*) set +e;; esac; \            @@\
  119.     for i in list; do \                                             @@\
  120.       (set -x; \                            @@\
  121.       cat $$i.suff | $(NEQN) | $(TBL) | $(NROFF) -man | $(COL) >/tmp/$$$$.suff; \    @@\
  122.       $(INSTALL) -c $(INSTMANFLAGS) /tmp/$$$$.suff $(DESTDIR)dest/$$i.0; \    @@\
  123.       $(RM) /tmp/$$$$.suff); \                        @@\
  124.     done
  125.  
  126. #define InstallMultipleMan(list,dest)                                   @@\
  127.     InstallMultipleManSuffix(list,dest,man)
  128.  
  129. #define InstallManPageAliases(file,destdir,aliases)                     @@\
  130. install.man::                                 @@\
  131.     @case '${MFLAGS}' in *[i]*) set +e;; esac; \                    @@\
  132.     for i in aliases; do \                                          @@\
  133.         (set -x; \                        @@\
  134.         $(RM) $(DESTDIR)destdir/$$i.0;\                  @@\
  135.         $(LN) destdir/file.0 $(DESTDIR)destdir/$$i.0;\  @@\
  136.         ); \                            @@\
  137.     done
  138.  
  139. #define InstallSharedLibrary(libname,rev,dest)                @@\
  140. install:: Concat(lib,libname.a)                        @@\
  141.     MakeDir($(DESTDIR)dest)                        @@\
  142.     $(INSTALL) -c $(INSTLIBFLAGS) Concat(lib,libname.a) $(DESTDIR)dest @@\
  143.  
  144. #define SharedLibraryDef  /**/
  145. #define SharedCodeDef     /**/
  146. #define NetBSDArchitecture
  147.  
  148. #ifndef HasSharedLibraries
  149. #define HasSharedLibraries YES
  150. #endif
  151. #ifndef PositionIndependentCFlags
  152. #define PositionIndependentCFlags -resident -malways-restore-a4 -Derrno=\(\*ixemul_errno\)
  153. #endif
  154. #ifndef SharedLibraryTarget
  155. #define SharedLibraryTarget(libname,rev,solist,down,up)            @@\
  156. AllTarget(Concat(lib,libname.a))                    @@\
  157.                                     @@\
  158. Concat(lib,libname.a):  solist                        @@\
  159.     RemoveFile($@)                            @@\
  160.     MakeLibrary($@,solist)                        @@\
  161.     RanLibrary($@)                            @@\
  162.     a2ixlibrary                            @@\
  163.     LinkBuildLibrary($@)                        @@\
  164.                                     @@\
  165. clean::                                    @@\
  166.     $(RM) -rf Concat(lib,libname.a) amigaobj
  167.  
  168. #endif /* SharedLibraryTarget */
  169. #ifndef SharedLibraryDataTarget
  170. #define SharedLibraryDataTarget(libname,rev,solist)
  171. #endif
  172. #ifndef InstallSharedLibraryData
  173. #define InstallSharedLibraryData(libname,rev,shlib)
  174. #endif
  175.  
  176. #ifndef XamigaServer
  177. #define XamigaServer    YES
  178. #endif
  179. #ifndef UseRgbTxt
  180. #define UseRgbTxt    YES
  181. #endif
  182.