xref: /aoo42x/main/odk/settings/platform.mk (revision 9cb05e42)
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# Map target platform (extension cfg) and extension platform (SDK settings)
23# See:
24# http://wiki.openoffice.org/wiki/Documentation/DevGuide/Extensions/Target_Platform
25# trunk/main/odk/settings/settings.mk
26
27# only make version 3.81 or later accepts the multiple else conditions
28ifeq "$(UNOPKG_PLATFORM)" "FreeBSD_x86"
29	EXTENSION_PLATFORM=freebsd_x86
30else
31	ifeq "$(UNOPKG_PLATFORM)" "FreeBSD_x86_64"
32		EXTENSION_PLATFORM=freebsd_x86_64
33	else
34	ifeq "$(UNOPKG_PLATFORM)" "Linux_PowerPC"
35		EXTENSION_PLATFORM=linux_powerpc
36	else
37	ifeq "$(UNOPKG_PLATFORM)" "Linux_x86"
38		EXTENSION_PLATFORM=linux_x86
39	else
40	ifeq "$(UNOPKG_PLATFORM)" "Linux_x86_64"
41		EXTENSION_PLATFORM=linux_x86_64
42	else
43	ifeq "$(UNOPKG_PLATFORM)" "MacOSX_PowerPC"
44		EXTENSION_PLATFORM=macosx_powerpc
45	else
46	ifeq "$(UNOPKG_PLATFORM)" "MacOSX_x86"
47		EXTENSION_PLATFORM=macosx_x86
48	else
49	ifeq "$(UNOPKG_PLATFORM)" "Solaris_SPARC"
50		EXTENSION_PLATFORM=solaris_sparc
51	else
52	ifeq "$(UNOPKG_PLATFORM)" "Solaris_x86"
53		EXTENSION_PLATFORM=solaris_x86
54	else
55	ifeq "$(UNOPKG_PLATFORM)" "Windows"
56		EXTENSION_PLATFORM=windows_x86
57	endif
58	endif
59	endif
60	endif
61	endif
62	endif
63	endif
64	endif
65	endif
66endif
67
68#ifeq "$(UNOPKG_PLATFORM)" "Linux_SPARC"
69#   EXTENSION_PLATFORM=
70#ifeq "$(UNOPKG_PLATFORM)" "Solaris_SPARC64"
71#   EXTENSION_PLATFORM=
72#ifeq "$(UNOPKG_PLATFORM)" "kFreeBSD_x86"
73#   EXTENSION_PLATFORM=
74#ifeq "$(UNOPKG_PLATFORM)" "kFreeBSD_x86_64"
75#   EXTENSION_PLATFORM=
76