xref: /trunk/main/solenv/inc/unx.mk (revision 3d8ff951)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24# --- Unix-Environment ---------------------------------------
25# Used if "$(GUI)" == "UNX"
26
27
28# Dieses Define gilt fuer alle  WNT- Plattformen
29# fuer Compiler, wo kein Java unterstuetzt wird, muss dies ge'undeft werden
30#JAVADEF=-DSOLAR_JAVA
31
32# --- Compiler ---
33
34.IF "$(COM)$(OS)$(CPU)" == "C50SOLARISS"
35.INCLUDE : unxsols2.mk
36.ENDIF
37
38.IF "$(COM)$(OS)$(CPU)" == "C50SOLARISI"
39.INCLUDE : unxsoli2.mk
40.ENDIF
41
42.IF "$(OS)$(CPU)$(COMEX)" == "SOLARISS3"
43.INCLUDE : unxsols3.mk
44.ENDIF
45
46.IF "$(OS)$(CPU)$(COMEX)" == "SOLARISI3"
47.INCLUDE : unxsoli3.mk
48.ENDIF
49
50.IF "$(OS)$(CPU)$(COMEX)" == "SOLARISS4"
51.INCLUDE : unxsols4.mk
52.ENDIF
53
54.IF "$(OS)$(CPU)$(COMEX)" == "SOLARISI4"
55.INCLUDE : unxsoli4.mk
56.ENDIF
57
58.IF "$(OS)$(CPU)$(COMEX)" == "SOLARISU4"
59.INCLUDE : unxsolu4.mk
60.ENDIF
61
62.IF "$(OS)$(CPU)$(COMEX)" == "SOLARISX4"
63.INCLUDE : unxsolx4.mk
64.ENDIF
65
66.IF "$(COM)$(OS)$(CPU)" == "GCCSOLARISS"
67.INCLUDE : unxsogs.mk
68.ENDIF
69
70.IF "$(COM)$(OS)$(CPU)" == "GCCSOLARISI"
71.INCLUDE : unxsogi.mk
72.ENDIF
73
74.IF "$(COM)$(OS)$(CPU)" == "GCCSCOI"
75.INCLUDE : unxscoi.mk
76.ENDIF
77
78.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXS"
79.INCLUDE : unxlngs.mk
80.ENDIF
81
82.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXI"
83.INCLUDE : unxlngi.mk
84.ENDIF
85
86.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXX"
87.INCLUDE : unxlngx.mk
88.ENDIF
89
90.IF "$(COM)$(OS)$(CPU)$(CPUNAME)" == "GCCLINUXPPOWERPC"
91.INCLUDE : unxlngppc.mk
92.ENDIF
93
94.IF "$(COM)$(OS)$(CPU)$(CPUNAME)" == "GCCLINUX3S390"
95.INCLUDE : unxlngs390.mk
96.ENDIF
97
98.IF "$(COM)$(OS)$(CPU)$(CPUNAME)" == "GCCLINUX3S390X"
99.INCLUDE : unxlngs390x.mk
100.ENDIF
101
102.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXR"
103.INCLUDE : unxlngr.mk
104.ENDIF
105
106.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXA"
107.INCLUDE : unxlnga.mk
108.ENDIF
109
110# FreeBSD includes the specific platforms in its makefile
111.IF "$(OS)" == "FREEBSD"
112.INCLUDE : unxfbsd.mk
113.ENDIF
114
115.IF "$(COM)$(OS)$(CPU)" == "ACCHPUXR"
116.INCLUDE : unxhpxr.mk
117.ENDIF
118
119.IF "$(COM)$(OS)$(CPU)" == "GCCHPUXR"
120.INCLUDE : unxhpgr.mk
121.ENDIF
122
123.IF "$(COM)$(OS)$(CPU)" == "GCCNETBSDA"
124.INCLUDE : unxbsda.mk
125.ENDIF
126
127.IF "$(COM)$(OS)$(CPU)" == "ICCAIXP"
128.INCLUDE : unxaixp.mk
129.ENDIF
130
131.IF "$(COM)$(CVER)$(OS)$(CPU)" == "GCCC295NETBSDI"
132.INCLUDE : unxbsdi.mk
133.ENDIF
134
135.IF "$(COM)$(CVER)$(OS)$(CPU)" == "GCCC300NETBSDI"
136.INCLUDE : unxbsdi2.mk
137.ENDIF
138
139.IF "$(COM)$(OS)$(CPU)" == "GCCNETBSDS"
140.INCLUDE : unxbsds.mk
141.ENDIF
142
143.IF "$(COM)$(OS)$(CPU)" == "GCCMACOSXP"
144.INCLUDE : unxmacxp.mk
145.ENDIF
146
147.IF "$(COM)$(OS)$(CPU)" == "GCCMACOSXI"
148.INCLUDE : unxmacxi.mk
149.ENDIF
150
151.IF "$(COM)$(OS)$(CPU)" == "CLANGMACOSXI"
152.INCLUDE : unxmacci.mk
153.ENDIF
154
155.IF "$(COM)$(OS)$(CPU)" == "CLANGMACOSXX"
156.INCLUDE : unxmaccx.mk
157.ENDIF
158
159.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXM"
160.INCLUDE : unxlngmips.mk
161.ENDIF
162
163.IF "$(COM)$(OS)$(CPU)" == "GCCLINUX6"
164.INCLUDE : unxlngm68k.mk
165.ENDIF
166
167.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXH"
168.INCLUDE : unxlnghppa.mk
169.ENDIF
170
171.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXL"
172.INCLUDE : unxlngaxp.mk
173.ENDIF
174
175# --- general *ix settings ---
176HC=hc
177HCFLAGS=
178PATH_SEPERATOR*=:
179CDEFS+=-D__DMAKE
180
181CDEFS+=-DUNIX
182
183# fuer linux: bison -y -d
184YACC*=yacc
185YACCFLAGS*=-d -t
186
187EXECPOST=
188SCPPOST=.ins
189DLLDEST=$(LB)
190SOLARSHAREDBIN=$(SOLARLIBDIR)
191SONAME_SWITCH*=-h
192
193.IF "$(UNIXVERSIONNAMES)"!=""
194DLLPOST!:=$(DLLPOST).$($(UNIXVERSIONNAMES)_MAJOR)
195.ENDIF			# "$(UNIXVERSIONNAMES)"!=""
196
197# enable building/linking KDE-dependent code in both OOo and SO build environment
198.IF "$(ENABLE_KDE)" != ""
199.IF "$(KDE_ROOT)"!=""
200KDE_CFLAGS:=-I$(KDE_ROOT)/include -DQT_CLEAN_NAMESPACE
201KDE_LIBS:=-L$(KDE_ROOT)/lib -lkdeui -lkdecore -lqt-mt
202.IF "$(OS)$(CPU)" == "LINUXX"
203SOLARLIB+=-L$(KDE_ROOT)/lib64
204.ENDIF          # "$(OS)$(CPU)" == "LINUXX"
205.ENDIF          # "$(KDE_ROOT)"!=""
206.ENDIF          # "$(ENABLE_KDE)" != ""
207
208OOO_LIBRARY_PATH_VAR *= LD_LIBRARY_PATH
209