]> git.sesse.net Git - rdpsrv/blob - Xserver/config/cf/x386.cf
Import X server from vnc-3.3.7.
[rdpsrv] / Xserver / config / cf / x386.cf
1 XCOMM platform:  $XConsortium: x386.cf /main/15 1996/09/28 16:14:00 rws $
2
3 /*****************************************************************************
4  *                        Site-specfic parameters                            *
5  *****************************************************************************/
6
7 /*
8  * there are some switches to set appropriate...
9  */
10
11 #define HasGcc                  YES     /* doesn't work for SVR4 */
12 #define HasNdbm                 YES     /* correct for GNU dbm & SVR4 */
13 #define StripInstalledPrograms  YES
14 #define X386Server              YES
15 #define ExtensionOSDefines      -DXTESTEXT1
16 #define MotifBC                 YES
17
18 /*****************************************************************************
19  *                        Do not change anything below                       *
20  *****************************************************************************/
21
22 /* You must manually compute BootstrapCFlags for initial build */
23 #define BootstrapCFlags         OSDefines OSRelease
24
25 #define StandardDefines         OSDefines OSRelease
26 #define LdCombineFlags          -r
27
28 #if defined(i386SVR3Architecture)
29
30 #define SystemV                 YES
31
32 #define NeedBerklib             YES
33 #define HasSymLinks             NO
34
35 /*
36  * V/386 Release 3.2
37  */
38 #ifdef ISC
39 /* INTERACTIVE UNIX Version 2.2.1 */
40 # define OSVendor               "Interactive System Corp."
41 # define OSDefines              -DISC
42 # define LocalLibraries         -lpt
43 # define PosixLibraries         -lcposix
44 # define SocketLibraries        -linet
45 #endif
46
47 #ifdef ESIX
48 #define OSVendor                "ESIX System Inc."
49 #define OSDefines               -DESIX
50 #define LocalLibraries          -lpt
51 #define SocketLibraries         -lnet -lnsl_s
52 #define PosixLibraries          /**/
53 #endif
54
55 #ifdef ATT
56 #define OSDefines               -DATT
57 #define OSVendor                "AT&T"
58 #define LocalLibraries          -lpt
59 #define SocketLibraries         -lnet -lnsl_s    /* just a guess */
60 #define PosixLibraries          /**/
61 #endif
62
63 #define OSName                  Unix System V/386 Release 3.2
64 #define OSMajorVersion          3
65 #define OSMinorVersion          2
66 #define OSRelease               -DSYSV -DSYSV386
67
68 #if HasGcc
69 # define CcCmd gcc -DNO_ASM -fstrength-reduce -fpcc-struct-return -fwritable-strings
70 # define LibraryCcCmd gcc -DNO_ASM -fstrength-reduce -fpcc-struct-return
71 # define ShlibDefines -D__GNUC__ -DGNULIB=/usr/local/lib/gcc-gnulib
72 #else
73 # define ShlibDefines /**/
74 #endif
75
76 #if HasSockets
77 /* # define ConnectionFlags -DLOCALCONN -DTCPCONN */
78 # define ConnectionFlags -DTCPCONN
79 # define ExtraLibraries SocketLibraries LocalLibraries -lc_s PosixLibraries
80 #else
81 # define ConnectionFlags -DLOCALCONN
82 # define ExtraLibraries $(LIBDIR)/etc/inetemul.o LocalLibraries -lc_s PosixLibraries
83 #endif
84
85 /* #include <sv3Lib.rules> */  /* not working yet */
86
87 /*
88  * Man pages need to be formatted when installed, so override the default
89  * imake rules.
90  */
91 #define InstallManPageLong(file,destdir,dest)                           @@\
92 install.man:: file.man                                                  @@\
93         $(RM) destdir/dest.$(MANSUFFIX)                                 @@\
94         cat file.man | $(NEQN) | $(NROFF) $(MANMACROS) >/tmp/file.man   @@\
95         $(INSTALL) -c $(INSTMANFLAGS) /tmp/file.man destdir/dest.$(MANSUFFIX) @@\
96         $(RM) /tmp/file.man
97
98 #define InstallMultipleMan(list,dest)                                   @@\
99 install.man:: list                                                      @@\
100         @MakeFlagsToShellFlags(i,set +e); \                             @@\
101         for i in list; do \                                             @@\
102                 (set -x; \                                              @@\
103                 $(RM) dest/$$i; \                                       @@\
104                 cat $$i | $(NEQN) | $(NROFF) $(MANMACROS) >/tmp/$$i; \  @@\
105                 $(INSTALL) -c $(INSTMANFLAGS) /tmp/$$i dest/$$i; \      @@\
106                 $(RM) /tmp/$$i); \                                      @@\
107         done
108
109 /* If you have trouble with make bombing out in Xlib, try uncommenting this. */
110 /* You will not get dependencies as a result, but better than nothing. */
111 /* #define DependTarget3(srcs1,srcs2,srcs3) */
112
113 #endif /* i386SVR3Architecture */
114
115
116 /*
117  * V/386 Release 4.0
118  */
119 #if defined(i386SVR4Architecture)
120
121 #define SystemV4                YES
122
123 /* this is now just for Dell's one */
124
125 #ifdef DELL
126 #define OSDefines               -DDELL
127 #define OSVendor                "DELL Computer Corp."
128 #endif
129
130 #define OSName                  Unix System V/386 Release 4.0
131 #define OSMajorVersion          4
132 #define OSMinorVersion          0
133 #define OSRelease               -DSVR4 -DSYSV386
134
135 #if HasGcc
136 # define CcCmd          gcc -ansi -fstrength-reduce -fpcc-struct-return -Di386
137 # if HasSharedLibraries
138 #  define LibraryCcCmd  cc -Xa -Di386 -Dasm=__asm
139 # endif
140 #else
141 # define CcCmd          cc -Xa -Di386 -Dasm=__asm
142 #endif
143
144 #include <sv4Lib.rules>
145
146 #endif /* i386SVR4Architecture */
147
148
149 XCOMM operating system:  OSName OSVendor