nto.cf revision 1c80d5b0
1/* $XFree86: xc/config/cf/nto.cf,v 1.3 2000/07/07 20:06:56 tsi Exp $ */
2/* Get X to build using the gcc toolchain, self hosted RTP x86 */
3/* Let us try to separate the x86 stuff out of here as well... */
4
5/* don't want to conflict with QSSL's Xphoton in /usr/X11R6 */
6#define ProjectRoot		/opt/X11R6
7
8
9#ifndef OSName
10#define OSName 			QNX6/Neutrino
11#endif
12
13#ifndef OSVendor
14#define OSVendor		QNX Corp.
15#endif
16#ifndef OSMajorVersion
17#define OSMajorVersion		6
18#endif
19#ifndef OSMinorVersion
20#define OSMinorVersion		1
21#endif
22
23#if defined(i386Architecture)
24#define BuildServer 		YES
25#else
26#define BuildServer		NO
27#endif
28
29#define DoLoadableServer	YES
30
31#define BourneShell		/bin/sh
32#define OSDefines		-DNO_REGEX -DSTRINGS_ALIGNED
33#define XawI18nDefines		-DUSE_XWCHAR_STRING -DUSE_XMBTOWC
34#define StripInstalledPrograms	NO
35#define BuildLBX		YES
36#define ForceNormalLib		YES
37
38#define SourceDefines		-D_POSIX_SOURCE -D_QNX_SOURCE
39#define CrossCompiling		NO
40#define DoRanlibCmd 		YES
41#define GccUsesGas		YES
42#define MkdirHierCmd		mkdir -p
43
44#ifdef UseInstalled
45#define InstallCmd		install
46#else
47#define InstallCmd		$(SHELL) $(CONFIGSRC)/util/install.sh
48#endif
49#define DefaultCCOptions
50#define LibraryCCOptions
51#define ServerCCOptions
52#define LocalLibraries
53#define CLibrary
54#define PosixLibraries
55#define ConnectionFlags 	-DTCPCONN
56
57#define StandardCppDefines	-traditional StandardDefines
58#define PreProcessCmd		CppCmd
59
60#ifndef UseDeprecatedKeyboardDriver
61#define UseDeprecatedKeyboardDriver YES
62#endif
63
64#define HasShm			NO    /* For now as well */
65#define HasSockets		YES
66#define HasPutenv		YES
67#define HasCbrt			NO
68#define HasShadowPasswd		YES
69#define HasSnprintf		YES
70#define HasBSD44Sockets		YES
71
72#define BuildHtmlManPages	NO /* We don't want HTML manpages */
73
74#define AvoidNullMakeCommand    YES
75#define CompressAllFonts        YES
76#define Malloc0ReturnsNull      YES
77#define NeedConstPrototypes     YES
78#define NeedFunctionPrototypes  YES
79#define NeedNestedPrototypes    YES
80#define NeedVarargsPrototypes   YES
81#define OptimizedCDebugFlags	-O2
82#define DefaultCDebugFlags	-O2
83
84#ifndef NeedWidePrototypes
85#define NeedWidePrototypes      NO
86#endif
87
88#define YaccCmd			bison -y
89#define LexCmd			flex -l
90#define LexLib			-lfl
91#define TermcapLibrary		-lncurses
92#ifndef UseStaticTermcapLib
93#define UseStaticTermcapLib     NO
94#endif
95
96/* Here, we put in the #defines which are CPU-specific */
97/* Note that the full paths to the tools will go away when self-hosted */
98
99#ifdef i386Architecture
100#define BootstrapCFlags		-D__QNXNTO__ -Di386
101#define OSDefines		-DNO_REGEX -DSTRINGS_ALIGNED
102#define NTODefines		-D__i386__ -D__ELF__ -D__QNXNTO__ -D_i386
103#define CcCmd			gcc
104#define CplusplusCmd		g++ -fhonor-std -fno-builtin
105#define ArCmd			ar cq
106#define LdCmd			ld
107#define AsCmd			as
108#define RanlibCmd		ranlib
109#define CppCmd			/usr/bin/cpp
110/* do this until NTO's cpp can support -undef in the future */
111#define RawCppCmd CppCmd -Uunix -Ui386
112#define AsmDefines		-DUSE_GAS -D__ELF__ -D__QNXNTO__
113#define ExtraLibraries		-lsocket
114#endif
115
116/* MIPS architecture */
117#ifdef mipsArchitecture
118#define BootstrapCFlags		-D__QNXNTO__ -DMIPS
119#define OSDefines		-DNO_REGEX -DSTRINGS_ALIGNED
120#define NTODefines		-D__MIPS__ -D__ELF__ -D__QNXNTO__
121#define CcCmd			/usr/gcc/ntomips/bin/gcc -bntomips -EL
122#define ArCmd			/usr/gcc/bin/ar cq
123#define LdCmd			/usr/gcc/bin/ld
124#define AsCmd			/usr/gcc/ntomips/bin/as
125#define RanlibCmd		/usr/gcc/bin/ranlib
126#define AsmDefines		-DUSE_GAS -D__ELF__ -D__QNXNTO__
127#define ExtraLibraries		-lsocket
128#endif
129
130/* Power PC support */
131#ifdef PPCArchitecture
132#define BootstrapCFlags		-D__QNXNTO__ -DPPC
133#define OSDefines		-DNO_REGEX -DSTRINGS_ALIGNED
134#define NTODefines		-D__PPC__ -D__ELF__ -D__QNXNTO__
135#define CcCmd			/usr/gcc/ntoppc/bin/gcc -bntoppc
136#define ArCmd			/usr/gcc/bin/ar cq
137#define LdCmd			/usr/gcc/bin/ld
138#define AsCmd			/usr/gcc/ntoppc/bin/as
139#define RanlibCmd		/usr/gcc/bin/ranlib
140#define AsmDefines		-DUSE_GAS -D__ELF__ -D__QNXNTO__
141#define ExtraLibraries		-lsocket
142#endif
143
144
145#define StandardDefines OSDefines SourceDefines NTODefines
146#define ServerOSDefines -DDDXTIME XFree86ServerOSDefines
147#define ServerExtraDefines XFree86ServerDefines
148#define ExtraFilesToClean       *.err *.map
149
150#include <nto.rules>
151#include <xorg.cf>
152
153