xref: /trunk/main/solenv/inc/unx.mk (revision bcc22a4c)
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 "$(OS)$(CPU)" == "LINUXS"
79.INCLUDE : unxlngs.mk
80.ENDIF
81
82.IF "$(OS)$(CPU)" == "LINUXI"
83.INCLUDE : unxlngi.mk
84.ENDIF
85
86.IF "$(OS)$(CPU)" == "LINUXX"
87.INCLUDE : unxlngx.mk
88.ENDIF
89
90.IF "$(OS)$(CPU)$(CPUNAME)" == "LINUXPPOWERPC"
91.INCLUDE : unxlngppc.mk
92.ENDIF
93
94.IF "$(OS)$(CPU)$(CPUNAME)" == "LINUXPPOWERPC64"
95.INCLUDE : unxlngppc64.mk
96.ENDIF
97
98.IF "$(OS)$(CPU)$(CPUNAME)" == "LINUX3S390"
99.INCLUDE : unxlngs390.mk
100.ENDIF
101
102.IF "$(OS)$(CPU)$(CPUNAME)" == "LINUX3S390X"
103.INCLUDE : unxlngs390x.mk
104.ENDIF
105
106.IF "$(OS)$(CPU)" == "LINUXR"
107.INCLUDE : unxlngr.mk
108.ENDIF
109
110.IF "$(OS)$(CPU)" == "LINUXA"
111.INCLUDE : unxlnga.mk
112.ENDIF
113
114# FreeBSD includes the specific platforms in its makefile
115.IF "$(OS)" == "FREEBSD"
116.INCLUDE : unxfbsd.mk
117.ENDIF
118
119.IF "$(COM)$(OS)$(CPU)" == "ACCHPUXR"
120.INCLUDE : unxhpxr.mk
121.ENDIF
122
123.IF "$(COM)$(OS)$(CPU)" == "GCCHPUXR"
124.INCLUDE : unxhpgr.mk
125.ENDIF
126
127.IF "$(COM)$(OS)$(CPU)" == "GCCNETBSDA"
128.INCLUDE : unxbsda.mk
129.ENDIF
130
131.IF "$(COM)$(OS)$(CPU)" == "ICCAIXP"
132.INCLUDE : unxaixp.mk
133.ENDIF
134
135.IF "$(COM)$(CVER)$(OS)$(CPU)" == "GCCC295NETBSDI"
136.INCLUDE : unxbsdi.mk
137.ENDIF
138
139.IF "$(COM)$(CVER)$(OS)$(CPU)" == "GCCC300NETBSDI"
140.INCLUDE : unxbsdi2.mk
141.ENDIF
142
143.IF "$(COM)$(OS)$(CPU)" == "GCCNETBSDS"
144.INCLUDE : unxbsds.mk
145.ENDIF
146
147.IF "$(COM)$(OS)$(CPU)" == "GCCMACOSXP"
148.INCLUDE : unxmacxp.mk
149.ENDIF
150
151.IF "$(COM)$(OS)$(CPU)" == "GCCMACOSXI"
152.INCLUDE : unxmacxi.mk
153.ENDIF
154
155.IF "$(COM)$(OS)$(CPU)" == "CLANGMACOSXI"
156.INCLUDE : unxmacci.mk
157.ENDIF
158
159.IF "$(COM)$(OS)$(CPU)" == "CLANGMACOSXX"
160.INCLUDE : unxmaccx.mk
161.ENDIF
162
163.IF "$(OS)$(CPU)" == "LINUXM"
164.INCLUDE : unxlngmips.mk
165.ENDIF
166
167.IF "$(OS)$(CPU)" == "LINUX6"
168.INCLUDE : unxlngm68k.mk
169.ENDIF
170
171.IF "$(OS)$(CPU)" == "LINUXH"
172.INCLUDE : unxlnghppa.mk
173.ENDIF
174
175.IF "$(OS)$(CPU)" == "LINUXL"
176.INCLUDE : unxlngaxp.mk
177.ENDIF
178
179# --- general *ix settings ---
180HC=hc
181HCFLAGS=
182PATH_SEPERATOR*=:
183CDEFS+=-D__DMAKE
184
185CDEFS+=-DUNIX
186
187# fuer linux: bison -y -d
188YACC*=yacc
189YACCFLAGS*=-d -t
190
191EXECPOST=
192SCPPOST=.ins
193DLLDEST=$(LB)
194SOLARSHAREDBIN=$(SOLARLIBDIR)
195SONAME_SWITCH*=-h
196
197.IF "$(UNIXVERSIONNAMES)"!=""
198DLLPOST!:=$(DLLPOST).$($(UNIXVERSIONNAMES)_MAJOR)
199.ENDIF			# "$(UNIXVERSIONNAMES)"!=""
200
201# enable building/linking KDE-dependent code in both OOo and SO build environment
202.IF "$(ENABLE_KDE)" != ""
203.IF "$(KDE_ROOT)"!=""
204KDE_CFLAGS:=-I$(KDE_ROOT)/include -DQT_CLEAN_NAMESPACE
205KDE_LIBS:=-L$(KDE_ROOT)/lib -lkdeui -lkdecore -lqt-mt
206.IF "$(OS)$(CPU)" == "LINUXX"
207SOLARLIB+=-L$(KDE_ROOT)/lib64
208.ENDIF          # "$(OS)$(CPU)" == "LINUXX"
209.ENDIF          # "$(KDE_ROOT)"!=""
210.ENDIF          # "$(ENABLE_KDE)" != ""
211
212OOO_LIBRARY_PATH_VAR *= LD_LIBRARY_PATH
213