Update ooo320-m1
[ooovba.git] / dbaccess / util / makefile.mk
blob7b6909992c53fd2ea6d5ac19a728251f0e6c190d
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.38.68.2 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ=..
33 PRJNAME=dbaccess
34 TARGET=dba
35 TARGET2=dbu
36 TARGET3=sdbt
37 USE_DEFFILE=TRUE
38 GEN_HID=TRUE
39 GEN_HID_OTHER=TRUE
41 # --- Settings ----------------------------------
43 .INCLUDE : settings.mk
45 LDUMP=ldump2.exe
47 # --- database core (dba) -----------------------------------
48 .IF "$(L10N_framework)"==""
49 LIB1TARGET=$(SLB)$/$(TARGET).lib
50 LIB1FILES=\
51 $(SLB)$/api.lib \
52 $(SLB)$/dataaccess.lib \
53 $(SLB)$/misc.lib \
54 $(SLB)$/core_resource.lib
56 SHL1TARGET=$(TARGET)$(DLLPOSTFIX)
58 SHL1STDLIBS= \
59 $(SVTOOLLIB) \
60 $(VCLLIB) \
61 $(UNOTOOLSLIB) \
62 $(TOOLSLIB) \
63 $(I18NISOLANGLIB) \
64 $(DBTOOLSLIB) \
65 $(COMPHELPERLIB) \
66 $(CPPUHELPERLIB) \
67 $(UCBHELPERLIB) \
68 $(SVLLIB) \
69 $(CPPULIB) \
70 $(SALLIB) \
71 $(SFXLIB) \
72 $(BASICLIB) \
73 $(FWELIB) \
74 $(SALHELPERLIB)
76 SHL1DEPN=
77 SHL1IMPLIB=i$(TARGET)
78 SHL1LIBS=$(LIB1TARGET)
79 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
80 DEF1NAME=$(SHL1TARGET)
81 DEFLIB1NAME=$(TARGET)
82 DEF1DEPN= $(MISC)$/$(SHL1TARGET).flt \
83 $(SLB)$/$(TARGET).lib
84 # SHL1VERSIONMAP=$(TARGET).map
85 SHL1USE_EXPORTS=name
87 .ENDIF
88 # --- .res file ----------------------------------------------------------
90 RES1FILELIST=\
91 $(SRS)$/core_strings.srs
93 RESLIB1NAME=$(TARGET)
94 RESLIB1IMAGES=$(PRJ)$/res
95 RESLIB1SRSFILES=$(RES1FILELIST)
97 # --- database ui (dbu) -----------------------------------
98 .IF "$(L10N_framework)"==""
100 LIB2TARGET=$(SLB)$/$(TARGET2).lib
101 LIB2FILES=\
102 $(SLB)$/relationdesign.lib \
103 $(SLB)$/tabledesign.lib \
104 $(SLB)$/querydesign.lib \
105 $(SLB)$/uimisc.lib \
106 $(SLB)$/uidlg.lib \
107 $(SLB)$/dbushared.lib \
108 $(SLB)$/browser.lib \
109 $(SLB)$/uiuno.lib \
110 $(SLB)$/app.lib \
111 $(SLB)$/uicontrols.lib
113 SHL2TARGET=$(TARGET2)$(DLLPOSTFIX)
115 SHL2STDLIBS= \
116 $(SVXCORELIB) \
117 $(SVXLIB) \
118 $(SFXLIB) \
119 $(SVTOOLLIB) \
120 $(FWELIB) \
121 $(TKLIB) \
122 $(VCLLIB) \
123 $(GOODIESLIB) \
124 $(SVLLIB) \
125 $(SOTLIB) \
126 $(UNOTOOLSLIB) \
127 $(TOOLSLIB) \
128 $(UCBHELPERLIB) \
129 $(DBTOOLSLIB) \
130 $(COMPHELPERLIB) \
131 $(CPPUHELPERLIB) \
132 $(CPPULIB) \
133 $(SO2LIB) \
134 $(VOSLIB) \
135 $(SALLIB)
137 .IF "$(GUI)"=="OS2"
138 SHL2STDLIBS+= $(LB)$/i$(TARGET).lib
139 SHL2DEPN=$(LB)$/i$(TARGET).lib
140 .ELIF "$(GUI)"!="WNT" || "$(COM)"=="GCC"
141 SHL2STDLIBS+= \
142 -l$(TARGET)$(DLLPOSTFIX)
143 SHL2DEPN=$(SHL1TARGETN)
144 .ELSE
145 SHL2STDLIBS+= \
146 $(LB)$/i$(TARGET).lib
147 SHL2DEPN=$(LB)$/i$(TARGET).lib
148 .ENDIF
150 SHL2IMPLIB=i$(TARGET2)
151 SHL2LIBS=$(LIB2TARGET)
152 SHL2DEF=$(MISC)$/$(SHL2TARGET).def
153 DEF2NAME=$(SHL2TARGET)
154 DEFLIB2NAME=$(TARGET2)
155 DEF2DEPN= $(MISC)$/$(SHL2TARGET).flt \
156 $(SLB)$/$(TARGET2).lib
157 # SHL2VERSIONMAP=$(TARGET2).map
158 SHL2USE_EXPORTS=name
160 ALL: \
161 $(LIB1TARGET) \
162 $(LIB2TARGET) \
163 ALLTAR
165 .ENDIF
166 # --- .res file ----------------------------------------------------------
168 RES2FILELIST=\
169 $(SRS)$/uidlg.srs \
170 $(SRS)$/app.srs \
171 $(SRS)$/uicontrols.srs \
172 $(SRS)$/browser.srs \
173 $(SRS)$/uiuno.srs \
174 $(SRS)$/querydesign.srs \
175 $(SRS)$/tabledesign.srs \
176 $(SRS)$/relationdesign.srs \
177 $(SRS)$/uiimglst.srs \
178 $(SRS)$/uimisc.srs
180 .IF "$(GUI)"=="WNT"
181 #needed by $(SLO)$/adodatalinks.obj
182 SHL2STDLIBS+= $(OLE32LIB) \
183 $(OLEAUT32LIB) \
184 $(UUIDLIB)
185 .ENDIF
187 RESLIB2NAME=$(TARGET2)
188 RESLIB2IMAGES=$(PRJ)$/res
189 RESLIB2SRSFILES=$(RES2FILELIST)
191 # --- database tools (sdbt) -----------------------------------
192 .IF "$(L10N_framework)"==""
193 LIB3TARGET=$(SLB)$/$(TARGET3).lib
194 LIB3FILES=\
195 $(SLB)$/conntools.lib \
196 $(SLB)$/sdbtmisc.lib \
197 $(SLB)$/sdbtshared.lib
199 SHL3TARGET=$(TARGET3)$(DLLPOSTFIX)
201 SHL3STDLIBS= \
202 $(CPPULIB) \
203 $(CPPUHELPERLIB) \
204 $(UNOTOOLSLIB) \
205 $(COMPHELPERLIB) \
206 $(TOOLSLIB) \
207 $(DBTOOLSLIB) \
208 $(SALLIB)
210 SHL3LIBS=$(LIB3TARGET)
211 SHL3DEF=$(MISC)$/$(SHL3TARGET).def
212 DEF3NAME=$(SHL3TARGET)
213 SHL3VERSIONMAP=$(TARGET3).map
215 .END
217 # --- .res file ----------------------------------------------------------
219 RES3FILELIST=\
220 $(SRS)$/sdbt_strings.srs
222 RESLIB3NAME=$(TARGET3)
223 RESLIB3IMAGES=$(PRJ)$/res
224 RESLIB3SRSFILES=$(RES3FILELIST)
226 # --- Targets ----------------------------------
228 .INCLUDE : target.mk
229 .IF "$(depend)"==""
231 .IF "$(L10N_framework)"==""
233 $(MISC)$/$(SHL2TARGET).flt: makefile.mk
234 @echo ------------------------------
235 @echo CLEAR_THE_FILE > $@
236 @echo _TI >>$@
237 @echo _real >>$@
239 $(MISC)$/$(SHL1TARGET).flt: makefile.mk
240 @echo ------------------------------
241 @echo CLEAR_THE_FILE > $@
242 @echo _TI >>$@
243 @echo _real >>$@
244 .ENDIF
246 .ENDIF