1cdf0e10cSrcweir#************************************************************************* 2cdf0e10cSrcweir# 3cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4cdf0e10cSrcweir# 5cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6cdf0e10cSrcweir# 7cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8cdf0e10cSrcweir# 9cdf0e10cSrcweir# This file is part of OpenOffice.org. 10cdf0e10cSrcweir# 11cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14cdf0e10cSrcweir# 15cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20cdf0e10cSrcweir# 21cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25cdf0e10cSrcweir# 26cdf0e10cSrcweir#************************************************************************* 27cdf0e10cSrcweir 28cdf0e10cSrcweir# fixes for all the libraries that are named with too much creativity and do 29cdf0e10cSrcweir# not follow any of the established nameschemes 30cdf0e10cSrcweir 31cdf0e10cSrcweirifeq ($(OS),LINUX) 32cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst comphelper:libcomphelper%,comphelper:libcomphelp%,$(gb_Library_FILENAMES)) 33cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst cppuhelper:libcppuhelper%,cppuhelper:libuno_cppuhelper%,$(gb_Library_FILENAMES)) 34cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst cppuhelper:libcppuhelper%,cppuhelper:libuno_cppuhelper%,$(gb_Library_FILENAMES)) 35cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst jvmfwk:libuno_jvmfwk%,jvmfwk:libjvmfwk%,$(gb_Library_FILENAMES)) 36cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst jvmfwk:libuno_jvmfwk%,jvmfwk:libjvmfwk%,$(gb_Library_FILENAMES)) 37cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst salhelper:libsalhelper%,salhelper:libuno_salhelper%,$(gb_Library_FILENAMES)) 38cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst salhelper:libsalhelper%,salhelper:libuno_salhelper%,$(gb_Library_FILENAMES)) 39cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst ucbhelper:libucbhelper%,ucbhelper:libucbhelper4%,$(gb_Library_FILENAMES)) 40cdf0e10cSrcweir 41cdf0e10cSrcweirifeq ($(USE_SYSTEM_STL),YES) 42cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst stl:%,stl:libstdc++.so,$(gb_Library_FILENAMES)) 43cdf0e10cSrcweirgb_Library_TARGETS := $(filter-out stl,$(gb_Library_TARGETS)) 44cdf0e10cSrcweirendif 45cdf0e10cSrcweir 46cdf0e10cSrcweirendif 47cdf0e10cSrcweir 48cdf0e10cSrcweir 49cdf0e10cSrcweirifeq ($(OS),MACOSX) 50cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst comphelper:libcomphelper%,comphelper:libcomphelp%,$(gb_Library_FILENAMES)) 51cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst cppuhelper:libcppuhelper%,cppuhelper:libuno_cppuhelper%,$(gb_Library_FILENAMES)) 52cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst jvmfwk:libuno_jvmfwk%,jvmfwk:libjvmfwk%,$(gb_Library_FILENAMES)) 53cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst salhelper:libsalhelper%,salhelper:libuno_salhelper%,$(gb_Library_FILENAMES)) 54cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst ucbhelper:libucbhelper%,ucbhelper:libucbhelper4%,$(gb_Library_FILENAMES)) 55cdf0e10cSrcweir 56cdf0e10cSrcweirifeq ($(USE_SYSTEM_STL),YES) 57cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst stl:%,stl:libstdc++.dylib,$(gb_Library_FILENAMES)) 58cdf0e10cSrcweirgb_Library_TARGETS := $(filter-out stl,$(gb_Library_TARGETS)) 59cdf0e10cSrcweirendif 60cdf0e10cSrcweir 61cdf0e10cSrcweirendif 62cdf0e10cSrcweir 63cdf0e10cSrcweir 64cdf0e10cSrcweirifeq ($(OS),WNT) 65cdf0e10cSrcweirifneq ($(USE_MINGW),) 66cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst comphelper:icomphelper%,comphelper:icomphelp%,$(gb_Library_FILENAMES)) 67cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst cppunit:icppunit%,cppunit:libcppunit.dll$(gb_Library_IARCEXT),$(gb_Library_FILENAMES)) 68cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst cui:icui%,cui:icuin%,$(gb_Library_FILENAMES)) 69cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst i18nisolang1:ii18nisolang1%,i18nisolang1:ii18nisolang%,$(gb_Library_FILENAMES)) 70cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst i18nisolang1:iii18nisolang1%,i18nisolang1:iii18nisolang%,$(gb_Library_FILENAMES)) 71cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst sb:isb%,sb:basic%,$(gb_Library_FILENAMES)) 72cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst sfx:isfx%,sfx:sfx%,$(gb_Library_FILENAMES)) 73cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst svt:isvt%,svt:svtool%,$(gb_Library_FILENAMES)) 74cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst tl:itl%,tl:itools%,$(gb_Library_FILENAMES)) 75cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst vbahelper:ivbahelper%,vbahelper:vbahelper%,$(gb_Library_FILENAMES)) 76cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst vos3:ivos3%,vos3:ivos%,$(gb_Library_FILENAMES)) 77cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst xml2:ixml2%,xml2:libxml2$(gb_Library_IARCEXT),$(gb_Library_FILENAMES)) 78cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst xslt:ixslt%,xslt:libxslt.dll$(gb_Library_IARCEXT),$(gb_Library_FILENAMES)) 79cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst rdf:irdf%,rdf:librdf.dll$(gb_Library_IARCEXT),$(gb_Library_FILENAMES)) 80cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst z:iz%,z:zlib%,$(gb_Library_FILENAMES)) 81cdf0e10cSrcweirifeq ($(gb_PRODUCT),$(true)) 82cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst stl:istl%,stl:stlport_vc71%,$(gb_Library_FILENAMES)) 83cdf0e10cSrcweirelse 84cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst stl:istl%,stl:stlport_vc71_stldebug%,$(gb_Library_FILENAMES)) 85cdf0e10cSrcweirendif 86cdf0e10cSrcweirgb_Library_NOILIBFILENAMES:=\ 877d9c290fSMichael Stahl icule \ 88cdf0e10cSrcweir icuuc \ 89cdf0e10cSrcweir sot \ 90cdf0e10cSrcweir uwinapi \ 91cdf0e10cSrcweir 92cdf0e10cSrcweirgb_Library_FILENAMES := $(filter-out $(foreach lib,$(gb_Library_NOILIBFILENAMES),$(lib):%),$(gb_Library_FILENAMES)) 93cdf0e10cSrcweirgb_Library_FILENAMES += $(foreach lib,$(gb_Library_NOILIBFILENAMES),$(lib):$(lib)$(gb_Library_PLAINEXT)) 94cdf0e10cSrcweir 95cdf0e10cSrcweirgb_Library_ILIBFILENAMES:=\ 967d9c290fSMichael Stahl gdiplus \ 97cdf0e10cSrcweir unicows \ 98cdf0e10cSrcweir uuid \ 99cdf0e10cSrcweir 100cdf0e10cSrcweirgb_Library_DLLFILENAMES := $(filter-out $(foreach lib,$(gb_Library_ILIBFILENAMES),$(lib):%),$(gb_Library_DLLFILENAMES)) 101cdf0e10cSrcweirgb_Library_DLLFILENAMES += $(foreach lib,$(gb_Library_ILIBFILENAMES),$(lib):$(PSDK_HOME)/lib/$(lib)$(gb_Library_ILIBEXT)) 102cdf0e10cSrcweir 103cdf0e10cSrcweirgb_Library_DLLFILENAMES := $(patsubst comphelper:comphelper%,comphelper:comphelp%,$(gb_Library_DLLFILENAMES)) 104*04bbf639SMichael Stahlgb_Library_DLLFILENAMES := $(patsubst icule:icule%,icule:icule40%,$(gb_Library_DLLFILENAMES)) 105cdf0e10cSrcweirgb_Library_DLLFILENAMES := $(patsubst icuuc:icuuc%,icuuc:icuuc40%,$(gb_Library_DLLFILENAMES)) 106*04bbf639SMichael Stahlgb_Library_DLLFILENAMES := $(patsubst jvmaccess:jvmaccess%,jvmaccess:jvmaccess$(gb_Library_MAJORVER)%,$(gb_Library_DLLFILENAMES)) 107cdf0e10cSrcweirgb_Library_DLLFILENAMES := $(patsubst ucbhelper:ucbhelper%,ucbhelper:ucbhelper4%,$(gb_Library_DLLFILENAMES)) 108cdf0e10cSrcweirgb_Library_DLLFILENAMES := $(patsubst z:z%,z:zlib%,$(gb_Library_DLLFILENAMES)) 109cdf0e10cSrcweir 110cdf0e10cSrcweirifeq ($(USE_SYSTEM_STL),YES) 111cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst stl:%,stl:$(gb_Library_IARCSYSPRE)stdc++_s$(gb_Library_IARCSYSPRE),$(gb_Library_FILENAMES)) 112cdf0e10cSrcweirgb_Library_TARGETS := $(filter-out stl,$(gb_Library_TARGETS)) 113cdf0e10cSrcweirendif 114cdf0e10cSrcweir 115cdf0e10cSrcweirelse 116cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst comphelper:icomphelper%,comphelper:icomphelp%,$(gb_Library_FILENAMES)) 117cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst cppunit:icppunit%,cppunit:icppunit_dll%,$(gb_Library_FILENAMES)) 118cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst cui:icui%,cui:icuin%,$(gb_Library_FILENAMES)) 119cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst i18nisolang1:ii18nisolang1%,i18nisolang1:ii18nisolang%,$(gb_Library_FILENAMES)) 120cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst i18nisolang1:iii18nisolang1%,i18nisolang1:iii18nisolang%,$(gb_Library_FILENAMES)) 121cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst sb:isb%,sb:basic%,$(gb_Library_FILENAMES)) 122cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst sfx:isfx%,sfx:sfx%,$(gb_Library_FILENAMES)) 123cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst svt:isvt%,svt:svtool%,$(gb_Library_FILENAMES)) 124cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst tl:itl%,tl:itools%,$(gb_Library_FILENAMES)) 125cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst vbahelper:ivbahelper%,vbahelper:vbahelper%,$(gb_Library_FILENAMES)) 126cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst vos3:ivos3%,vos3:ivos%,$(gb_Library_FILENAMES)) 127cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst xml2:ixml2%,xml2:libxml2%,$(gb_Library_FILENAMES)) 128cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst xslt:ixslt%,xslt:libxslt%,$(gb_Library_FILENAMES)) 129cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst rdf:irdf%,rdf:librdf%,$(gb_Library_FILENAMES)) 130cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst z:iz%,z:zlib%,$(gb_Library_FILENAMES)) 1310b220f58SEike Rathkegb_StaticLibrary_FILENAMES := $(patsubst graphite:graphite%,graphite:graphite_dll%,$(gb_StaticLibrary_FILENAMES)) 132cdf0e10cSrcweirifeq ($(gb_PRODUCT),$(true)) 133cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst stl:istl%,stl:stlport_vc71%,$(gb_Library_FILENAMES)) 134cdf0e10cSrcweirelse 135cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst stl:istl%,stl:stlport_vc71_stldebug%,$(gb_Library_FILENAMES)) 136cdf0e10cSrcweirendif 137cdf0e10cSrcweirgb_Library_NOILIBFILENAMES:=\ 138cdf0e10cSrcweir advapi32 \ 139cdf0e10cSrcweir gdi32 \ 140cdf0e10cSrcweir gdiplus \ 141cdf0e10cSrcweir gnu_getopt \ 142cdf0e10cSrcweir icuuc \ 143cdf0e10cSrcweir icule \ 144cdf0e10cSrcweir imm32\ 145cdf0e10cSrcweir kernel32 \ 146cdf0e10cSrcweir msimg32 \ 147cdf0e10cSrcweir msvcrt \ 148cdf0e10cSrcweir mpr \ 149cdf0e10cSrcweir oldnames \ 150cdf0e10cSrcweir ole32 \ 151cdf0e10cSrcweir oleaut32 \ 152cdf0e10cSrcweir shell32 \ 153cdf0e10cSrcweir sot \ 154cdf0e10cSrcweir unicows \ 155cdf0e10cSrcweir user32 \ 156cdf0e10cSrcweir uuid \ 157cdf0e10cSrcweir uwinapi \ 158cdf0e10cSrcweir winspool \ 159cdf0e10cSrcweir 160cdf0e10cSrcweirgb_Library_FILENAMES := $(filter-out $(foreach lib,$(gb_Library_NOILIBFILENAMES),$(lib):%),$(gb_Library_FILENAMES)) 161cdf0e10cSrcweirgb_Library_FILENAMES += $(foreach lib,$(gb_Library_NOILIBFILENAMES),$(lib):$(lib)$(gb_Library_PLAINEXT)) 162cdf0e10cSrcweirifneq ($(gb_PRODUCT),$(true)) 163cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst msvcrt:msvcrt%,msvcrt:msvcrtd%,$(gb_Library_FILENAMES)) 164cdf0e10cSrcweirendif 165cdf0e10cSrcweir 166cdf0e10cSrcweirgb_Library_DLLFILENAMES := $(patsubst comphelper:comphelper%,comphelper:comphelp%,$(gb_Library_DLLFILENAMES)) 167cdf0e10cSrcweirgb_Library_DLLFILENAMES := $(patsubst icuuc:icuuc%,icuuc:icuuc40%,$(gb_Library_DLLFILENAMES)) 168cdf0e10cSrcweirgb_Library_DLLFILENAMES := $(patsubst ucbhelper:ucbhelper%,ucbhelper:ucbhelper4%,$(gb_Library_DLLFILENAMES)) 169cdf0e10cSrcweirgb_Library_DLLFILENAMES := $(patsubst z:z%,z:zlib%,$(gb_Library_DLLFILENAMES)) 170cdf0e10cSrcweir 171cdf0e10cSrcweirendif 172cdf0e10cSrcweir 173cdf0e10cSrcweirendif 174cdf0e10cSrcweir 175cdf0e10cSrcweirifeq ($(OS),SOLARIS) 176cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst comphelper:libcomphelper%,comphelper:libcomphelp%,$(gb_Library_FILENAMES)) 177cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst cppuhelper:libcppuhelper%,cppuhelper:libuno_cppuhelper%,$(gb_Library_FILENAMES)) 178cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst ucbhelper:libucbhelper%,ucbhelper:libucbhelper4%,$(gb_Library_FILENAMES)) 179cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst jvmfwk:libuno_jvmfwk%,jvmfwk:libjvmfwk%,$(gb_Library_FILENAMES)) 180cdf0e10cSrcweirgb_Library_FILENAMES := $(patsubst salhelper:libsalhelper%,salhelper:libuno_salhelper%,$(gb_Library_FILENAMES)) 181cdf0e10cSrcweir#$(info libnames: $(gb_Library_FILENAMES)) 182cdf0e10cSrcweir 183cdf0e10cSrcweirendif 184cdf0e10cSrcweir 185cdf0e10cSrcweir# we do not require a known rule for these, when using system libs 186cdf0e10cSrcweir 187cdf0e10cSrcweirifeq ($(USE_SYSTEM_STL),YES) 188cdf0e10cSrcweirgb_Library_TARGETS := $(filter-out stl,$(gb_Library_TARGETS)) 189cdf0e10cSrcweirendif 190cdf0e10cSrcweir 191cdf0e10cSrcweirifeq ($(SYSTEM_LIBXML),YES) 192cdf0e10cSrcweirgb_Library_TARGETS := $(filter-out xml2,$(gb_Library_TARGETS)) 193cdf0e10cSrcweirendif 194cdf0e10cSrcweir 195cdf0e10cSrcweirifeq ($(SYSTEM_LIBXSLT),YES) 196cdf0e10cSrcweirgb_Library_TARGETS := $(filter-out xslt,$(gb_Library_TARGETS)) 197cdf0e10cSrcweirendif 198cdf0e10cSrcweir 199cdf0e10cSrcweirifeq ($(SYSTEM_REDLAND),YES) 200cdf0e10cSrcweirgb_Library_TARGETS := $(filter-out rdf,$(gb_Library_TARGETS)) 201cdf0e10cSrcweirendif 202cdf0e10cSrcweir 203cdf0e10cSrcweirifeq ($(SYSTEM_ICU),YES) 204cdf0e10cSrcweirgb_Library_TARGETS := $(filter-out icuuc,$(gb_Library_TARGETS)) 205cdf0e10cSrcweirendif 206cdf0e10cSrcweir 207cdf0e10cSrcweir# vim: set noet sw=4 ts=4: 208