xref: /aoo41x/main/solenv/inc/unx.mk (revision de2c434c)
17871dc3eSAndrew Rist#**************************************************************
27871dc3eSAndrew Rist#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
107871dc3eSAndrew Rist#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
127871dc3eSAndrew Rist#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
197871dc3eSAndrew Rist#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew 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
142*de2c434cSPedro Giffuni.IF "$(OS)" == "FREEBSD"
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
1540bc66fd0SHerbert Dürr.IF "$(COM)$(OS)$(CPU)" == "CLANGMACOSXI"
1550bc66fd0SHerbert Dürr.INCLUDE : unxmacci.mk
1560bc66fd0SHerbert Dürr.ENDIF
1570bc66fd0SHerbert Dürr
1580bc66fd0SHerbert Dürr.IF "$(COM)$(OS)$(CPU)" == "CLANGMACOSXX"
1590bc66fd0SHerbert Dürr.INCLUDE : unxmaccx.mk
1600bc66fd0SHerbert Dürr.ENDIF
1610bc66fd0SHerbert Dürr
162cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXM"
163cdf0e10cSrcweir.INCLUDE : unxlngmips.mk
164cdf0e10cSrcweir.ENDIF
165cdf0e10cSrcweir
166cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCLINUX6"
167cdf0e10cSrcweir.INCLUDE : unxlngm68k.mk
168cdf0e10cSrcweir.ENDIF
169cdf0e10cSrcweir
170cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXH"
171cdf0e10cSrcweir.INCLUDE : unxlnghppa.mk
172cdf0e10cSrcweir.ENDIF
173cdf0e10cSrcweir
174cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXL"
175cdf0e10cSrcweir.INCLUDE : unxlngaxp.mk
176cdf0e10cSrcweir.ENDIF
177cdf0e10cSrcweir
178cdf0e10cSrcweir# --- general *ix settings ---
179cdf0e10cSrcweirHC=hc
180cdf0e10cSrcweirHCFLAGS=
181cdf0e10cSrcweirPATH_SEPERATOR*=:
182cdf0e10cSrcweirCDEFS+=-D__DMAKE
183cdf0e10cSrcweir
184cdf0e10cSrcweirCDEFS+=-DUNIX
185cdf0e10cSrcweir
186cdf0e10cSrcweir# fuer linux: bison -y -d
187cdf0e10cSrcweirYACC*=yacc
188cdf0e10cSrcweirYACCFLAGS*=-d -t
189cdf0e10cSrcweir
190cdf0e10cSrcweirEXECPOST=
191cdf0e10cSrcweirSCPPOST=.ins
192cdf0e10cSrcweirDLLDEST=$(LB)
193cdf0e10cSrcweirSOLARSHAREDBIN=$(SOLARLIBDIR)
194cdf0e10cSrcweirSONAME_SWITCH*=-h
195cdf0e10cSrcweir
196cdf0e10cSrcweir.IF "$(UNIXVERSIONNAMES)"!=""
197cdf0e10cSrcweirDLLPOST!:=$(DLLPOST).$($(UNIXVERSIONNAMES)_MAJOR)
198cdf0e10cSrcweir.ENDIF			# "$(UNIXVERSIONNAMES)"!=""
199cdf0e10cSrcweir
200cdf0e10cSrcweir# enable building/linking KDE-dependent code in both OOo and SO build environment
201cdf0e10cSrcweir.IF "$(ENABLE_KDE)" != ""
202cdf0e10cSrcweir.IF "$(KDE_ROOT)"!=""
203cdf0e10cSrcweirKDE_CFLAGS:=-I$(KDE_ROOT)/include -DQT_CLEAN_NAMESPACE
204cdf0e10cSrcweirKDE_LIBS:=-lkdeui -lkdecore -lqt-mt
205cdf0e10cSrcweirSOLARLIB+=-L$(KDE_ROOT)/lib
206cdf0e10cSrcweir.IF "$(OS)$(CPU)" == "LINUXX"
207cdf0e10cSrcweirSOLARLIB+=-L$(KDE_ROOT)/lib64
208cdf0e10cSrcweir.ENDIF          # "$(OS)$(CPU)" == "LINUXX"
209cdf0e10cSrcweir.ENDIF          # "$(KDE_ROOT)"!=""
210cdf0e10cSrcweir.ENDIF          # "$(ENABLE_KDE)" != ""
211cdf0e10cSrcweir
212cdf0e10cSrcweirOOO_LIBRARY_PATH_VAR *= LD_LIBRARY_PATH
213