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