xref: /AOO41X/main/dbaccess/util/makefile.mk (revision 47148b3bc50811ceb41802e4cc50a5db21535900)
17871dc3eSAndrew Rist#**************************************************************
2cdf0e10cSrcweir#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
19cdf0e10cSrcweir#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ=..
25cdf0e10cSrcweirPRJNAME=dbaccess
26cdf0e10cSrcweirTARGET=dba
27cdf0e10cSrcweirTARGET2=dbu
28cdf0e10cSrcweirTARGET3=sdbt
29cdf0e10cSrcweirUSE_DEFFILE=TRUE
30cdf0e10cSrcweirGEN_HID=TRUE
31cdf0e10cSrcweirGEN_HID_OTHER=TRUE
32cdf0e10cSrcweir
33cdf0e10cSrcweir# --- Settings ----------------------------------
34cdf0e10cSrcweir
35cdf0e10cSrcweir.INCLUDE :  settings.mk
36cdf0e10cSrcweir
37cdf0e10cSrcweirLDUMP=ldump2.exe
38cdf0e10cSrcweir
39cdf0e10cSrcweir# --- database core (dba) -----------------------------------
40cdf0e10cSrcweir.IF "$(L10N_framework)"==""
41cdf0e10cSrcweirLIB1TARGET=$(SLB)$/$(TARGET).lib
42cdf0e10cSrcweirLIB1FILES=\
43cdf0e10cSrcweir        $(SLB)$/api.lib \
44cdf0e10cSrcweir        $(SLB)$/dataaccess.lib  \
45cdf0e10cSrcweir        $(SLB)$/recovery.lib    \
46cdf0e10cSrcweir        $(SLB)$/misc.lib    \
47cdf0e10cSrcweir        $(SLB)$/core_resource.lib
48cdf0e10cSrcweir
49cdf0e10cSrcweirSHL1TARGET=$(TARGET)$(DLLPOSTFIX)
50cdf0e10cSrcweir
51cdf0e10cSrcweirSHL1STDLIBS= \
52cdf0e10cSrcweir        $(SVTOOLLIB) \
53cdf0e10cSrcweir        $(VCLLIB) \
54cdf0e10cSrcweir        $(UNOTOOLSLIB) \
55cdf0e10cSrcweir        $(TOOLSLIB) \
56cdf0e10cSrcweir        $(I18NISOLANGLIB) \
57cdf0e10cSrcweir        $(DBTOOLSLIB) \
58cdf0e10cSrcweir        $(COMPHELPERLIB) \
59cdf0e10cSrcweir        $(CPPUHELPERLIB) \
60cdf0e10cSrcweir        $(UCBHELPERLIB) \
61cdf0e10cSrcweir        $(SVLLIB)   \
62cdf0e10cSrcweir        $(CPPULIB) \
63cdf0e10cSrcweir        $(SALLIB) \
64cdf0e10cSrcweir        $(SFXLIB) \
65cdf0e10cSrcweir        $(BASICLIB) \
66cdf0e10cSrcweir        $(FWELIB) \
67cdf0e10cSrcweir        $(SALHELPERLIB) \
68cdf0e10cSrcweir        $(XMLOFFLIB)
69cdf0e10cSrcweir
70cdf0e10cSrcweirSHL1DEPN=
71cdf0e10cSrcweirSHL1IMPLIB=i$(TARGET)
72cdf0e10cSrcweirSHL1LIBS=$(LIB1TARGET)
73cdf0e10cSrcweirSHL1DEF=$(MISC)$/$(SHL1TARGET).def
74cdf0e10cSrcweirDEF1NAME=$(SHL1TARGET)
75cdf0e10cSrcweirDEFLIB1NAME=$(TARGET)
76cdf0e10cSrcweirDEF1DEPN=   $(MISC)$/$(SHL1TARGET).flt \
77cdf0e10cSrcweir            $(SLB)$/$(TARGET).lib
78cdf0e10cSrcweirSHL1USE_EXPORTS=name
79cdf0e10cSrcweir
80cdf0e10cSrcweir.ENDIF
81cdf0e10cSrcweir# --- .res file ----------------------------------------------------------
82cdf0e10cSrcweir
83cdf0e10cSrcweirRES1FILELIST=\
84cdf0e10cSrcweir    $(SRS)$/core_strings.srs
85cdf0e10cSrcweir
86cdf0e10cSrcweirRESLIB1NAME=$(TARGET)
87cdf0e10cSrcweirRESLIB1IMAGES=$(PRJ)$/res
88cdf0e10cSrcweirRESLIB1SRSFILES=$(RES1FILELIST)
89cdf0e10cSrcweir
90cdf0e10cSrcweir# --- database ui (dbu) -----------------------------------
91cdf0e10cSrcweir.IF "$(L10N_framework)"==""
92cdf0e10cSrcweir
93cdf0e10cSrcweirLIB2TARGET=$(SLB)$/$(TARGET2).lib
94cdf0e10cSrcweirLIB2FILES=\
95cdf0e10cSrcweir        $(SLB)$/relationdesign.lib  \
96cdf0e10cSrcweir        $(SLB)$/tabledesign.lib     \
97cdf0e10cSrcweir        $(SLB)$/querydesign.lib     \
98cdf0e10cSrcweir        $(SLB)$/uimisc.lib          \
99cdf0e10cSrcweir        $(SLB)$/uidlg.lib           \
100cdf0e10cSrcweir        $(SLB)$/dbushared.lib       \
101cdf0e10cSrcweir        $(SLB)$/browser.lib         \
102cdf0e10cSrcweir        $(SLB)$/uiuno.lib           \
103cdf0e10cSrcweir        $(SLB)$/app.lib             \
104cdf0e10cSrcweir        $(SLB)$/uicontrols.lib
105cdf0e10cSrcweir
106cdf0e10cSrcweirSHL2TARGET=$(TARGET2)$(DLLPOSTFIX)
107cdf0e10cSrcweir
108cdf0e10cSrcweirSHL2STDLIBS= \
109cdf0e10cSrcweir        $(SVXCORELIB)               \
110cdf0e10cSrcweir        $(SVXLIB)               \
111cdf0e10cSrcweir        $(SFXLIB)               \
112cdf0e10cSrcweir        $(SVTOOLLIB)            \
113cdf0e10cSrcweir        $(FWELIB)               \
114cdf0e10cSrcweir        $(TKLIB)                \
115cdf0e10cSrcweir        $(VCLLIB)               \
116cdf0e10cSrcweir        $(SVLLIB)               \
117cdf0e10cSrcweir        $(SOTLIB)               \
118cdf0e10cSrcweir        $(UNOTOOLSLIB)          \
119cdf0e10cSrcweir        $(TOOLSLIB)             \
120cdf0e10cSrcweir        $(UCBHELPERLIB)         \
121cdf0e10cSrcweir        $(DBTOOLSLIB)           \
122cdf0e10cSrcweir        $(COMPHELPERLIB)        \
123cdf0e10cSrcweir        $(CPPUHELPERLIB)        \
124cdf0e10cSrcweir        $(CPPULIB)              \
125cdf0e10cSrcweir        $(SO2LIB)               \
126cdf0e10cSrcweir        $(VOSLIB)               \
127cdf0e10cSrcweir        $(SALLIB)
128cdf0e10cSrcweir
129*52845fafSYuri Dario.IF "$(GUI)"!="WNT" || "$(COM)"=="GCC" || "$(GUI)"=="OS2"
130cdf0e10cSrcweirSHL2STDLIBS+= \
131cdf0e10cSrcweir        -l$(TARGET)$(DLLPOSTFIX)
132cdf0e10cSrcweirSHL2DEPN=$(SHL1TARGETN)
133cdf0e10cSrcweir.ELSE
134cdf0e10cSrcweirSHL2STDLIBS+= \
135cdf0e10cSrcweir        $(LB)$/i$(TARGET).lib
136cdf0e10cSrcweirSHL2DEPN=$(LB)$/i$(TARGET).lib
137cdf0e10cSrcweir.ENDIF
138cdf0e10cSrcweir
139cdf0e10cSrcweirSHL2IMPLIB=i$(TARGET2)
140cdf0e10cSrcweirSHL2LIBS=$(LIB2TARGET)
141cdf0e10cSrcweirSHL2DEF=$(MISC)$/$(SHL2TARGET).def
142cdf0e10cSrcweirDEF2NAME=$(SHL2TARGET)
143cdf0e10cSrcweirDEFLIB2NAME=$(TARGET2)
144cdf0e10cSrcweirDEF2DEPN=   $(MISC)$/$(SHL2TARGET).flt \
145cdf0e10cSrcweir            $(SLB)$/$(TARGET2).lib
146cdf0e10cSrcweirSHL2USE_EXPORTS=name
147cdf0e10cSrcweir
148cdf0e10cSrcweirALL: \
149cdf0e10cSrcweir    $(LIB1TARGET)   \
150cdf0e10cSrcweir    $(LIB2TARGET)   \
151cdf0e10cSrcweir    ALLTAR
152cdf0e10cSrcweir
153cdf0e10cSrcweir.ENDIF
154cdf0e10cSrcweir# --- .res file ----------------------------------------------------------
155cdf0e10cSrcweir
156cdf0e10cSrcweirRES2FILELIST=\
157cdf0e10cSrcweir    $(SRS)$/uidlg.srs               \
158cdf0e10cSrcweir    $(SRS)$/app.srs                 \
159cdf0e10cSrcweir    $(SRS)$/uicontrols.srs          \
160cdf0e10cSrcweir    $(SRS)$/browser.srs             \
161cdf0e10cSrcweir    $(SRS)$/uiuno.srs               \
162cdf0e10cSrcweir    $(SRS)$/querydesign.srs         \
163cdf0e10cSrcweir    $(SRS)$/tabledesign.srs         \
164cdf0e10cSrcweir    $(SRS)$/relationdesign.srs      \
165cdf0e10cSrcweir    $(SRS)$/uiimglst.srs            \
166cdf0e10cSrcweir    $(SRS)$/uimisc.srs
167cdf0e10cSrcweir
168cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
169cdf0e10cSrcweir#needed by      $(SLO)$/adodatalinks.obj
170cdf0e10cSrcweirSHL2STDLIBS+=       $(OLE32LIB) \
171cdf0e10cSrcweir                    $(OLEAUT32LIB) \
172cdf0e10cSrcweir                    $(UUIDLIB)
173cdf0e10cSrcweir.ENDIF
174cdf0e10cSrcweir
175cdf0e10cSrcweirRESLIB2NAME=$(TARGET2)
176cdf0e10cSrcweirRESLIB2IMAGES=$(PRJ)$/res
177cdf0e10cSrcweirRESLIB2SRSFILES=$(RES2FILELIST)
178cdf0e10cSrcweir
179cdf0e10cSrcweir# --- database tools (sdbt) -----------------------------------
180cdf0e10cSrcweir.IF "$(L10N_framework)"==""
181cdf0e10cSrcweirLIB3TARGET=$(SLB)$/$(TARGET3).lib
182cdf0e10cSrcweirLIB3FILES=\
183cdf0e10cSrcweir        $(SLB)$/conntools.lib \
184cdf0e10cSrcweir        $(SLB)$/sdbtmisc.lib \
185cdf0e10cSrcweir        $(SLB)$/sdbtshared.lib
186cdf0e10cSrcweir
187cdf0e10cSrcweirSHL3TARGET=$(TARGET3)$(DLLPOSTFIX)
188cdf0e10cSrcweir
189cdf0e10cSrcweirSHL3STDLIBS= \
190cdf0e10cSrcweir        $(CPPULIB) \
191cdf0e10cSrcweir        $(CPPUHELPERLIB) \
192cdf0e10cSrcweir        $(UNOTOOLSLIB) \
193cdf0e10cSrcweir        $(COMPHELPERLIB) \
194cdf0e10cSrcweir        $(TOOLSLIB) \
195cdf0e10cSrcweir        $(DBTOOLSLIB) \
196cdf0e10cSrcweir        $(SALLIB)
197cdf0e10cSrcweir
198cdf0e10cSrcweirSHL3LIBS=$(LIB3TARGET)
199cdf0e10cSrcweirSHL3DEF=$(MISC)$/$(SHL3TARGET).def
200cdf0e10cSrcweirDEF3NAME=$(SHL3TARGET)
201cdf0e10cSrcweirSHL3VERSIONMAP=$(SOLARENV)/src/component.map
202cdf0e10cSrcweir
203cdf0e10cSrcweir.END
204cdf0e10cSrcweir
205cdf0e10cSrcweir# --- .res file ----------------------------------------------------------
206cdf0e10cSrcweir
207cdf0e10cSrcweirRES3FILELIST=\
208cdf0e10cSrcweir    $(SRS)$/sdbt_strings.srs
209cdf0e10cSrcweir
210cdf0e10cSrcweirRESLIB3NAME=$(TARGET3)
211cdf0e10cSrcweirRESLIB3IMAGES=$(PRJ)$/res
212cdf0e10cSrcweirRESLIB3SRSFILES=$(RES3FILELIST)
213cdf0e10cSrcweir
214cdf0e10cSrcweir# --- Targets ----------------------------------
215cdf0e10cSrcweir
216cdf0e10cSrcweir.INCLUDE : target.mk
217cdf0e10cSrcweir.IF "$(depend)"==""
218cdf0e10cSrcweir
219cdf0e10cSrcweir.IF "$(L10N_framework)"==""
220cdf0e10cSrcweir
221cdf0e10cSrcweir$(MISC)$/$(SHL2TARGET).flt: makefile.mk
222cdf0e10cSrcweir    @echo ------------------------------
223cdf0e10cSrcweir    @echo CLEAR_THE_FILE    > $@
224cdf0e10cSrcweir    @echo _TI               >>$@
225cdf0e10cSrcweir    @echo _real             >>$@
226cdf0e10cSrcweir
227cdf0e10cSrcweir$(MISC)$/$(SHL1TARGET).flt: makefile.mk
228cdf0e10cSrcweir    @echo ------------------------------
229cdf0e10cSrcweir    @echo CLEAR_THE_FILE    > $@
230cdf0e10cSrcweir    @echo _TI               >>$@
231cdf0e10cSrcweir    @echo _real             >>$@
232cdf0e10cSrcweir.ENDIF
233cdf0e10cSrcweir
234cdf0e10cSrcweir.ENDIF
235cdf0e10cSrcweir
236cdf0e10cSrcweirALLTAR : $(MISC)/dba.component $(MISC)/dbu.component $(MISC)/sdbt.component
237cdf0e10cSrcweir
238cdf0e10cSrcweir$(MISC)/dba.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
239cdf0e10cSrcweir        dba.component
240cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
241cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
242cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt dba.component
243cdf0e10cSrcweir
244cdf0e10cSrcweir$(MISC)/dbu.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
245cdf0e10cSrcweir        dbu.component
246cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
247cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \
248cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt dbu.component
249cdf0e10cSrcweir
250cdf0e10cSrcweir$(MISC)/sdbt.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
251cdf0e10cSrcweir        sdbt.component
252cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
253cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL3TARGETN:f)' -o $@ \
254cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt sdbt.component
255