| Takeshi Abe | b2bd33e | 2011-08-10 02:12:48 +0900 | [diff] [blame] | 1 | # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 2 | # |
| Michael Meeks | 1e4422a | 2013-05-16 21:56:04 +0100 | [diff] [blame] | 3 | # This file is part of the LibreOffice project. |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 4 | # |
| Michael Meeks | 1e4422a | 2013-05-16 21:56:04 +0100 | [diff] [blame] | 5 | # This Source Code Form is subject to the terms of the Mozilla Public |
| 6 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
| 7 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 8 | # |
| Michael Meeks | 1e4422a | 2013-05-16 21:56:04 +0100 | [diff] [blame] | 9 | # This file incorporates work covered by the following license notice: |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 10 | # |
| Michael Meeks | 1e4422a | 2013-05-16 21:56:04 +0100 | [diff] [blame] | 11 | # Licensed to the Apache Software Foundation (ASF) under one or more |
| 12 | # contributor license agreements. See the NOTICE file distributed |
| 13 | # with this work for additional information regarding copyright |
| 14 | # ownership. The ASF licenses this file to you under the Apache |
| 15 | # License, Version 2.0 (the "License"); you may not use this file |
| 16 | # except in compliance with the License. You may obtain a copy of |
| 17 | # the License at http://www.apache.org/licenses/LICENSE-2.0 . |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 18 | # |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 19 | |
| Matúš Kukan | 944f3a6 | 2013-06-14 12:48:20 +0200 | [diff] [blame] | 20 | # fixes for executables |
| 21 | |
| 22 | gb_Executable_FILENAMES := $(foreach group,$(gb_Executable_VALIDGROUPS),\ |
| 23 | $(foreach exe,$(gb_Executable_$(group)),$(exe):$(exe)$(gb_Executable_EXT))) |
| 24 | |
| Tor Lillqvist | 59622da | 2014-08-08 11:28:49 +0300 | [diff] [blame] | 25 | ifneq (,$(filter-out MACOSX WNT,$(OS))) |
| Matúš Kukan | 944f3a6 | 2013-06-14 12:48:20 +0200 | [diff] [blame] | 26 | gb_Executable_FILENAMES := $(patsubst uno:uno,uno:uno.bin,$(gb_Executable_FILENAMES)) |
| Tor Lillqvist | 59622da | 2014-08-08 11:28:49 +0300 | [diff] [blame] | 27 | endif |
| Stephan Bergmann | 57e6d74 | 2015-02-09 18:06:48 +0100 | [diff] [blame] | 28 | gb_Executable_FILENAMES := $(patsubst unopkg_bin:unopkg_bin%,unopkg_bin:unopkg$(if $(filter-out MACOSX,$(OS)),.bin),$(gb_Executable_FILENAMES)) |
| Michael Stahl | 764e688 | 2013-09-21 01:34:26 +0200 | [diff] [blame] | 29 | gb_Executable_FILENAMES := $(patsubst unopkg_com:unopkg_com%,unopkg_com:unopkg.com,$(gb_Executable_FILENAMES)) |
| Stephan Bergmann | 69858a9 | 2015-11-27 15:43:37 +0100 | [diff] [blame] | 30 | ifneq ($(OS),MACOSX) |
| Matúš Kukan | 9555b5b | 2013-06-14 12:48:20 +0200 | [diff] [blame] | 31 | gb_Executable_FILENAMES := $(patsubst gengal:gengal,gengal:gengal.bin,$(gb_Executable_FILENAMES)) |
| Stephan Bergmann | 69858a9 | 2015-11-27 15:43:37 +0100 | [diff] [blame] | 32 | endif |
| Matúš Kukan | 944f3a6 | 2013-06-14 12:48:20 +0200 | [diff] [blame] | 33 | |
| Stephan Bergmann | 07ec7b1 | 2013-09-11 09:05:31 +0200 | [diff] [blame] | 34 | ifeq ($(OS),MACOSX) |
| Michael Stahl | 764e688 | 2013-09-21 01:34:26 +0200 | [diff] [blame] | 35 | gb_Executable_FILENAMES := $(patsubst soffice_bin:soffice_bin,soffice_bin:soffice,$(gb_Executable_FILENAMES)) |
| 36 | else |
| 37 | gb_Executable_FILENAMES := $(patsubst soffice_bin:soffice_bin%,soffice_bin:soffice.bin,$(gb_Executable_FILENAMES)) |
| Stephan Bergmann | 07ec7b1 | 2013-09-11 09:05:31 +0200 | [diff] [blame] | 38 | endif |
| 39 | |
| Matúš Kukan | 944f3a6 | 2013-06-14 12:48:20 +0200 | [diff] [blame] | 40 | gb_Executable_FILENAMES_FOR_BUILD := $(subst $(gb_Executable_EXT),$(gb_Executable_EXT_for_build),$(gb_Executable_FILENAMES)) |
| 41 | |
| Stephan Bergmann | a382dad | 2013-09-14 18:08:57 +0200 | [diff] [blame] | 42 | # fixes for .jnilibs on Mac OS X that are not also needed as .dylibs: |
| 43 | ifeq ($(OS),MACOSX) |
| 44 | gb_Library_FILENAMES := \ |
| 45 | $(subst jpipe:libjpipe.dylib,jpipe:libjpipe.jnilib,$(gb_Library_FILENAMES)) |
| 46 | gb_Library_FILENAMES := \ |
| 47 | $(subst juh:libjuh.dylib,juh:libjuh.jnilib,$(gb_Library_FILENAMES)) |
| 48 | gb_Library_FILENAMES := \ |
| 49 | $(subst hsqldb:libhsqldb.dylib,hsqldb:libhsqldb.jnilib,$(gb_Library_FILENAMES)) |
| 50 | endif |
| 51 | |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 52 | # fixes for all the libraries that are named with too much creativity and do |
| 53 | # not follow any of the established nameschemes |
| 54 | |
| Francois Tigeot | faae793 | 2011-03-21 23:21:20 +0100 | [diff] [blame] | 55 | # Make has no support for 'or' clauses in conditionals, |
| 56 | # we use a filter expression instead. |
| Matúš Kukan | 4361791 | 2011-08-26 16:25:45 +0200 | [diff] [blame] | 57 | ifneq (,$(filter SOLARIS GCC,$(OS) $(COM))) |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 58 | gb_Library_FILENAMES := $(patsubst cppuhelper:libcppuhelper%,cppuhelper:libuno_cppuhelper%,$(gb_Library_FILENAMES)) |
| Matúš Kukan | 051fdda | 2011-12-17 14:55:08 +0100 | [diff] [blame] | 59 | gb_Library_FILENAMES := $(patsubst purpenvhelper:libpurpen%,purpenvhelper:libuno_purpen%,$(gb_Library_FILENAMES)) |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 60 | gb_Library_FILENAMES := $(patsubst salhelper:libsalhelper%,salhelper:libuno_salhelper%,$(gb_Library_FILENAMES)) |
| David Ostrovsky | e16ac69 | 2012-05-27 22:50:41 +0200 | [diff] [blame] | 61 | |
| 62 | ifeq ($(OS),MACOSX) |
| Stephan Bergmann | fa20068 | 2012-06-15 16:46:44 +0200 | [diff] [blame] | 63 | # libpyuno_wrapper.dylib => pyuno.so |
| 64 | gb_Library_FILENAMES := $(patsubst pyuno_wrapper:libpyuno_wrapper.dylib,pyuno_wrapper:pyuno.so,$(gb_Library_FILENAMES)) |
| David Ostrovsky | e16ac69 | 2012-05-27 22:50:41 +0200 | [diff] [blame] | 65 | else |
| 66 | # libpyuno_wrapper.so => pyuno.so |
| 67 | gb_Library_FILENAMES := $(patsubst pyuno_wrapper:libpyuno_wrapper.so,pyuno_wrapper:pyuno.so,$(gb_Library_FILENAMES)) |
| 68 | endif |
| 69 | |
| Tor Lillqvist | 3182631 | 2012-02-20 11:15:02 +0200 | [diff] [blame] | 70 | ifneq ($(OS),ANDROID) |
| Caolán McNamara | 8d7e8a0 | 2012-04-13 11:13:19 +0100 | [diff] [blame] | 71 | gb_Library_FILENAMES := $(patsubst unobootstrapprotector:libuno%,unobootstrapprotector:uno%,$(gb_Library_FILENAMES)) |
| Matúš Kukan | d06a78c | 2012-02-10 00:16:55 +0100 | [diff] [blame] | 72 | gb_Library_FILENAMES := $(patsubst unoexceptionprotector:libuno%,unoexceptionprotector:uno%,$(gb_Library_FILENAMES)) |
| Tor Lillqvist | 3182631 | 2012-02-20 11:15:02 +0200 | [diff] [blame] | 73 | endif |
| Bjoern Michaelsen | 902f9da | 2011-06-20 13:24:08 +0200 | [diff] [blame] | 74 | endif |
| Mathias Bauer | 9048591 | 2011-03-16 10:26:30 +0100 | [diff] [blame] | 75 | |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 76 | ifeq ($(OS),WNT) |
| Michael Stahl | d263c22 | 2013-09-17 19:50:20 +0200 | [diff] [blame] | 77 | gb_Library_FILENAMES := $(patsubst z:z%,z:zlib%,$(gb_Library_FILENAMES)) |
| 78 | gb_Library_FILENAMES := $(patsubst rdf:rdf%,rdf:librdf%,$(gb_Library_FILENAMES)) |
| Mathias Bauer | 9048591 | 2011-03-16 10:26:30 +0100 | [diff] [blame] | 79 | |
| David Ostrovsky | e16ac69 | 2012-05-27 22:50:41 +0200 | [diff] [blame] | 80 | # libpyuno_wrapper.dll => pyuno.pyd |
| Michael Stahl | d263c22 | 2013-09-17 19:50:20 +0200 | [diff] [blame] | 81 | gb_Library_FILENAMES := $(patsubst pyuno:pyuno.dll,pyuno:pyuno$(if $(MSVC_USE_DEBUG_RUNTIME),_d).pyd,$(gb_Library_FILENAMES)) |
| David Ostrovsky | e16ac69 | 2012-05-27 22:50:41 +0200 | [diff] [blame] | 82 | |
| Michael Stahl | d263c22 | 2013-09-17 19:50:20 +0200 | [diff] [blame] | 83 | gb_Library_ILIBFILENAMES := $(patsubst z:z%,z:zlib%,$(gb_Library_ILIBFILENAMES)) |
| Bjoern Michaelsen | 6f0d3f2 | 2011-06-18 14:12:16 +0200 | [diff] [blame] | 84 | |
| Michael Stahl | 01df12e | 2013-04-09 12:33:46 +0200 | [diff] [blame] | 85 | # these have prefix "lib" instead of "i" |
| 86 | gb_Library_LIBLIBFILENAMES := \ |
| Michael Stahl | 01df12e | 2013-04-09 12:33:46 +0200 | [diff] [blame] | 87 | rdf \ |
| Michael Stahl | 01df12e | 2013-04-09 12:33:46 +0200 | [diff] [blame] | 88 | |
| Michael Stahl | d263c22 | 2013-09-17 19:50:20 +0200 | [diff] [blame] | 89 | gb_Library_ILIBFILENAMES := \ |
| Michael Stahl | 5f9cda2 | 2013-11-01 15:43:47 +0100 | [diff] [blame] | 90 | $(filter-out $(foreach lib,$(gb_Library_LIBLIBFILENAMES),$(lib):%) \ |
| Michael Stahl | d263c22 | 2013-09-17 19:50:20 +0200 | [diff] [blame] | 91 | ,$(gb_Library_ILIBFILENAMES)) |
| 92 | gb_Library_ILIBFILENAMES += \ |
| Michael Stahl | 01df12e | 2013-04-09 12:33:46 +0200 | [diff] [blame] | 93 | $(foreach lib,$(gb_Library_LIBLIBFILENAMES),$(lib):lib$(lib)$(gb_Library_PLAINEXT)) |
| Mathias Bauer | 9048591 | 2011-03-16 10:26:30 +0100 | [diff] [blame] | 94 | |
| Michael Stahl | d263c22 | 2013-09-17 19:50:20 +0200 | [diff] [blame] | 95 | gb_Library_FILENAMES := $(filter-out $(foreach lib,$(gb_Library_LIBLIBFILENAMES),$(lib):%),$(gb_Library_FILENAMES)) |
| 96 | gb_Library_FILENAMES += $(foreach lib,$(gb_Library_LIBLIBFILENAMES),$(lib):lib$(lib).dll) |
| Michael Stahl | d263c22 | 2013-09-17 19:50:20 +0200 | [diff] [blame] | 97 | |
| Mathias Bauer | 9048591 | 2011-03-16 10:26:30 +0100 | [diff] [blame] | 98 | endif # ifeq ($(OS),WNT) |
| Bjoern Michaelsen | 56070c6 | 2010-11-13 09:41:56 +0100 | [diff] [blame] | 99 | |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 100 | # vim: set noet sw=4 ts=4: |