home *** CD-ROM | disk | FTP | other *** search
- XCOMM platform: $XConsortium: Amiga.cf,v 1.5 95/04/07 19:42:55 kaleb Exp $
-
- #define OSName Amiga
- #define OSVendor /**/
- XCOMM operating system: OSName
- #define OSMajorVersion 2
- #define OSMinorVersion 0
-
- #define HasPutenv YES
- #define HasBSD44Sockets YES
-
- /* Must use cp everywhere instead of ln -s, unless we can arrange to only
- use symbolic links in the build tree and not the binary install tree.
- The current ADE packaging system, which uses lha archives, can't
- handle symbolic links. */
- #define LnCmd cp
-
- #define CppCmd /ade/bin/cpp -traditional
- #define YaccCmd bison -y
- #define LexCmd flex -l
- #define LexLib -lfl
- #define PreProcessCmd /ade/bin/cpp -traditional
- #undef InstallCmd
- #define InstallCmd /ade/bin/install
- #undef TblCmd
- #define TblCmd /ade/bin/gtbl
- #undef EqnCmd
- #define EqnCmd /ade/bin/eqn -Tascii
- #undef NeqnCmd
- #define NeqnCmd /ade/bin/geqn -Tascii
- COL = /ade/bin/col
- NEQN = /ade/bin/geqn
- NROFF = /ade/bin/nroff
-
- /*
- * Compiler Features
- */
- #undef HasGcc
- #define HasGcc YES
- #define HasGcc2 YES
- #ifndef HasGcc2ForCplusplus
- #define HasGcc2ForCplusplus YES
- #endif
- #define GccUsesGas YES
- #define UseGas YES
- #define GnuCpp YES
-
- #ifndef AsmDefines
- # define AsmDefines -DUSE_GAS
- #endif
-
- #if GccUsesGas
- # define GccGasOption -DGCCUSESGAS
- #else
- # define GccGasOption /**/
- #endif
-
- #define CcCmd gcc
- #if UseInstalled
- #define DefaultCCOptions /**/
- #else
- #define DefaultCCOptions -ansi -Dasm=__asm
- #endif
-
- #define OptimizedCDebugFlags -O2 -Wa,-S -m68020
- #define ServerOSDefines /**/
- #define ServerExtraDefines GccGasOption
-
- #define StandardDefines -D__amigaos__ -DCSRG_BASED
- #define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
-
- #define TroffCmd groff -Tps
- #define SetTtyGroup YES
- #define DBMLibrary /**/
- #define HasNdbm YES
- #define HasWChar32 YES
-
- #define HasLibCrypt YES
-
- #define AvoidNullMakeCommand YES
-
- XCOMM Man pages need to be formatted when installed, so override the default
- XCOMM imake rules.
-
- #define ManSuffix 1
- #define FileManSuffix 5
- #define ManSourcePath $(MANPATH)/cat
-
- #define LinkRule(program,options,objects,libraries) prelink libraries @@\
- $(CCLINK) -Tshared.x -o program options objects libraries $(EXTRA_LOAD_FLAGS) @@\
- postlink program @@\
- strip program @@\
- @$(RM) shared.x xlibs.c xlibs.o
-
- #define InstallManPageLong(file,destdir,dest) @@\
- all:: file.0 @@\
- @@\
- file.0:: file.man @@\
- @if [ -f file.man ]; \ @@\
- then \ @@\
- cat file.man | $(NEQN) | $(TBL) | $(NROFF) -man | $(COL) >/tmp/$$$$.man; \ @@\
- cp /tmp/$$$$.man file.0; \ @@\
- $(RM) /tmp/$$$$.man; \ @@\
- fi @@\
- @@\
- file.man:: @@\
- @@\
- install.man:: @@\
- MakeDir($(DESTDIR)destdir) @@\
- -@if [ -f file.0 ]; \ @@\
- then \ @@\
- $(INSTALL) -c $(INSTMANFLAGS) file.0 $(DESTDIR)destdir/dest.0; \@@\
- fi
-
- #define InstallMultipleManSuffix(list,dest,suff) @@\
- install.man:: @@\
- MakeDir($(DESTDIR)dest) @@\
- case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
- for i in list; do \ @@\
- (set -x; \ @@\
- cat $$i.suff | $(NEQN) | $(TBL) | $(NROFF) -man | $(COL) >/tmp/$$$$.suff; \ @@\
- $(INSTALL) -c $(INSTMANFLAGS) /tmp/$$$$.suff $(DESTDIR)dest/$$i.0; \ @@\
- $(RM) /tmp/$$$$.suff); \ @@\
- done
-
- #define InstallMultipleMan(list,dest) @@\
- InstallMultipleManSuffix(list,dest,man)
-
- #define InstallManPageAliases(file,destdir,aliases) @@\
- install.man:: @@\
- @case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
- for i in aliases; do \ @@\
- (set -x; \ @@\
- $(RM) $(DESTDIR)destdir/$$i.0;\ @@\
- $(LN) destdir/file.0 $(DESTDIR)destdir/$$i.0;\ @@\
- ); \ @@\
- done
-
- #define InstallSharedLibrary(libname,rev,dest) @@\
- install:: Concat(lib,libname.a) @@\
- MakeDir($(DESTDIR)dest) @@\
- $(INSTALL) -c $(INSTLIBFLAGS) Concat(lib,libname.a) $(DESTDIR)dest @@\
-
- #define SharedLibraryDef /**/
- #define SharedCodeDef /**/
- #define NetBSDArchitecture
-
- #ifndef HasSharedLibraries
- #define HasSharedLibraries YES
- #endif
- #ifndef PositionIndependentCFlags
- #define PositionIndependentCFlags -resident -malways-restore-a4 -Derrno=\(\*ixemul_errno\)
- #endif
- #ifndef SharedLibraryTarget
- #define SharedLibraryTarget(libname,rev,solist,down,up) @@\
- AllTarget(Concat(lib,libname.a)) @@\
- @@\
- Concat(lib,libname.a): solist @@\
- RemoveFile($@) @@\
- MakeLibrary($@,solist) @@\
- RanLibrary($@) @@\
- a2ixlibrary @@\
- LinkBuildLibrary($@) @@\
- @@\
- clean:: @@\
- $(RM) -rf Concat(lib,libname.a) amigaobj
-
- #endif /* SharedLibraryTarget */
- #ifndef SharedLibraryDataTarget
- #define SharedLibraryDataTarget(libname,rev,solist)
- #endif
- #ifndef InstallSharedLibraryData
- #define InstallSharedLibraryData(libname,rev,shlib)
- #endif
-
- #ifndef XamigaServer
- #define XamigaServer YES
- #endif
- #ifndef UseRgbTxt
- #define UseRgbTxt YES
- #endif
-