1#************************************************************************* 2# 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# Copyright 2000, 2010 Oracle and/or its affiliates. 6# 7# OpenOffice.org - a multi-platform office productivity suite 8# 9# This file is part of OpenOffice.org. 10# 11# OpenOffice.org is free software: you can redistribute it and/or modify 12# it under the terms of the GNU Lesser General Public License version 3 13# only, as published by the Free Software Foundation. 14# 15# OpenOffice.org is distributed in the hope that it will be useful, 16# but WITHOUT ANY WARRANTY; without even the implied warranty of 17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18# GNU Lesser General Public License version 3 for more details 19# (a copy is included in the LICENSE file that accompanied this code). 20# 21# You should have received a copy of the GNU Lesser General Public License 22# version 3 along with OpenOffice.org. If not, see 23# <http://www.openoffice.org/license.html> 24# for a copy of the LGPLv3 License. 25# 26#************************************************************************* 27 28PRJ=..$/..$/.. 29PRJINC=..$/.. 30PRJNAME=connectivity 31TARGET=kab 32TARGET2=$(TARGET)drv 33 34ENABLE_EXCEPTIONS=TRUE 35VISIBILITY_HIDDEN=TRUE 36 37# --- Settings ---------------------------------- 38 39.INCLUDE : $(PRJ)$/makefile.pmk 40.INCLUDE : $(PRJ)$/version.mk 41 42.IF "$(GUI)" == "UNX" 43.IF "$(ENABLE_KAB)" == "TRUE" 44 45CFLAGS+=$(KDE_CFLAGS) 46 47.IF "$(KDE_ROOT)"!="" 48EXTRALIBPATHS+=-L$(KDE_ROOT)$/lib 49.IF "$(OS)$(CPU)" == "LINUXX" 50EXTRALIBPATHS+=-L$(KDE_ROOT)$/lib64 51.ENDIF 52.ENDIF 53 54# === KAB base library ========================== 55 56# --- Files ------------------------------------- 57 58SLOFILES= \ 59 $(SLO)$/KDriver.obj \ 60 $(SLO)$/KServices.obj 61 62DEPOBJFILES= \ 63 $(SLO2FILES) 64 65# --- Library ----------------------------------- 66 67SHL1VERSIONMAP=$(SOLARENV)/src/component.map 68 69SHL1TARGET= $(TARGET)$(KAB_MAJOR) 70SHL1OBJS=$(SLOFILES) 71SHL1STDLIBS=\ 72 $(CPPULIB) \ 73 $(CPPUHELPERLIB) \ 74 $(DBTOOLSLIB) \ 75 $(SALLIB) 76 77SHL1DEPN= 78SHL1IMPLIB= i$(TARGET) 79 80SHL1DEF= $(MISC)$/$(SHL1TARGET).def 81 82DEF1NAME= $(SHL1TARGET) 83 84# === KAB impl library ========================== 85 86# --- Files ------------------------------------- 87 88SLO2FILES=\ 89 $(SLO)$/KColumns.obj \ 90 $(SLO)$/KTable.obj \ 91 $(SLO)$/KTables.obj \ 92 $(SLO)$/KCatalog.obj \ 93 $(SLO)$/KResultSet.obj \ 94 $(SLO)$/KStatement.obj \ 95 $(SLO)$/KPreparedStatement.obj \ 96 $(SLO)$/KDatabaseMetaData.obj \ 97 $(SLO)$/KConnection.obj \ 98 $(SLO)$/KResultSetMetaData.obj \ 99 $(SLO)$/kcondition.obj \ 100 $(SLO)$/korder.obj \ 101 $(SLO)$/kfields.obj \ 102 $(SLO)$/KDEInit.obj 103 104KAB_LIB=$(KDE_LIBS) -lkabc 105 106# --- Library ----------------------------------- 107 108SHL2VERSIONMAP=$(TARGET2).map 109 110SHL2TARGET= $(TARGET2)$(KAB_MAJOR) 111SHL2OBJS=$(SLO2FILES) 112SHL2STDLIBS=\ 113 $(CPPULIB) \ 114 $(CPPUHELPERLIB) \ 115 $(VOSLIB) \ 116 $(SALLIB) \ 117 $(DBTOOLSLIB) \ 118 $(COMPHELPERLIB) \ 119 $(KAB_LIB) 120 121SHL2DEPN= 122SHL2IMPLIB= i$(TARGET2) 123 124SHL2DEF= $(MISC)$/$(SHL2TARGET).def 125 126DEF2NAME= $(SHL2TARGET) 127 128# --- Targets ----------------------------------- 129.ELSE # "$(ENABLE_KAB)" == "TRUE" 130dummy: 131 @echo KDE Addressbook disabled - nothing to build 132.ENDIF 133 134.ELSE # "$(GUI)" == "UNX" 135dummy: 136 @echo "Nothing to build for GUI $(GUI)" 137.ENDIF 138 139.INCLUDE : $(PRJ)$/target.pmk 140 141 142ALLTAR : $(MISC)/kab1.component 143 144$(MISC)/kab1.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \ 145 kab1.component 146 $(XSLTPROC) --nonet --stringparam uri \ 147 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \ 148 $(SOLARENV)/bin/createcomponent.xslt kab1.component 149