xref: /aoo41x/main/dbaccess/util/makefile.mk (revision cdf0e10c)
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=dbaccess
30TARGET=dba
31TARGET2=dbu
32TARGET3=sdbt
33USE_DEFFILE=TRUE
34GEN_HID=TRUE
35GEN_HID_OTHER=TRUE
36
37# --- Settings ----------------------------------
38
39.INCLUDE :	settings.mk
40
41LDUMP=ldump2.exe
42
43# --- database core (dba) -----------------------------------
44.IF "$(L10N_framework)"==""
45LIB1TARGET=$(SLB)$/$(TARGET).lib
46LIB1FILES=\
47		$(SLB)$/api.lib	\
48		$(SLB)$/dataaccess.lib	\
49		$(SLB)$/recovery.lib	\
50		$(SLB)$/misc.lib	\
51		$(SLB)$/core_resource.lib
52
53SHL1TARGET=$(TARGET)$(DLLPOSTFIX)
54
55SHL1STDLIBS= \
56		$(SVTOOLLIB) \
57		$(VCLLIB) \
58		$(UNOTOOLSLIB) \
59		$(TOOLSLIB) \
60		$(I18NISOLANGLIB) \
61		$(DBTOOLSLIB) \
62		$(COMPHELPERLIB) \
63		$(CPPUHELPERLIB) \
64		$(UCBHELPERLIB) \
65		$(SVLLIB)	\
66		$(CPPULIB) \
67		$(SALLIB) \
68		$(SFXLIB) \
69		$(BASICLIB) \
70		$(FWELIB) \
71        $(SALHELPERLIB) \
72        $(XMLOFFLIB)
73
74SHL1DEPN=
75SHL1IMPLIB=i$(TARGET)
76SHL1LIBS=$(LIB1TARGET)
77SHL1DEF=$(MISC)$/$(SHL1TARGET).def
78DEF1NAME=$(SHL1TARGET)
79DEFLIB1NAME=$(TARGET)
80DEF1DEPN=	$(MISC)$/$(SHL1TARGET).flt \
81			$(SLB)$/$(TARGET).lib
82SHL1USE_EXPORTS=name
83
84.ENDIF
85# --- .res file ----------------------------------------------------------
86
87RES1FILELIST=\
88	$(SRS)$/core_strings.srs
89
90RESLIB1NAME=$(TARGET)
91RESLIB1IMAGES=$(PRJ)$/res
92RESLIB1SRSFILES=$(RES1FILELIST)
93
94# --- database ui (dbu) -----------------------------------
95.IF "$(L10N_framework)"==""
96
97LIB2TARGET=$(SLB)$/$(TARGET2).lib
98LIB2FILES=\
99		$(SLB)$/relationdesign.lib	\
100		$(SLB)$/tabledesign.lib		\
101		$(SLB)$/querydesign.lib		\
102		$(SLB)$/uimisc.lib			\
103		$(SLB)$/uidlg.lib			\
104		$(SLB)$/dbushared.lib		\
105		$(SLB)$/browser.lib			\
106		$(SLB)$/uiuno.lib			\
107		$(SLB)$/app.lib				\
108		$(SLB)$/uicontrols.lib
109
110SHL2TARGET=$(TARGET2)$(DLLPOSTFIX)
111
112SHL2STDLIBS= \
113		$(SVXCORELIB)				\
114		$(SVXLIB)				\
115		$(SFXLIB)				\
116		$(SVTOOLLIB)			\
117		$(FWELIB)				\
118		$(TKLIB)				\
119		$(VCLLIB)				\
120		$(SVLLIB)				\
121		$(SOTLIB)				\
122		$(UNOTOOLSLIB)			\
123		$(TOOLSLIB)				\
124		$(UCBHELPERLIB) 		\
125		$(DBTOOLSLIB)			\
126		$(COMPHELPERLIB)		\
127		$(CPPUHELPERLIB)		\
128		$(CPPULIB)				\
129		$(SO2LIB)				\
130		$(VOSLIB)				\
131		$(SALLIB)
132
133.IF "$(GUI)"=="OS2"
134SHL2STDLIBS+=	$(LB)$/i$(TARGET).lib
135SHL2DEPN=$(LB)$/i$(TARGET).lib
136.ELIF "$(GUI)"!="WNT" || "$(COM)"=="GCC"
137SHL2STDLIBS+= \
138		-l$(TARGET)$(DLLPOSTFIX)
139SHL2DEPN=$(SHL1TARGETN)
140.ELSE
141SHL2STDLIBS+= \
142		$(LB)$/i$(TARGET).lib
143SHL2DEPN=$(LB)$/i$(TARGET).lib
144.ENDIF
145
146SHL2IMPLIB=i$(TARGET2)
147SHL2LIBS=$(LIB2TARGET)
148SHL2DEF=$(MISC)$/$(SHL2TARGET).def
149DEF2NAME=$(SHL2TARGET)
150DEFLIB2NAME=$(TARGET2)
151DEF2DEPN=	$(MISC)$/$(SHL2TARGET).flt \
152			$(SLB)$/$(TARGET2).lib
153SHL2USE_EXPORTS=name
154
155ALL: \
156	$(LIB1TARGET)	\
157	$(LIB2TARGET)	\
158	ALLTAR
159
160.ENDIF
161# --- .res file ----------------------------------------------------------
162
163RES2FILELIST=\
164	$(SRS)$/uidlg.srs				\
165	$(SRS)$/app.srs					\
166	$(SRS)$/uicontrols.srs			\
167	$(SRS)$/browser.srs				\
168	$(SRS)$/uiuno.srs				\
169	$(SRS)$/querydesign.srs			\
170	$(SRS)$/tabledesign.srs			\
171	$(SRS)$/relationdesign.srs		\
172	$(SRS)$/uiimglst.srs			\
173	$(SRS)$/uimisc.srs
174
175.IF "$(GUI)"=="WNT"
176#needed by 		$(SLO)$/adodatalinks.obj
177SHL2STDLIBS+=		$(OLE32LIB) \
178					$(OLEAUT32LIB) \
179					$(UUIDLIB)
180.ENDIF
181
182RESLIB2NAME=$(TARGET2)
183RESLIB2IMAGES=$(PRJ)$/res
184RESLIB2SRSFILES=$(RES2FILELIST)
185
186# --- database tools (sdbt) -----------------------------------
187.IF "$(L10N_framework)"==""
188LIB3TARGET=$(SLB)$/$(TARGET3).lib
189LIB3FILES=\
190        $(SLB)$/conntools.lib \
191        $(SLB)$/sdbtmisc.lib \
192        $(SLB)$/sdbtshared.lib
193
194SHL3TARGET=$(TARGET3)$(DLLPOSTFIX)
195
196SHL3STDLIBS= \
197        $(CPPULIB) \
198        $(CPPUHELPERLIB) \
199        $(UNOTOOLSLIB) \
200        $(COMPHELPERLIB) \
201        $(TOOLSLIB) \
202        $(DBTOOLSLIB) \
203        $(SALLIB)
204
205SHL3LIBS=$(LIB3TARGET)
206SHL3DEF=$(MISC)$/$(SHL3TARGET).def
207DEF3NAME=$(SHL3TARGET)
208SHL3VERSIONMAP=$(SOLARENV)/src/component.map
209
210.END
211
212# --- .res file ----------------------------------------------------------
213
214RES3FILELIST=\
215    $(SRS)$/sdbt_strings.srs
216
217RESLIB3NAME=$(TARGET3)
218RESLIB3IMAGES=$(PRJ)$/res
219RESLIB3SRSFILES=$(RES3FILELIST)
220
221# --- Targets ----------------------------------
222
223.INCLUDE : target.mk
224.IF "$(depend)"==""
225
226.IF "$(L10N_framework)"==""
227
228$(MISC)$/$(SHL2TARGET).flt: makefile.mk
229	@echo ------------------------------
230    @echo CLEAR_THE_FILE	> $@
231	@echo _TI				>>$@
232	@echo _real				>>$@
233
234$(MISC)$/$(SHL1TARGET).flt: makefile.mk
235	@echo ------------------------------
236    @echo CLEAR_THE_FILE	> $@
237	@echo _TI				>>$@
238	@echo _real				>>$@
239.ENDIF
240
241.ENDIF
242
243ALLTAR : $(MISC)/dba.component $(MISC)/dbu.component $(MISC)/sdbt.component
244
245$(MISC)/dba.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
246        dba.component
247    $(XSLTPROC) --nonet --stringparam uri \
248        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
249        $(SOLARENV)/bin/createcomponent.xslt dba.component
250
251$(MISC)/dbu.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
252        dbu.component
253    $(XSLTPROC) --nonet --stringparam uri \
254        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \
255        $(SOLARENV)/bin/createcomponent.xslt dbu.component
256
257$(MISC)/sdbt.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
258        sdbt.component
259    $(XSLTPROC) --nonet --stringparam uri \
260        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL3TARGETN:f)' -o $@ \
261        $(SOLARENV)/bin/createcomponent.xslt sdbt.component
262