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=macab 32TARGET2=$(TARGET)drv 33VISIBILITY_HIDDEN=TRUE 34ENABLE_EXCEPTIONS=TRUE 35 36# --- Settings ---------------------------------- 37 38.INCLUDE : $(PRJ)$/makefile.pmk 39.INCLUDE : $(PRJ)$/version.mk 40 41.IF "$(GUI)" == "UNX" 42.IF "$(OS)" == "MACOSX" 43 44# === MACAB base library ========================== 45 46# --- Files ------------------------------------- 47 48SLOFILES= \ 49 $(SLO)$/MacabDriver.obj \ 50 $(SLO)$/MacabServices.obj 51 52DEPOBJFILES= \ 53 $(SLO2FILES) 54 55# --- Library ----------------------------------- 56 57SHL1TARGET= $(TARGET)$(MACAB_MAJOR) 58SHL1OBJS=$(SLOFILES) 59SHL1STDLIBS=\ 60 $(CPPULIB) \ 61 $(CPPUHELPERLIB) \ 62 $(DBTOOLSLIB) \ 63 $(SALLIB) 64 65SHL1DEPN= 66SHL1IMPLIB= i$(TARGET) 67 68SHL1DEF= $(MISC)$/$(SHL1TARGET).def 69 70DEF1NAME= $(SHL1TARGET) 71 72# === MACAB impl library ========================== 73 74# --- Files ------------------------------------- 75 76SLO2FILES=\ 77 $(SLO)$/MacabColumns.obj \ 78 $(SLO)$/MacabTable.obj \ 79 $(SLO)$/MacabTables.obj \ 80 $(SLO)$/MacabCatalog.obj \ 81 $(SLO)$/MacabResultSet.obj \ 82 $(SLO)$/MacabStatement.obj \ 83 $(SLO)$/MacabPreparedStatement.obj \ 84 $(SLO)$/MacabDatabaseMetaData.obj \ 85 $(SLO)$/MacabConnection.obj \ 86 $(SLO)$/MacabResultSetMetaData.obj \ 87 $(SLO)$/macabcondition.obj \ 88 $(SLO)$/macaborder.obj \ 89 $(SLO)$/MacabRecord.obj \ 90 $(SLO)$/MacabRecords.obj \ 91 $(SLO)$/MacabHeader.obj \ 92 $(SLO)$/MacabGroup.obj \ 93 $(SLO)$/MacabAddressBook.obj 94 95MACAB_LIB=-framework Carbon -framework AddressBook 96 97# --- Library ----------------------------------- 98 99SHL2TARGET= $(TARGET2)$(MACAB_MAJOR) 100SHL2OBJS=$(SLO2FILES) 101SHL2STDLIBS=\ 102 $(CPPULIB) \ 103 $(CPPUHELPERLIB) \ 104 $(VOSLIB) \ 105 $(SALLIB) \ 106 $(DBTOOLSLIB) \ 107 $(COMPHELPERLIB) \ 108 $(MACAB_LIB) 109 110SHL2DEPN= 111SHL2IMPLIB= i$(TARGET2) 112 113SHL2DEF= $(MISC)$/$(SHL2TARGET).def 114 115DEF2NAME= $(SHL2TARGET) 116 117# --- Targets ----------------------------------- 118.ELSE # "$(OS)" == "MACOSX" 119dummy: 120 @echo Not using Mac OS X - nothing to build 121.ENDIF 122 123.ELSE # "$(GUI)" == "UNX" 124dummy: 125 @echo "Nothing to build for GUI $(GUI)" 126.ENDIF 127 128.INCLUDE : $(PRJ)$/target.pmk 129 130 131ALLTAR : $(MISC)/macab1.component 132 133$(MISC)/macab1.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \ 134 macab1.component 135 $(XSLTPROC) --nonet --stringparam uri \ 136 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \ 137 $(SOLARENV)/bin/createcomponent.xslt macab1.component 138