Git init
[framework/uifw/xorg/util/xutils-dev.git] / xorg-cf-files / x386.cf
1 XCOMM platform:  $Xorg: x386.cf,v 1.3 2000/08/17 19:41:48 cpqbld Exp $
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 mus 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 #ifndef UseDeprecatedKeyboardDriver
36 #define UseDeprecatedKeyboardDriver YES
37 #endif
38
39 /*
40  * V/386 Release 3.2
41  */
42 #ifdef ISC
43 /* INTERACTIVE UNIX Version 2.2.1 */
44 # define OSVendor               "Interactive System Corp."
45 # define OSDefines              -DISC
46 # define LocalLibraries         -lpt
47 # define PosixLibraries         -lcposix
48 # define SocketLibraries        -linet
49 #endif
50
51 #ifdef ESIX
52 #define OSVendor                "ESIX System Inc."
53 #define OSDefines               -DESIX
54 #define LocalLibraries          -lpt
55 #define SocketLibraries         -lnet -lnsl_s
56 #define PosixLibraries          /**/
57 #endif
58
59 #ifdef ATT
60 #define OSDefines               -DATT
61 #define OSVendor                "AT&T"
62 #define LocalLibraries          -lpt
63 #define SocketLibraries         -lnet -lnsl_s    /* just a guess */
64 #define PosixLibraries          /**/
65 #endif
66
67 #define OSName                  Unix System V/386 Release 3.2
68 #define OSMajorVersion          3
69 #define OSMinorVersion          2
70 #define OSRelease               -DSYSV -DSYSV386
71
72 #if HasGcc
73 # define CcCmd gcc -DNO_ASM -fstrength-reduce -fpcc-struct-return -fwritable-strings
74 # define LibraryCcCmd gcc -DNO_ASM -fstrength-reduce -fpcc-struct-return
75 # define ShlibDefines -D__GNUC__ -DGNULIB=/usr/local/lib/gcc-gnulib
76 #else
77 # define ShlibDefines /**/
78 #endif
79
80 #if HasSockets
81 /* # define ConnectionFlags -DLOCALCONN -DTCPCONN */
82 # define ConnectionFlags -DTCPCONN
83 # define ExtraLibraries SocketLibraries LocalLibraries -lc_s PosixLibraries
84 #else
85 # define ConnectionFlags -DLOCALCONN
86 # define ExtraLibraries $(LIBDIR)/etc/inetemul.o LocalLibraries -lc_s PosixLibraries
87 #endif
88
89 /* #include <sv3Lib.rules> */  /* not working yet */
90
91 /*
92  * Man pages need to be formatted when installed, so override the default
93  * imake rules.
94  */
95 #define InstallManPageLong(file,destdir,dest)                           @@\
96 install.man:: file.man                                                  @@\
97         $(RM) destdir/dest.$(MANSUFFIX)                                 @@\
98         cat file.man | $(NEQN) | $(NROFF) $(MANMACROS) >/tmp/file.man   @@\
99         $(INSTALL) -c $(INSTMANFLAGS) /tmp/file.man destdir/dest.$(MANSUFFIX) @@\
100         $(RM) /tmp/file.man
101
102 #define InstallMultipleMan(list,dest)                                   @@\
103 install.man:: list                                                      @@\
104         @MakeFlagsToShellFlags(i,set +e); \                             @@\
105         for i in list; do \                                             @@\
106                 (set -x; \                                              @@\
107                 $(RM) dest/$$i; \                                       @@\
108                 cat $$i | $(NEQN) | $(NROFF) $(MANMACROS) >/tmp/$$i; \  @@\
109                 $(INSTALL) -c $(INSTMANFLAGS) /tmp/$$i dest/$$i; \      @@\
110                 $(RM) /tmp/$$i); \                                      @@\
111         done
112
113 /* If you have trouble with make bombing out in Xlib, try uncommenting this. */
114 /* You will not get dependencies as a result, but better than nothing. */
115 /* #define DependTarget3(srcs1,srcs2,srcs3) */
116
117 #endif /* i386SVR3Architecture */
118
119
120 /*
121  * V/386 Release 4.0
122  */
123 #if defined(i386SVR4Architecture)
124
125 #define SystemV4                YES
126
127 /* this is now just for Dell's one */
128
129 #ifdef DELL
130 #define OSDefines               -DDELL
131 #define OSVendor                "DELL Computer Corp."
132 #endif
133
134 #define OSName                  Unix System V/386 Release 4.0
135 #define OSMajorVersion          4
136 #define OSMinorVersion          0
137 #define OSRelease               -DSVR4 -DSYSV386
138
139 #if HasGcc
140 # define CcCmd          gcc -ansi -fstrength-reduce -fpcc-struct-return -Di386
141 # if HasSharedLibraries
142 #  define LibraryCcCmd  cc -Xa -Di386 -Dasm=__asm
143 # endif
144 #else
145 # define CcCmd          cc -Xa -Di386 -Dasm=__asm
146 #endif
147
148 #include <sv4Lib.rules>
149
150 #endif /* i386SVR4Architecture */
151
152
153 XCOMM operating system:  OSName OSVendor