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

#ifdef SonyBsdArchitecture

#ifndef OSName
#define OSName                  NEWS-OS 4.2.1C
#endif
#ifndef OSMajorVersion
#define OSMajorVersion          4
#endif
#ifndef OSMinorVersion
#define OSMinorVersion          2
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion          1
#endif
#define SetTtyGroup             YES
#define HasVoidSignalReturn     NO
#define HasNdbm                 YES
#define DirFailPrefix -
#define InstKmemFlags		-g kmem -m 2711
#define DefaultUserPath :/bin:/usr/bin:$(BINDIR):/usr/ucb:/usr/sony/bin:
#define DefaultSystemPath /etc:/usr/etc:/bin:/usr/bin:$(BINDIR):/usr/ucb:/usr/sony/bin:
#ifdef MipsArchitecture
#define ExtraLibraries		-lmld
#define LintOpts		-ax
#define LintLibFlag		-o
#define DefaultCCOptions	-Wf,-XNh2000,-XNd6000,-XNp10000 -Olimit 2000
#else
#define HasFortran		YES
#endif
#if OSMajorVersion >= 4
#define HasShm			YES
#define HasPutenv		YES
#define HasSecureRPC		YES
#define XdmDir			/etc/xdm
#if OSMinorVersion >= 1
#define HasBsearch		YES
#else
#define HasBsearch		NO
#endif
#else
#define StandardDefines		-DNOSTDHDRS
#define HasBsearch		NO
#endif

#else

#ifndef OSName
#define OSName			DefaultOSName
#endif
#ifndef OSMajorVersion
#define OSMajorVersion		DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
#define OSMinorVersion		DefaultOSMinorVersion
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion		DefaultOSTeenyVersion
#endif
XCOMM operating system:  OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)

#define BootstrapCFlags		-Dsony
#define SystemV4		YES
#define HasVFork		NO
#define CcCmd			/usr/bin/cc
#define LdCmd			/usr/bin/ld
#if OSMajorVersion >= 6
#define DefaultCCOptions	-Xa -Wf,-XNp9000,-XNd6000
#define SharedLibraryLoadFlags -G -rpath $(USRLIBDIRPATH)
#define PositionIndependentCFlags -K PIC -Wx,-G 0
#define PositionIndependentCplusplusFlags -K PIC -Wx,-G 0
#define SharedXmuReqs $(LDPRELIBS) $(XTOOLLIB) $(XLIB)
#define FixupLibReferences() /**/
#include <sv4Lib.rules>
#else
#define DefaultCCOptions	-Wf,-XNp9000,-XNd6000
#endif

#endif

/*
 * SONY C++ compiler is based on vanilla cfront, which means it
 * refuses to compile files unless their names end in ".C".  We
 * have to completely override .SUFFIXES to avoid using the builtin
 * .C to .o rule in cases where the link to foo.C is already there,
 * because the builtin rule doesn't use the right compilation flags.
 */

.SUFFIXES:
.SUFFIXES: .o .c .y .l .s .sh .h .f .Y .L .cxx

#define NormalLibObjCplusplusCompile(options) test -r $*.C || $(LN) $*.CCsuf $*.C @@\
	$(CXX) -c $(CXXFLAGS) options $*.C

XCOMM operating system:  OSName

#ifndef BuildServer
#define BuildServer             NO
#endif