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