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