xref: /aoo41x/main/dbaccess/util/makefile.mk (revision 7871dc3e)
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)"=="OS2"
130SHL2STDLIBS+=	$(LB)$/i$(TARGET).lib
131SHL2DEPN=$(LB)$/i$(TARGET).lib
132.ELIF "$(GUI)"!="WNT" || "$(COM)"=="GCC"
133SHL2STDLIBS+= \
134		-l$(TARGET)$(DLLPOSTFIX)
135SHL2DEPN=$(SHL1TARGETN)
136.ELSE
137SHL2STDLIBS+= \
138		$(LB)$/i$(TARGET).lib
139SHL2DEPN=$(LB)$/i$(TARGET).lib
140.ENDIF
141
142SHL2IMPLIB=i$(TARGET2)
143SHL2LIBS=$(LIB2TARGET)
144SHL2DEF=$(MISC)$/$(SHL2TARGET).def
145DEF2NAME=$(SHL2TARGET)
146DEFLIB2NAME=$(TARGET2)
147DEF2DEPN=	$(MISC)$/$(SHL2TARGET).flt \
148			$(SLB)$/$(TARGET2).lib
149SHL2USE_EXPORTS=name
150
151ALL: \
152	$(LIB1TARGET)	\
153	$(LIB2TARGET)	\
154	ALLTAR
155
156.ENDIF
157# --- .res file ----------------------------------------------------------
158
159RES2FILELIST=\
160	$(SRS)$/uidlg.srs				\
161	$(SRS)$/app.srs					\
162	$(SRS)$/uicontrols.srs			\
163	$(SRS)$/browser.srs				\
164	$(SRS)$/uiuno.srs				\
165	$(SRS)$/querydesign.srs			\
166	$(SRS)$/tabledesign.srs			\
167	$(SRS)$/relationdesign.srs		\
168	$(SRS)$/uiimglst.srs			\
169	$(SRS)$/uimisc.srs
170
171.IF "$(GUI)"=="WNT"
172#needed by 		$(SLO)$/adodatalinks.obj
173SHL2STDLIBS+=		$(OLE32LIB) \
174					$(OLEAUT32LIB) \
175					$(UUIDLIB)
176.ENDIF
177
178RESLIB2NAME=$(TARGET2)
179RESLIB2IMAGES=$(PRJ)$/res
180RESLIB2SRSFILES=$(RES2FILELIST)
181
182# --- database tools (sdbt) -----------------------------------
183.IF "$(L10N_framework)"==""
184LIB3TARGET=$(SLB)$/$(TARGET3).lib
185LIB3FILES=\
186        $(SLB)$/conntools.lib \
187        $(SLB)$/sdbtmisc.lib \
188        $(SLB)$/sdbtshared.lib
189
190SHL3TARGET=$(TARGET3)$(DLLPOSTFIX)
191
192SHL3STDLIBS= \
193        $(CPPULIB) \
194        $(CPPUHELPERLIB) \
195        $(UNOTOOLSLIB) \
196        $(COMPHELPERLIB) \
197        $(TOOLSLIB) \
198        $(DBTOOLSLIB) \
199        $(SALLIB)
200
201SHL3LIBS=$(LIB3TARGET)
202SHL3DEF=$(MISC)$/$(SHL3TARGET).def
203DEF3NAME=$(SHL3TARGET)
204SHL3VERSIONMAP=$(SOLARENV)/src/component.map
205
206.END
207
208# --- .res file ----------------------------------------------------------
209
210RES3FILELIST=\
211    $(SRS)$/sdbt_strings.srs
212
213RESLIB3NAME=$(TARGET3)
214RESLIB3IMAGES=$(PRJ)$/res
215RESLIB3SRSFILES=$(RES3FILELIST)
216
217# --- Targets ----------------------------------
218
219.INCLUDE : target.mk
220.IF "$(depend)"==""
221
222.IF "$(L10N_framework)"==""
223
224$(MISC)$/$(SHL2TARGET).flt: makefile.mk
225	@echo ------------------------------
226    @echo CLEAR_THE_FILE	> $@
227	@echo _TI				>>$@
228	@echo _real				>>$@
229
230$(MISC)$/$(SHL1TARGET).flt: makefile.mk
231	@echo ------------------------------
232    @echo CLEAR_THE_FILE	> $@
233	@echo _TI				>>$@
234	@echo _real				>>$@
235.ENDIF
236
237.ENDIF
238
239ALLTAR : $(MISC)/dba.component $(MISC)/dbu.component $(MISC)/sdbt.component
240
241$(MISC)/dba.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
242        dba.component
243    $(XSLTPROC) --nonet --stringparam uri \
244        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
245        $(SOLARENV)/bin/createcomponent.xslt dba.component
246
247$(MISC)/dbu.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
248        dbu.component
249    $(XSLTPROC) --nonet --stringparam uri \
250        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \
251        $(SOLARENV)/bin/createcomponent.xslt dbu.component
252
253$(MISC)/sdbt.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
254        sdbt.component
255    $(XSLTPROC) --nonet --stringparam uri \
256        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL3TARGETN:f)' -o $@ \
257        $(SOLARENV)/bin/createcomponent.xslt sdbt.component
258