xref: /trunk/main/odk/settings/platform.mk (revision e15a4534)
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)" "FreeBSD_PowerPC64"
38		EXTENSION_PLATFORM=freebsd_powerpc64
39	else
40	ifeq "$(UNOPKG_PLATFORM)" "Linux_x86"
41		EXTENSION_PLATFORM=linux_x86
42	else
43	ifeq "$(UNOPKG_PLATFORM)" "Linux_x86_64"
44		EXTENSION_PLATFORM=linux_x86_64
45	else
46	ifeq "$(UNOPKG_PLATFORM)" "MacOSX_PowerPC"
47		EXTENSION_PLATFORM=macosx_powerpc
48	else
49	ifeq "$(UNOPKG_PLATFORM)" "MacOSX_x86"
50		EXTENSION_PLATFORM=macosx_x86
51	else
52	ifeq "$(UNOPKG_PLATFORM)" "MacOSX_x86_64"
53		EXTENSION_PLATFORM=macosx_x86_64
54	else
55	ifeq "$(UNOPKG_PLATFORM)" "Solaris_SPARC"
56		EXTENSION_PLATFORM=solaris_sparc
57	else
58	ifeq "$(UNOPKG_PLATFORM)" "Solaris_x86"
59		EXTENSION_PLATFORM=solaris_x86
60	else
61	ifeq "$(UNOPKG_PLATFORM)" "Windows"
62		EXTENSION_PLATFORM=windows_x86
63	endif
64	endif
65	endif
66	endif
67	endif
68	endif
69	endif
70	endif
71	endif
72	endif
73endif
74