xref: /AOO41X/main/connectivity/source/dbtools/makefile.mk (revision ddde725d65c83fe3ba1186d46f6e3e08f12ba47e)
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=..$/..
29PRJNAME=connectivity
30TARGET=dbt
31USE_LDUMP2=TRUE
32
33TARGETTYPE=CUI
34USE_DEFFILE=TRUE
35
36# --- Settings ----------------------------------
37
38.INCLUDE :  settings.mk
39.INCLUDE :  $(PRJ)$/dbtools.pmk
40.INCLUDE :  $(PRJ)$/version.mk
41
42LDUMP=ldump2.exe
43
44# --- Library -----------------------------------
45
46LIB1TARGET=$(SLB)$/$(TARGET).lib
47LIB1FILES=\
48        $(SLB)$/sdbcx.lib       \
49        $(SLB)$/commontools.lib \
50        $(SLB)$/sql.lib         \
51        $(SLB)$/simpledbt.lib   \
52        $(SLB)$/cnr.lib
53
54# --- dynamic library ---------------------------
55
56SHL1TARGET= $(DBTOOLS_TARGET)$(DLLPOSTFIX)
57SHL1STDLIBS=\
58    $(CPPULIB)                  \
59    $(CPPUHELPERLIB)            \
60    $(VOSLIB)                   \
61    $(SALLIB)                   \
62    $(JVMACCESSLIB)             \
63    $(UNOTOOLSLIB)              \
64    $(TOOLSLIB)                 \
65    $(COMPHELPERLIB)            \
66    $(I18NISOLANGLIB)
67
68# NETBSD: somewhere we have to instantiate the static data members.
69# NETBSD-1.2.1 doesn't know about weak symbols so the default mechanism for GCC won't work.
70# SCO and MACOSX: the linker does know about weak symbols, but we can't ignore multiple defined symbols
71.IF "$(OS)"=="NETBSD" || "$(OS)"=="SCO" || "$(OS)$(COM)"=="OS2GCC" || "$(OS)"=="MACOSX"
72SHL1STDLIBS+=$(UCBHELPERLIB)
73.ENDIF
74
75#SHL1DEPN=
76SHL1IMPLIB= idbtools
77
78SHL1LIBS=   $(LIB1TARGET)
79SHL1DEF=    $(MISC)$/$(SHL1TARGET).def
80DEF1NAME=   $(SHL1TARGET)
81DEF1DEPN=   $(MISC)$/$(SHL1TARGET).flt \
82            $(LIB1TARGET)
83
84DEFLIB1NAME=$(TARGET)
85DEF1EXPORTFILE= exports.dxp
86
87# --- Targets ----------------------------------
88
89.INCLUDE : target.mk
90
91# --- filter file ------------------------------
92
93$(MISC)$/$(SHL1TARGET).flt: makefile.mk
94    @echo ------------------------------
95    @echo _TI               >$@
96    @echo _real             >>$@
97
98
99ALLTAR : $(MISC)/dbtools.component
100
101$(MISC)/dbtools.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
102        dbtools.component
103    $(XSLTPROC) --nonet --stringparam uri \
104        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
105        $(SOLARENV)/bin/createcomponent.xslt dbtools.component
106