merged tag ooo/DEV300_m102
[LibreOffice.git] / dbaccess / util / makefile.mk
blobd59855961c79d684b774cfce22d96c0f8741e9cb
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
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.
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).
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.
26 #*************************************************************************
28 PRJ=..
29 PRJNAME=dbaccess
30 TARGET=dba
31 TARGET2=dbu
32 TARGET3=sdbt
33 USE_DEFFILE=TRUE
34 GEN_HID=TRUE
35 GEN_HID_OTHER=TRUE
37 # --- Settings ----------------------------------
39 .INCLUDE : settings.mk
41 LDUMP=ldump2.exe
43 # --- database core (dba) -----------------------------------
44 .IF "$(L10N_framework)"==""
45 LIB1TARGET=$(SLB)$/$(TARGET).lib
46 LIB1FILES=\
47 $(SLB)$/api.lib \
48 $(SLB)$/dataaccess.lib \
49 $(SLB)$/recovery.lib \
50 $(SLB)$/misc.lib \
51 $(SLB)$/core_resource.lib
53 SHL1TARGET=$(TARGET)$(DLLPOSTFIX)
55 SHL1STDLIBS= \
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)
74 SHL1DEPN=
75 SHL1IMPLIB=i$(TARGET)
76 SHL1LIBS=$(LIB1TARGET)
77 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
78 DEF1NAME=$(SHL1TARGET)
79 DEFLIB1NAME=$(TARGET)
80 DEF1DEPN= $(MISC)$/$(SHL1TARGET).flt \
81 $(SLB)$/$(TARGET).lib
82 SHL1USE_EXPORTS=name
84 .ENDIF
85 # --- .res file ----------------------------------------------------------
87 RES1FILELIST=\
88 $(SRS)$/core_strings.srs
90 RESLIB1NAME=$(TARGET)
91 RESLIB1IMAGES=$(PRJ)$/res
92 RESLIB1SRSFILES=$(RES1FILELIST)
94 # --- database ui (dbu) -----------------------------------
95 .IF "$(L10N_framework)"==""
97 LIB2TARGET=$(SLB)$/$(TARGET2).lib
98 LIB2FILES=\
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
110 SHL2TARGET=$(TARGET2)$(DLLPOSTFIX)
112 SHL2STDLIBS= \
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)
133 .IF "$(GUI)"=="OS2"
134 SHL2STDLIBS+= $(LB)$/i$(TARGET).lib
135 SHL2DEPN=$(LB)$/i$(TARGET).lib
136 .ELIF "$(GUI)"!="WNT" || "$(COM)"=="GCC"
137 SHL2STDLIBS+= \
138 -l$(TARGET)$(DLLPOSTFIX)
139 SHL2DEPN=$(SHL1TARGETN)
140 .ELSE
141 SHL2STDLIBS+= \
142 $(LB)$/i$(TARGET).lib
143 SHL2DEPN=$(LB)$/i$(TARGET).lib
144 .ENDIF
146 SHL2IMPLIB=i$(TARGET2)
147 SHL2LIBS=$(LIB2TARGET)
148 SHL2DEF=$(MISC)$/$(SHL2TARGET).def
149 DEF2NAME=$(SHL2TARGET)
150 DEFLIB2NAME=$(TARGET2)
151 DEF2DEPN= $(MISC)$/$(SHL2TARGET).flt \
152 $(SLB)$/$(TARGET2).lib
153 SHL2USE_EXPORTS=name
155 ALL: \
156 $(LIB1TARGET) \
157 $(LIB2TARGET) \
158 ALLTAR
160 .ENDIF
161 # --- .res file ----------------------------------------------------------
163 RES2FILELIST=\
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
175 .IF "$(GUI)"=="WNT"
176 #needed by $(SLO)$/adodatalinks.obj
177 SHL2STDLIBS+= $(OLE32LIB) \
178 $(OLEAUT32LIB) \
179 $(UUIDLIB)
180 .ENDIF
182 RESLIB2NAME=$(TARGET2)
183 RESLIB2IMAGES=$(PRJ)$/res
184 RESLIB2SRSFILES=$(RES2FILELIST)
186 # --- database tools (sdbt) -----------------------------------
187 .IF "$(L10N_framework)"==""
188 LIB3TARGET=$(SLB)$/$(TARGET3).lib
189 LIB3FILES=\
190 $(SLB)$/conntools.lib \
191 $(SLB)$/sdbtmisc.lib \
192 $(SLB)$/sdbtshared.lib
194 SHL3TARGET=$(TARGET3)$(DLLPOSTFIX)
196 SHL3STDLIBS= \
197 $(CPPULIB) \
198 $(CPPUHELPERLIB) \
199 $(UNOTOOLSLIB) \
200 $(COMPHELPERLIB) \
201 $(TOOLSLIB) \
202 $(DBTOOLSLIB) \
203 $(SALLIB)
205 SHL3LIBS=$(LIB3TARGET)
206 SHL3DEF=$(MISC)$/$(SHL3TARGET).def
207 DEF3NAME=$(SHL3TARGET)
208 SHL3VERSIONMAP=$(SOLARENV)/src/component.map
210 .END
212 # --- .res file ----------------------------------------------------------
214 RES3FILELIST=\
215 $(SRS)$/sdbt_strings.srs
217 RESLIB3NAME=$(TARGET3)
218 RESLIB3IMAGES=$(PRJ)$/res
219 RESLIB3SRSFILES=$(RES3FILELIST)
221 # --- Targets ----------------------------------
223 .INCLUDE : target.mk
224 .IF "$(depend)"==""
226 .IF "$(L10N_framework)"==""
228 $(MISC)$/$(SHL2TARGET).flt: makefile.mk
229 @echo ------------------------------
230 @echo CLEAR_THE_FILE > $@
231 @echo _TI >>$@
232 @echo _real >>$@
234 $(MISC)$/$(SHL1TARGET).flt: makefile.mk
235 @echo ------------------------------
236 @echo CLEAR_THE_FILE > $@
237 @echo _TI >>$@
238 @echo _real >>$@
239 .ENDIF
241 .ENDIF
243 ALLTAR : $(MISC)/dba.component $(MISC)/dbu.component $(MISC)/sdbt.component
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
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
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