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