1XCOMM platform:  $Xorg: sony.cf,v 1.3 2000/08/17 19:41:48 cpqbld Exp $
2
3#ifdef SonyBsdArchitecture
4
5#ifndef OSName
6#define OSName                  NEWS-OS 4.2.1C
7#endif
8#ifndef OSMajorVersion
9#define OSMajorVersion          4
10#endif
11#ifndef OSMinorVersion
12#define OSMinorVersion          2
13#endif
14#ifndef OSTeenyVersion
15#define OSTeenyVersion          1
16#endif
17#define SetTtyGroup             YES
18#define HasVoidSignalReturn     NO
19#define HasNdbm                 YES
20#define DirFailPrefix -
21#define InstKmemFlags		-g kmem -m 2711
22#define DefaultUserPath :/bin:/usr/bin:$(BINDIR):/usr/ucb:/usr/sony/bin:
23#define DefaultSystemPath /etc:/usr/etc:/bin:/usr/bin:$(BINDIR):/usr/ucb:/usr/sony/bin:
24#ifdef MipsArchitecture
25#define ExtraLibraries		-lmld
26#define LintOpts		-ax
27#define LintLibFlag		-o
28#define DefaultCCOptions	-Wf,-XNh2000,-XNd6000,-XNp10000 -Olimit 2000
29#else
30#define HasFortran		YES
31#endif
32#if OSMajorVersion >= 4
33#define HasShm			YES
34#define HasPutenv		YES
35#define HasSecureRPC		YES
36#define XdmDir			/etc/xdm
37#if OSMinorVersion >= 1
38#define HasBsearch		YES
39#else
40#define HasBsearch		NO
41#endif
42#else
43#define StandardDefines		-DNOSTDHDRS
44#define HasBsearch		NO
45#endif
46
47#else
48
49#ifndef OSName
50#define OSName			DefaultOSName
51#endif
52#ifndef OSMajorVersion
53#define OSMajorVersion		DefaultOSMajorVersion
54#endif
55#ifndef OSMinorVersion
56#define OSMinorVersion		DefaultOSMinorVersion
57#endif
58#ifndef OSTeenyVersion
59#define OSTeenyVersion		DefaultOSTeenyVersion
60#endif
61XCOMM operating system:  OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
62
63#define BootstrapCFlags		-Dsony
64#define SystemV4		YES
65#define HasVFork		NO
66#define CcCmd			/usr/bin/cc
67#define LdCmd			/usr/bin/ld
68#if OSMajorVersion >= 6
69#define DefaultCCOptions	-Xa -Wf,-XNp9000,-XNd6000
70#define SharedLibraryLoadFlags -G -rpath $(USRLIBDIRPATH)
71#define PositionIndependentCFlags -K PIC -Wx,-G 0
72#define PositionIndependentCplusplusFlags -K PIC -Wx,-G 0
73#define SharedXmuReqs $(LDPRELIBS) $(XTOOLLIB) $(XLIB)
74#define FixupLibReferences() /**/
75#include <sv4Lib.rules>
76#else
77#define DefaultCCOptions	-Wf,-XNp9000,-XNd6000
78#endif
79
80#endif
81
82/*
83 * SONY C++ compiler is based on vanilla cfront, which means it
84 * refuses to compile files unless their names end in ".C".  We
85 * have to completely override .SUFFIXES to avoid using the builtin
86 * .C to .o rule in cases where the link to foo.C is already there,
87 * because the builtin rule doesn't use the right compilation flags.
88 */
89
90.SUFFIXES:
91.SUFFIXES: .o .c .y .l .s .sh .h .f .Y .L .cxx
92
93#define NormalLibObjCplusplusCompile(options) test -r $*.C || $(LN) $*.CCsuf $*.C @@\
94	$(CXX) -c $(CXXFLAGS) options $*.C
95
96XCOMM operating system:  OSName
97
98#ifndef BuildServer
99#define BuildServer             NO
100#endif
101