aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/config/cf/x386.cf
blob: d7d4c803f8f4f7b112b5500fada5deab16c6bed7 (plain)
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
153
XCOMM platform:  $Xorg: x386.cf,v 1.3 2000/08/17 19:41:48 cpqbld Exp $

/*****************************************************************************
 *			  Site-specfic parameters                            *
 *****************************************************************************/

/*
 * there are some switches to set appropriate...
 */

#define HasGcc			YES	/* doesn't work for SVR4 */
#define HasNdbm			YES	/* correct for GNU dbm & SVR4 */
#define StripInstalledPrograms	YES
#define X386Server		YES
#define ExtensionOSDefines	-DXTESTEXT1
#define MotifBC	        	YES

/*****************************************************************************
 *                        Do not change anything below                       *
 *****************************************************************************/

/* You mus manually compute BootstrapCFlags for initial build */
#define BootstrapCFlags		OSDefines OSRelease

#define StandardDefines		OSDefines OSRelease
#define LdCombineFlags		-r

#if defined(i386SVR3Architecture)

#define SystemV			YES

#define NeedBerklib		YES
#define HasSymLinks		NO

#ifndef UseDeprecatedKeyboardDriver
#define UseDeprecatedKeyboardDriver YES
#endif

/*
 * V/386 Release 3.2
 */
#ifdef ISC
/* INTERACTIVE UNIX Version 2.2.1 */
# define OSVendor		"Interactive System Corp."
# define OSDefines		-DISC
# define LocalLibraries		-lpt
# define PosixLibraries		-lcposix
# define SocketLibraries        -linet
#endif

#ifdef ESIX
#define OSVendor		"ESIX System Inc."
#define OSDefines		-DESIX
#define LocalLibraries		-lpt
#define SocketLibraries		-lnet -lnsl_s
#define PosixLibraries		/**/
#endif

#ifdef ATT
#define OSDefines		-DATT
#define OSVendor		"AT&T"
#define LocalLibraries		-lpt
#define SocketLibraries		-lnet -lnsl_s    /* just a guess */
#define PosixLibraries		/**/
#endif

#define OSName			Unix System V/386 Release 3.2
#define OSMajorVersion		3
#define OSMinorVersion		2
#define OSRelease		-DSYSV -DSYSV386

#if HasGcc
# define CcCmd gcc -DNO_ASM -fstrength-reduce -fpcc-struct-return -fwritable-strings
# define LibraryCcCmd gcc -DNO_ASM -fstrength-reduce -fpcc-struct-return
# define ShlibDefines -D__GNUC__ -DGNULIB=/usr/local/lib/gcc-gnulib
#else
# define ShlibDefines /**/
#endif

#if HasSockets
/* # define ConnectionFlags -DLOCALCONN -DTCPCONN */
# define ConnectionFlags -DTCPCONN
# define ExtraLibraries SocketLibraries LocalLibraries -lc_s PosixLibraries
#else
# define ConnectionFlags -DLOCALCONN
# define ExtraLibraries $(LIBDIR)/etc/inetemul.o LocalLibraries -lc_s PosixLibraries
#endif

/* #include <sv3Lib.rules> */  /* not working yet */

/*
 * Man pages need to be formatted when installed, so override the default
 * imake rules.
 */
#define InstallManPageLong(file,destdir,dest)                           @@\
install.man:: file.man                                                  @@\
	$(RM) destdir/dest.$(MANSUFFIX)					@@\
	cat file.man | $(NEQN) | $(NROFF) $(MANMACROS) >/tmp/file.man	@@\
	$(INSTALL) -c $(INSTMANFLAGS) /tmp/file.man destdir/dest.$(MANSUFFIX) @@\
	$(RM) /tmp/file.man

#define InstallMultipleMan(list,dest)                                   @@\
install.man:: list                                                      @@\
	@MakeFlagsToShellFlags(i,set +e); \				@@\
	for i in list; do \                                             @@\
		(set -x; \						@@\
		$(RM) dest/$$i; \					@@\
		cat $$i | $(NEQN) | $(NROFF) $(MANMACROS) >/tmp/$$i; \	@@\
		$(INSTALL) -c $(INSTMANFLAGS) /tmp/$$i dest/$$i; \	@@\
		$(RM) /tmp/$$i); \					@@\
	done

/* If you have trouble with make bombing out in Xlib, try uncommenting this. */
/* You will not get dependencies as a result, but better than nothing. */
/* #define DependTarget3(srcs1,srcs2,srcs3) */

#endif /* i386SVR3Architecture */


/*
 * V/386 Release 4.0
 */
#if defined(i386SVR4Architecture)

#define SystemV4		YES

/* this is now just for Dell's one */

#ifdef DELL
#define OSDefines		-DDELL
#define OSVendor		"DELL Computer Corp."
#endif

#define OSName			Unix System V/386 Release 4.0
#define OSMajorVersion		4
#define OSMinorVersion		0
#define OSRelease		-DSVR4 -DSYSV386

#if HasGcc
# define CcCmd 		gcc -ansi -fstrength-reduce -fpcc-struct-return -Di386
# if HasSharedLibraries
#  define LibraryCcCmd	cc -Xa -Di386 -Dasm=__asm
# endif
#else
# define CcCmd		cc -Xa -Di386 -Dasm=__asm
#endif

#include <sv4Lib.rules>

#endif /* i386SVR4Architecture */


XCOMM operating system:  OSName OSVendor