nto.cf 4.14 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
/* $XFree86: xc/config/cf/nto.cf,v 1.3 2000/07/07 20:06:56 tsi Exp $ */
/* Get X to build using the gcc toolchain, self hosted RTP x86 */
/* Let us try to separate the x86 stuff out of here as well... */ 

/* don't want to conflict with QSSL's Xphoton in /usr/X11R6 */
#define ProjectRoot		/opt/X11R6


#ifndef OSName
#define OSName 			QNX6/Neutrino
#endif

#ifndef OSVendor
#define OSVendor		QNX Corp.
#endif
#ifndef OSMajorVersion
#define OSMajorVersion		6
#endif
#ifndef OSMinorVersion
#define OSMinorVersion		1
#endif

#if defined(i386Architecture)
#define BuildServer 		YES
#else
#define BuildServer		NO
#endif

#define DoLoadableServer	YES

#define BourneShell		/bin/sh
#define OSDefines		-DNO_REGEX -DSTRINGS_ALIGNED
#define XawI18nDefines		-DUSE_XWCHAR_STRING -DUSE_XMBTOWC
#define StripInstalledPrograms	NO
#define BuildLBX		YES 
#define ForceNormalLib		YES

#define SourceDefines		-D_POSIX_SOURCE -D_QNX_SOURCE
#define CrossCompiling		NO
#define DoRanlibCmd 		YES
#define GccUsesGas		YES
#define MkdirHierCmd		mkdir -p

#ifdef UseInstalled
#define InstallCmd		install
#else
#define InstallCmd		$(SHELL) $(CONFIGSRC)/util/install.sh
#endif
#define DefaultCCOptions	
#define LibraryCCOptions
#define ServerCCOptions		
#define LocalLibraries
#define CLibrary
#define PosixLibraries
#define ConnectionFlags 	-DTCPCONN 

#define StandardCppDefines	-traditional StandardDefines
#define PreProcessCmd		CppCmd

#ifndef UseDeprecatedKeyboardDriver
#define UseDeprecatedKeyboardDriver YES
#endif

#define HasShm			NO    /* For now as well */
#define HasSockets		YES
#define HasPutenv		YES
#define HasCbrt			NO
#define HasShadowPasswd		YES
#define HasSnprintf		YES
#define HasBSD44Sockets		YES

#define BuildHtmlManPages	NO /* We don't want HTML manpages */

#define AvoidNullMakeCommand    YES
#define CompressAllFonts        YES
#define Malloc0ReturnsNull      YES
#define NeedConstPrototypes     YES
#define NeedFunctionPrototypes  YES
#define NeedNestedPrototypes    YES
#define NeedVarargsPrototypes   YES
#define OptimizedCDebugFlags	-O2
#define DefaultCDebugFlags	-O2

#ifndef NeedWidePrototypes
#define NeedWidePrototypes      NO
#endif

#define YaccCmd			bison -y
#define LexCmd			flex -l
#define LexLib			-lfl
#define TermcapLibrary		-lncurses
#ifndef UseStaticTermcapLib
#define UseStaticTermcapLib     NO
#endif

/* Here, we put in the #defines which are CPU-specific */
/* Note that the full paths to the tools will go away when self-hosted */

#ifdef i386Architecture
#define BootstrapCFlags		-D__QNXNTO__ -Di386
#define OSDefines		-DNO_REGEX -DSTRINGS_ALIGNED 
#define NTODefines		-D__i386__ -D__ELF__ -D__QNXNTO__ -D_i386
#define CcCmd			gcc
#define CplusplusCmd		g++ -fhonor-std -fno-builtin
#define ArCmd			ar cq
#define LdCmd			ld
#define AsCmd			as
#define RanlibCmd		ranlib
#define CppCmd			/usr/bin/cpp
/* do this until NTO's cpp can support -undef in the future */
#define RawCppCmd CppCmd -Uunix -Ui386
#define AsmDefines		-DUSE_GAS -D__ELF__ -D__QNXNTO__
#define ExtraLibraries		-lsocket
#endif

/* MIPS architecture */
#ifdef mipsArchitecture
#define BootstrapCFlags		-D__QNXNTO__ -DMIPS
#define OSDefines		-DNO_REGEX -DSTRINGS_ALIGNED
#define NTODefines		-D__MIPS__ -D__ELF__ -D__QNXNTO__
#define CcCmd			/usr/gcc/ntomips/bin/gcc -bntomips -EL
#define ArCmd			/usr/gcc/bin/ar cq
#define LdCmd			/usr/gcc/bin/ld
#define AsCmd			/usr/gcc/ntomips/bin/as
#define RanlibCmd		/usr/gcc/bin/ranlib
#define AsmDefines		-DUSE_GAS -D__ELF__ -D__QNXNTO__
#define ExtraLibraries		-lsocket 
#endif

/* Power PC support */
#ifdef PPCArchitecture
#define BootstrapCFlags		-D__QNXNTO__ -DPPC
#define OSDefines		-DNO_REGEX -DSTRINGS_ALIGNED
#define NTODefines		-D__PPC__ -D__ELF__ -D__QNXNTO__
#define CcCmd			/usr/gcc/ntoppc/bin/gcc -bntoppc
#define ArCmd			/usr/gcc/bin/ar cq
#define LdCmd			/usr/gcc/bin/ld
#define AsCmd			/usr/gcc/ntoppc/bin/as
#define RanlibCmd		/usr/gcc/bin/ranlib
#define AsmDefines		-DUSE_GAS -D__ELF__ -D__QNXNTO__
#define ExtraLibraries		-lsocket
#endif


#define StandardDefines OSDefines SourceDefines NTODefines
#define ServerOSDefines -DDDXTIME XFree86ServerOSDefines 
#define ServerExtraDefines XFree86ServerDefines
#define ExtraFilesToClean       *.err *.map 

#include <nto.rules>
#include <xorg.cf>