xref: /aoo42x/main/solenv/inc/unx.mk (revision 5a812352)
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)" == "GCCLINUX3S390"
95cdf0e10cSrcweir.INCLUDE : unxlngs390.mk
96cdf0e10cSrcweir.ENDIF
97cdf0e10cSrcweir
98cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)$(CPUNAME)" == "GCCLINUX3S390X"
99cdf0e10cSrcweir.INCLUDE : unxlngs390x.mk
100cdf0e10cSrcweir.ENDIF
101cdf0e10cSrcweir
102cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXR"
103cdf0e10cSrcweir.INCLUDE : unxlngr.mk
104cdf0e10cSrcweir.ENDIF
105cdf0e10cSrcweir
106cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXA"
107cdf0e10cSrcweir.INCLUDE : unxlnga.mk
108cdf0e10cSrcweir.ENDIF
109cdf0e10cSrcweir
110*5a812352Spfg# FreeBSD includes the specific platforms in its makefile
111*5a812352Spfg.IF "$(OS)" == "FREEBSD"
112*5a812352Spfg.INCLUDE : unxfbsd.mk
113*5a812352Spfg.ENDIF
114*5a812352Spfg
115cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "ACCHPUXR"
116cdf0e10cSrcweir.INCLUDE : unxhpxr.mk
117cdf0e10cSrcweir.ENDIF
118cdf0e10cSrcweir
119cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCHPUXR"
120cdf0e10cSrcweir.INCLUDE : unxhpgr.mk
121cdf0e10cSrcweir.ENDIF
122cdf0e10cSrcweir
123cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCNETBSDA"
124cdf0e10cSrcweir.INCLUDE : unxbsda.mk
125cdf0e10cSrcweir.ENDIF
126cdf0e10cSrcweir
127cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "ICCAIXP"
128cdf0e10cSrcweir.INCLUDE : unxaixp.mk
129cdf0e10cSrcweir.ENDIF
130cdf0e10cSrcweir
131cdf0e10cSrcweir.IF "$(COM)$(CVER)$(OS)$(CPU)" == "GCCC295NETBSDI"
132cdf0e10cSrcweir.INCLUDE : unxbsdi.mk
133cdf0e10cSrcweir.ENDIF
134cdf0e10cSrcweir
135cdf0e10cSrcweir.IF "$(COM)$(CVER)$(OS)$(CPU)" == "GCCC300NETBSDI"
136cdf0e10cSrcweir.INCLUDE : unxbsdi2.mk
137cdf0e10cSrcweir.ENDIF
138cdf0e10cSrcweir
139cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCNETBSDS"
140cdf0e10cSrcweir.INCLUDE : unxbsds.mk
141cdf0e10cSrcweir.ENDIF
142cdf0e10cSrcweir
143cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCMACOSXP"
144cdf0e10cSrcweir.INCLUDE : unxmacxp.mk
145cdf0e10cSrcweir.ENDIF
146cdf0e10cSrcweir
147cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCMACOSXI"
148cdf0e10cSrcweir.INCLUDE : unxmacxi.mk
149cdf0e10cSrcweir.ENDIF
150cdf0e10cSrcweir
1510bc66fd0SHerbert Dürr.IF "$(COM)$(OS)$(CPU)" == "CLANGMACOSXI"
1520bc66fd0SHerbert Dürr.INCLUDE : unxmacci.mk
1530bc66fd0SHerbert Dürr.ENDIF
1540bc66fd0SHerbert Dürr
1550bc66fd0SHerbert Dürr.IF "$(COM)$(OS)$(CPU)" == "CLANGMACOSXX"
1560bc66fd0SHerbert Dürr.INCLUDE : unxmaccx.mk
1570bc66fd0SHerbert Dürr.ENDIF
1580bc66fd0SHerbert Dürr
159cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXM"
160cdf0e10cSrcweir.INCLUDE : unxlngmips.mk
161cdf0e10cSrcweir.ENDIF
162cdf0e10cSrcweir
163cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCLINUX6"
164cdf0e10cSrcweir.INCLUDE : unxlngm68k.mk
165cdf0e10cSrcweir.ENDIF
166cdf0e10cSrcweir
167cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXH"
168cdf0e10cSrcweir.INCLUDE : unxlnghppa.mk
169cdf0e10cSrcweir.ENDIF
170cdf0e10cSrcweir
171cdf0e10cSrcweir.IF "$(COM)$(OS)$(CPU)" == "GCCLINUXL"
172cdf0e10cSrcweir.INCLUDE : unxlngaxp.mk
173cdf0e10cSrcweir.ENDIF
174cdf0e10cSrcweir
175cdf0e10cSrcweir# --- general *ix settings ---
176cdf0e10cSrcweirHC=hc
177cdf0e10cSrcweirHCFLAGS=
178cdf0e10cSrcweirPATH_SEPERATOR*=:
179cdf0e10cSrcweirCDEFS+=-D__DMAKE
180cdf0e10cSrcweir
181cdf0e10cSrcweirCDEFS+=-DUNIX
182cdf0e10cSrcweir
183cdf0e10cSrcweir# fuer linux: bison -y -d
184cdf0e10cSrcweirYACC*=yacc
185cdf0e10cSrcweirYACCFLAGS*=-d -t
186cdf0e10cSrcweir
187cdf0e10cSrcweirEXECPOST=
188cdf0e10cSrcweirSCPPOST=.ins
189cdf0e10cSrcweirDLLDEST=$(LB)
190cdf0e10cSrcweirSOLARSHAREDBIN=$(SOLARLIBDIR)
191cdf0e10cSrcweirSONAME_SWITCH*=-h
192cdf0e10cSrcweir
193cdf0e10cSrcweir.IF "$(UNIXVERSIONNAMES)"!=""
194cdf0e10cSrcweirDLLPOST!:=$(DLLPOST).$($(UNIXVERSIONNAMES)_MAJOR)
195cdf0e10cSrcweir.ENDIF			# "$(UNIXVERSIONNAMES)"!=""
196cdf0e10cSrcweir
197cdf0e10cSrcweir# enable building/linking KDE-dependent code in both OOo and SO build environment
198cdf0e10cSrcweir.IF "$(ENABLE_KDE)" != ""
199cdf0e10cSrcweir.IF "$(KDE_ROOT)"!=""
200cdf0e10cSrcweirKDE_CFLAGS:=-I$(KDE_ROOT)/include -DQT_CLEAN_NAMESPACE
201cdf0e10cSrcweirKDE_LIBS:=-lkdeui -lkdecore -lqt-mt
202cdf0e10cSrcweirSOLARLIB+=-L$(KDE_ROOT)/lib
203cdf0e10cSrcweir.IF "$(OS)$(CPU)" == "LINUXX"
204cdf0e10cSrcweirSOLARLIB+=-L$(KDE_ROOT)/lib64
205cdf0e10cSrcweir.ENDIF          # "$(OS)$(CPU)" == "LINUXX"
206cdf0e10cSrcweir.ENDIF          # "$(KDE_ROOT)"!=""
207cdf0e10cSrcweir.ENDIF          # "$(ENABLE_KDE)" != ""
208cdf0e10cSrcweir
209cdf0e10cSrcweirOOO_LIBRARY_PATH_VAR *= LD_LIBRARY_PATH
210