summaryrefslogtreecommitdiff
path: root/nec.cf
blob: 8fb072ff765fa8c5e30bca60426522c0b34277f8 (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
XCOMM platform:  $Xorg: nec.cf,v 1.3 2000/08/17 19:41:47 cpqbld Exp $

#ifdef nec_ews_svr2
# define NecCISCArchitecture
#else /* !defined(nec_ews_svr2) */
# if defined(nec_ews_svr4) || defined(_nec_ews_svr4) || defined(_nec_up)
#  define NecRISCArchitecture
# else /* !(defined(nec_ews_svr4) || defined(_nec_ews_svr4) || defined(_nec_up)) */
#  ifdef SX
#   define NecSX3Architecture
#  else /* !defined(SX) */
#   ifdef _nec_ft
#    define NecFaultTolerantArchitecture
#   else /* !defined(_nec_ft) */
#    ifdef PC_UX
#     define NecPCArchitecture
#    endif /* PC_UX */
#   endif /* !defined(_nec_ft) */
#  endif /* !defined(SX) */
# endif /* !(defined(nec_ews_svr4) || defined(_nec_ews_svr4) || defined(_nec_up)) */
#endif /* !defined(nec_ews_svr2) */

#ifdef NecCISCArchitecture
#ifndef OSName
#define OSName            	EWS-UX/V
#endif
#ifndef OSMajorVersion
#define OSMajorVersion    	10
#endif
#ifndef OSMinorVersion
#define OSMinorVersion    	1
#endif
#define HasSharedLibraries	NO
#define HasVoidSignalReturn	NO
#define HasSockets		YES
#define SystemV			YES
#define StandardDefines		-Dnec_ews -Dnec_ews_svr2 -DUSG -DSYSV
#define StandardCppDefines	-Dnec_ews -Dnec_ews_svr2 -DUSG -DSYSV
#define LnCmd			ln -s
        LEXOPTION = -j
#endif

#ifdef NecRISCArchitecture
# ifdef _nec_up
#ifndef OSName
#define OSName            	UP-UX/V
#endif
#ifndef OSMajorVersion
#define OSMajorVersion    	5
#endif
#ifndef OSMinorVersion
#define OSMinorVersion    	1
#endif
# else
#ifndef OSName
#define OSName            	EWS-UX/V\(Rel4.2\)
#endif
#ifndef OSMajorVersion
#define OSMajorVersion    	9
#endif
#ifndef OSMinorVersion
#define OSMinorVersion    	1
#endif
# endif
#define HasSharedLibraries	YES
#define HasVoidSignalReturn 	YES
#define SystemV4		YES
#define HasSockets		YES
#endif

#ifdef NecSX3Architecture
#ifndef OSName
#define OSName		 	SUPER-UX
#endif
#ifndef OSMajorVersion
#define OSMajorVersion	 	3
#endif
#ifndef OSMinorVersion
#define OSMinorVersion		1
#endif
#define SystemV			YES
#define HasSharedLibraries 	NO
#define HasVoidSignalReturn	YES
#endif

#ifdef NecFaultTolerantArchitecture
#ifndef OSName
#define OSName			FT-UX/V
#endif
#ifndef OSMajorVersion
#define OSMajorVersion		5
#endif
#ifndef OSMinorVersion
#define OSMinorVersion		1
#endif
#define HasSharedLibraries	YES
#define HasVoidSignalReturn	YES
#define SystemV4		YES
#define HasSockets		YES
#endif

#ifdef NecPCArchitecture
#ifndef OSName
#define OSName			PC-UX/V
#endif
#ifndef OSMajorVersion
#define OSMajorVersion		3
#endif
#ifndef OSMinorVersion
#define OSMinorVersion		1
#endif
#define HasSharedLibraries	NO
#define HasVoidSignalReturn	NO
#define SystemV			YES
#endif

#define HasSaberC	NO		/* for machines that have it */
#define HasGcc		NO
#define HasBsearch	YES

#define DefaultCCOptions	-Wf,-XNp9000,-XNd6000
#define ExtraLibraries		-lsocket -lnsl -lw

#define BuildServer			NO
/* #define InstallCmd $(INS) */
#define	RemoveTargetProgramByMoving	YES

#include <necLib.rules>

#define LibraryCCOptions DefaultCCOptions
#define LibraryDefines  StandardDefines