xref: /aoo41x/main/dbaccess/util/makefile.mk (revision 52845faf)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24PRJ=..
25PRJNAME=dbaccess
26TARGET=dba
27TARGET2=dbu
28TARGET3=sdbt
29USE_DEFFILE=TRUE
30GEN_HID=TRUE
31GEN_HID_OTHER=TRUE
32
33# --- Settings ----------------------------------
34
35.INCLUDE :	settings.mk
36
37LDUMP=ldump2.exe
38
39# --- database core (dba) -----------------------------------
40.IF "$(L10N_framework)"==""
41LIB1TARGET=$(SLB)$/$(TARGET).lib
42LIB1FILES=\
43		$(SLB)$/api.lib	\
44		$(SLB)$/dataaccess.lib	\
45		$(SLB)$/recovery.lib	\
46		$(SLB)$/misc.lib	\
47		$(SLB)$/core_resource.lib
48
49SHL1TARGET=$(TARGET)$(DLLPOSTFIX)
50
51SHL1STDLIBS= \
52		$(SVTOOLLIB) \
53		$(VCLLIB) \
54		$(UNOTOOLSLIB) \
55		$(TOOLSLIB) \
56		$(I18NISOLANGLIB) \
57		$(DBTOOLSLIB) \
58		$(COMPHELPERLIB) \
59		$(CPPUHELPERLIB) \
60		$(UCBHELPERLIB) \
61		$(SVLLIB)	\
62		$(CPPULIB) \
63		$(SALLIB) \
64		$(SFXLIB) \
65		$(BASICLIB) \
66		$(FWELIB) \
67        $(SALHELPERLIB) \
68        $(XMLOFFLIB)
69
70SHL1DEPN=
71SHL1IMPLIB=i$(TARGET)
72SHL1LIBS=$(LIB1TARGET)
73SHL1DEF=$(MISC)$/$(SHL1TARGET).def
74DEF1NAME=$(SHL1TARGET)
75DEFLIB1NAME=$(TARGET)
76DEF1DEPN=	$(MISC)$/$(SHL1TARGET).flt \
77			$(SLB)$/$(TARGET).lib
78SHL1USE_EXPORTS=name
79
80.ENDIF
81# --- .res file ----------------------------------------------------------
82
83RES1FILELIST=\
84	$(SRS)$/core_strings.srs
85
86RESLIB1NAME=$(TARGET)
87RESLIB1IMAGES=$(PRJ)$/res
88RESLIB1SRSFILES=$(RES1FILELIST)
89
90# --- database ui (dbu) -----------------------------------
91.IF "$(L10N_framework)"==""
92
93LIB2TARGET=$(SLB)$/$(TARGET2).lib
94LIB2FILES=\
95		$(SLB)$/relationdesign.lib	\
96		$(SLB)$/tabledesign.lib		\
97		$(SLB)$/querydesign.lib		\
98		$(SLB)$/uimisc.lib			\
99		$(SLB)$/uidlg.lib			\
100		$(SLB)$/dbushared.lib		\
101		$(SLB)$/browser.lib			\
102		$(SLB)$/uiuno.lib			\
103		$(SLB)$/app.lib				\
104		$(SLB)$/uicontrols.lib
105
106SHL2TARGET=$(TARGET2)$(DLLPOSTFIX)
107
108SHL2STDLIBS= \
109		$(SVXCORELIB)				\
110		$(SVXLIB)				\
111		$(SFXLIB)				\
112		$(SVTOOLLIB)			\
113		$(FWELIB)				\
114		$(TKLIB)				\
115		$(VCLLIB)				\
116		$(SVLLIB)				\
117		$(SOTLIB)				\
118		$(UNOTOOLSLIB)			\
119		$(TOOLSLIB)				\
120		$(UCBHELPERLIB) 		\
121		$(DBTOOLSLIB)			\
122		$(COMPHELPERLIB)		\
123		$(CPPUHELPERLIB)		\
124		$(CPPULIB)				\
125		$(SO2LIB)				\
126		$(VOSLIB)				\
127		$(SALLIB)
128
129.IF "$(GUI)"!="WNT" || "$(COM)"=="GCC" || "$(GUI)"=="OS2"
130SHL2STDLIBS+= \
131		-l$(TARGET)$(DLLPOSTFIX)
132SHL2DEPN=$(SHL1TARGETN)
133.ELSE
134SHL2STDLIBS+= \
135		$(LB)$/i$(TARGET).lib
136SHL2DEPN=$(LB)$/i$(TARGET).lib
137.ENDIF
138
139SHL2IMPLIB=i$(TARGET2)
140SHL2LIBS=$(LIB2TARGET)
141SHL2DEF=$(MISC)$/$(SHL2TARGET).def
142DEF2NAME=$(SHL2TARGET)
143DEFLIB2NAME=$(TARGET2)
144DEF2DEPN=	$(MISC)$/$(SHL2TARGET).flt \
145			$(SLB)$/$(TARGET2).lib
146SHL2USE_EXPORTS=name
147
148ALL: \
149	$(LIB1TARGET)	\
150	$(LIB2TARGET)	\
151	ALLTAR
152
153.ENDIF
154# --- .res file ----------------------------------------------------------
155
156RES2FILELIST=\
157	$(SRS)$/uidlg.srs				\
158	$(SRS)$/app.srs					\
159	$(SRS)$/uicontrols.srs			\
160	$(SRS)$/browser.srs				\
161	$(SRS)$/uiuno.srs				\
162	$(SRS)$/querydesign.srs			\
163	$(SRS)$/tabledesign.srs			\
164	$(SRS)$/relationdesign.srs		\
165	$(SRS)$/uiimglst.srs			\
166	$(SRS)$/uimisc.srs
167
168.IF "$(GUI)"=="WNT"
169#needed by 		$(SLO)$/adodatalinks.obj
170SHL2STDLIBS+=		$(OLE32LIB) \
171					$(OLEAUT32LIB) \
172					$(UUIDLIB)
173.ENDIF
174
175RESLIB2NAME=$(TARGET2)
176RESLIB2IMAGES=$(PRJ)$/res
177RESLIB2SRSFILES=$(RES2FILELIST)
178
179# --- database tools (sdbt) -----------------------------------
180.IF "$(L10N_framework)"==""
181LIB3TARGET=$(SLB)$/$(TARGET3).lib
182LIB3FILES=\
183        $(SLB)$/conntools.lib \
184        $(SLB)$/sdbtmisc.lib \
185        $(SLB)$/sdbtshared.lib
186
187SHL3TARGET=$(TARGET3)$(DLLPOSTFIX)
188
189SHL3STDLIBS= \
190        $(CPPULIB) \
191        $(CPPUHELPERLIB) \
192        $(UNOTOOLSLIB) \
193        $(COMPHELPERLIB) \
194        $(TOOLSLIB) \
195        $(DBTOOLSLIB) \
196        $(SALLIB)
197
198SHL3LIBS=$(LIB3TARGET)
199SHL3DEF=$(MISC)$/$(SHL3TARGET).def
200DEF3NAME=$(SHL3TARGET)
201SHL3VERSIONMAP=$(SOLARENV)/src/component.map
202
203.END
204
205# --- .res file ----------------------------------------------------------
206
207RES3FILELIST=\
208    $(SRS)$/sdbt_strings.srs
209
210RESLIB3NAME=$(TARGET3)
211RESLIB3IMAGES=$(PRJ)$/res
212RESLIB3SRSFILES=$(RES3FILELIST)
213
214# --- Targets ----------------------------------
215
216.INCLUDE : target.mk
217.IF "$(depend)"==""
218
219.IF "$(L10N_framework)"==""
220
221$(MISC)$/$(SHL2TARGET).flt: makefile.mk
222	@echo ------------------------------
223    @echo CLEAR_THE_FILE	> $@
224	@echo _TI				>>$@
225	@echo _real				>>$@
226
227$(MISC)$/$(SHL1TARGET).flt: makefile.mk
228	@echo ------------------------------
229    @echo CLEAR_THE_FILE	> $@
230	@echo _TI				>>$@
231	@echo _real				>>$@
232.ENDIF
233
234.ENDIF
235
236ALLTAR : $(MISC)/dba.component $(MISC)/dbu.component $(MISC)/sdbt.component
237
238$(MISC)/dba.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
239        dba.component
240    $(XSLTPROC) --nonet --stringparam uri \
241        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
242        $(SOLARENV)/bin/createcomponent.xslt dba.component
243
244$(MISC)/dbu.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
245        dbu.component
246    $(XSLTPROC) --nonet --stringparam uri \
247        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \
248        $(SOLARENV)/bin/createcomponent.xslt dbu.component
249
250$(MISC)/sdbt.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
251        sdbt.component
252    $(XSLTPROC) --nonet --stringparam uri \
253        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL3TARGETN:f)' -o $@ \
254        $(SOLARENV)/bin/createcomponent.xslt sdbt.component
255