xref: /aoo41x/main/solenv/inc/unx.mk (revision cdf0e10c)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28# --- Unix-Environment ---------------------------------------
29# Used if "$(GUI)" == "UNX"
30
31
32# Dieses Define gilt fuer alle  WNT- Plattformen
33# fuer Compiler, wo kein Java unterstuetzt wird, muss dies ge'undeft werden
34#JAVADEF=-DSOLAR_JAVA
35
36# --- Compiler ---
37
38.IF "$(COM)$(OS)$(CPU)" == "C50SOLARISS"
39.INCLUDE : unxsols2.mk
40.ENDIF
41
42.IF "$(COM)$(OS)$(CPU)" == "C50SOLARISI"
43.INCLUDE : unxsoli2.mk
44.ENDIF
45
46.IF "$(OS)$(CPU)$(COMEX)" == "SOLARISS3"
47.INCLUDE : unxsols3.mk
48.ENDIF
49
50.IF "$(OS)$(CPU)$(COMEX)" == "SOLARISI3"
51.INCLUDE : unxsoli3.mk
52.ENDIF
53
54.IF "$(OS)$(CPU)$(COMEX)" == "SOLARISS4"
55.INCLUDE : unxsols4.mk
56.ENDIF
57
58.IF "$(OS)$(CPU)$(COMEX)" == "SOLARISI4"
59.INCLUDE : unxsoli4.mk
60.ENDIF
61
62.IF "$(OS)$(CPU)$(COMEX)" == "SOLARISU4"
63.INCLUDE : unxsolu4.mk
64.ENDIF
65
66.IF "$(OS)$(CPU)$(COMEX)" == "SOLARISX4"
67.INCLUDE : unxsolx4.mk
68.ENDIF
69
70.IF "$(COM)$(OS)$(CPU)" == "GCCSOLARISS"
71.INCLUDE : unxsogs.mk
72.ENDIF
73
74.IF "$(COM)$(OS)$(CPU)" == "GCCSOLARISI"
75.INCLUDE : unxsogi.mk
76.ENDIF
77
78.IF "$(COM)$(OS)$(CPU)" == "GCCSCOI"
79.INCLUDE : unxscoi.mk
80.ENDIF
81
82.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXS"
83.INCLUDE : unxlngs.mk
84.ENDIF
85
86.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXI"
87.INCLUDE : unxlngi.mk
88.ENDIF
89
90.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXX"
91.INCLUDE : unxlngx.mk
92.ENDIF
93
94.IF "$(COM)$(OS)$(CPU)$(CPUNAME)" == "GCCLINUXPPOWERPC"
95.INCLUDE : unxlngppc.mk
96.ENDIF
97
98.IF "$(COM)$(OS)$(CPU)$(CPUNAME)" == "GCCLINUXPPOWERPC64"
99.INCLUDE : unxlngppc64.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 "$(COM)$(OS)" == "GCCFREEBSD"
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)" == "GCCLINUXM"
159.INCLUDE : unxlngmips.mk
160.ENDIF
161
162.IF "$(COM)$(OS)$(CPU)" == "GCCLINUX6"
163.INCLUDE : unxlngm68k.mk
164.ENDIF
165
166.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXH"
167.INCLUDE : unxlnghppa.mk
168.ENDIF
169
170.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXL"
171.INCLUDE : unxlngaxp.mk
172.ENDIF
173
174# --- general *ix settings ---
175HC=hc
176HCFLAGS=
177PATH_SEPERATOR*=:
178CDEFS+=-D__DMAKE
179
180CDEFS+=-DUNIX
181
182# fuer linux: bison -y -d
183YACC*=yacc
184YACCFLAGS*=-d -t
185
186EXECPOST=
187SCPPOST=.ins
188DLLDEST=$(LB)
189SOLARSHAREDBIN=$(SOLARLIBDIR)
190SONAME_SWITCH*=-h
191
192.IF "$(UNIXVERSIONNAMES)"!=""
193DLLPOST!:=$(DLLPOST).$($(UNIXVERSIONNAMES)_MAJOR)
194.ENDIF			# "$(UNIXVERSIONNAMES)"!=""
195
196# enable building/linking KDE-dependent code in both OOo and SO build environment
197.IF "$(ENABLE_KDE)" != ""
198.IF "$(KDE_ROOT)"!=""
199KDE_CFLAGS:=-I$(KDE_ROOT)/include -DQT_CLEAN_NAMESPACE
200KDE_LIBS:=-lkdeui -lkdecore -lqt-mt
201SOLARLIB+=-L$(KDE_ROOT)/lib
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