1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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 #*************************************************************************
37 # --- Settings ----------------------------------
39 .INCLUDE
: settings.mk
43 # --- database core (dba) -----------------------------------
44 .IF
"$(L10N_framework)"==""
45 LIB1TARGET
=$(SLB
)$/$(TARGET
).lib
48 $(SLB
)$/dataaccess.lib \
49 $(SLB
)$/recovery.lib \
51 $(SLB
)$/core_resource.lib
53 SHL1TARGET
=$(TARGET
)$(DLLPOSTFIX
)
76 SHL1LIBS
=$(LIB1TARGET
)
77 SHL1DEF
=$(MISC
)$/$(SHL1TARGET
).def
78 DEF1NAME
=$(SHL1TARGET
)
80 DEF1DEPN
= $(MISC
)$/$(SHL1TARGET
).flt \
85 # --- .res file ----------------------------------------------------------
88 $(SRS
)$/core_strings.srs
91 RESLIB1IMAGES
=$(PRJ
)$/res
92 RESLIB1SRSFILES
=$(RES1FILELIST
)
94 # --- database ui (dbu) -----------------------------------
95 .IF
"$(L10N_framework)"==""
97 LIB2TARGET
=$(SLB
)$/$(TARGET2
).lib
99 $(SLB
)$/relationdesign.lib \
100 $(SLB
)$/tabledesign.lib \
101 $(SLB
)$/querydesign.lib \
104 $(SLB
)$/dbushared.lib \
105 $(SLB
)$/browser.lib \
108 $(SLB
)$/uicontrols.lib
110 SHL2TARGET
=$(TARGET2
)$(DLLPOSTFIX
)
134 SHL2STDLIBS
+= $(LB
)$/i
$(TARGET
).lib
135 SHL2DEPN
=$(LB
)$/i
$(TARGET
).lib
136 .ELIF
"$(GUI)"!="WNT" ||
"$(COM)"=="GCC"
138 -l
$(TARGET
)$(DLLPOSTFIX
)
139 SHL2DEPN
=$(SHL1TARGETN
)
142 $(LB
)$/i
$(TARGET
).lib
143 SHL2DEPN
=$(LB
)$/i
$(TARGET
).lib
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
161 # --- .res file ----------------------------------------------------------
166 $(SRS
)$/uicontrols.srs \
167 $(SRS
)$/browser.srs \
169 $(SRS
)$/querydesign.srs \
170 $(SRS
)$/tabledesign.srs \
171 $(SRS
)$/relationdesign.srs \
172 $(SRS
)$/uiimglst.srs \
176 #needed by $(SLO)$/adodatalinks.obj
177 SHL2STDLIBS
+= $(OLE32LIB
) \
182 RESLIB2NAME
=$(TARGET2
)
183 RESLIB2IMAGES
=$(PRJ
)$/res
184 RESLIB2SRSFILES
=$(RES2FILELIST
)
186 # --- database tools (sdbt) -----------------------------------
187 .IF
"$(L10N_framework)"==""
188 LIB3TARGET
=$(SLB
)$/$(TARGET3
).lib
190 $(SLB
)$/conntools.lib \
191 $(SLB
)$/sdbtmisc.lib \
192 $(SLB
)$/sdbtshared.lib
194 SHL3TARGET
=$(TARGET3
)$(DLLPOSTFIX
)
205 SHL3LIBS
=$(LIB3TARGET
)
206 SHL3DEF
=$(MISC
)$/$(SHL3TARGET
).def
207 DEF3NAME
=$(SHL3TARGET
)
208 SHL3VERSIONMAP
=$(SOLARENV
)/src
/component.map
212 # --- .res file ----------------------------------------------------------
215 $(SRS
)$/sdbt_strings.srs
217 RESLIB3NAME
=$(TARGET3
)
218 RESLIB3IMAGES
=$(PRJ
)$/res
219 RESLIB3SRSFILES
=$(RES3FILELIST
)
221 # --- Targets ----------------------------------
226 .IF
"$(L10N_framework)"==""
228 $(MISC
)$/$(SHL2TARGET
).flt
: makefile.mk
229 @echo
------------------------------
230 @echo CLEAR_THE_FILE
> $@
234 $(MISC
)$/$(SHL1TARGET
).flt
: makefile.mk
235 @echo
------------------------------
236 @echo CLEAR_THE_FILE
> $@
243 ALLTAR
: $(MISC
)/dba.component
$(MISC
)/dbu.component
$(MISC
)/sdbt.component
245 $(MISC
)/dba.component .ERRREMOVE
: $(SOLARENV
)/bin
/createcomponent.xslt \
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 \
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 \
259 $(XSLTPROC
) --nonet
--stringparam uri \
260 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL3TARGETN:f)' -o
$@ \
261 $(SOLARENV
)/bin
/createcomponent.xslt sdbt.component