merge the formfield patch from ooo-build
[ooovba.git] / sw / util / makefile.mk
blobc89f6c9326c999d0b2053cdd2595faf65fe5c3b7
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.74 $
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=..
34 PRJNAME=sw
35 TARGET=sw
36 GEN_HID=TRUE
37 GEN_HID_OTHER=TRUE
38 USE_DEFFILE=TRUE
40 # --- Settings ------------------------------------------------------------
42 .INCLUDE : settings.mk
44 # --- Allgemein -----------------------------------------------------------
46 .IF "$(OS)"=="IRIX"
47 LINKFLAGS+=-Wl,-LD_LAYOUT:lgot_buffer=40
48 .ENDIF
50 sw_res_files= \
51 $(SRS)$/app.srs \
52 $(SRS)$/dialog.srs \
53 $(SRS)$/chrdlg.srs \
54 $(SRS)$/config.srs \
55 $(SRS)$/dbui.srs \
56 $(SRS)$/dochdl.srs \
57 $(SRS)$/docvw.srs \
58 $(SRS)$/envelp.srs \
59 $(SRS)$/fldui.srs \
60 $(SRS)$/fmtui.srs \
61 $(SRS)$/frmdlg.srs \
62 $(SRS)$/globdoc.srs \
63 $(SRS)$/index.srs \
64 $(SRS)$/lingu.srs \
65 $(SRS)$/misc.srs \
66 $(SRS)$/ribbar.srs \
67 $(SRS)$/shells.srs \
68 $(SRS)$/smartmenu.srs \
69 $(SRS)$/table.srs \
70 $(SRS)$/uiview.srs \
71 $(SRS)$/undo.srs \
72 $(SRS)$/unocore.srs \
73 $(SRS)$/utlui.srs \
74 $(SRS)$/web.srs \
75 $(SRS)$/wrtsh.srs \
76 $(SOLARCOMMONRESDIR)$/sfx.srs
78 RESLIB1NAME=sw
79 RESLIB1IMAGES=$(PRJ)$/imglst $(PRJ)$/res
80 RESLIB1SRSFILES= \
81 $(sw_res_files)
83 SWLIBFILES = \
84 $(SLB)$/core1.lib \
85 $(SLB)$/core2.lib \
86 $(SLB)$/core3.lib \
87 $(SLB)$/core4.lib \
88 $(SLB)$/filter.lib \
89 $(SLB)$/ui1.lib \
90 $(SLB)$/ui2.lib
92 SHL1TARGET= $(TARGET)$(DLLPOSTFIX)
93 SHL1USE_EXPORTS=name
94 SHL1IMPLIB= _$(TARGET)
95 SHL1LIBS= $(SLB)$/swall.lib $(SWLIBFILES)
97 LIB1TARGET =$(SLB)$/swall.lib
99 LIB1OBJFILES= $(OUT)$/slo$/swmodule.obj \
100 $(OUT)$/slo$/swdll.obj
102 # dynamic libraries
103 SHL1STDLIBS+= \
104 $(LNGLIB) \
105 $(SVXCORELIB) \
106 $(SVXLIB) \
107 $(SFXLIB) \
108 $(XMLOFFLIB) \
109 $(BASICLIB) \
110 $(GOODIESLIB) \
111 $(BASEGFXLIB) \
112 $(DRAWINGLAYERLIB) \
113 $(SVTOOLLIB) \
114 $(TKLIB) \
115 $(VCLLIB) \
116 $(SVLLIB) \
117 $(SOTLIB) \
118 $(UNOTOOLSLIB) \
119 $(TOOLSLIB) \
120 $(I18NISOLANGLIB) \
121 $(COMPHELPERLIB) \
122 $(UCBHELPERLIB) \
123 $(CPPUHELPERLIB) \
124 $(CPPULIB) \
125 $(VOSLIB) \
126 $(SALLIB) \
127 $(SALHELPERLIB) \
128 $(ICUUCLIB) \
129 $(I18NUTILLIB) \
130 $(VBAHELPERLIB) \
131 $(AVMEDIALIB)
133 .IF "$(GUI)"=="WNT"
134 SHL1STDLIBS+= $(ADVAPI32LIB)
135 .ENDIF # WNT
138 SHL1DEF= $(MISC)$/$(SHL1TARGET).def
139 SHL1BASE= 0x1e000000
140 DEF1NAME =$(SHL1TARGET)
141 DEFLIB1NAME=swall $(SWLIBFILES:b)
143 SHL2TARGET= swd$(DLLPOSTFIX)
144 SHL2IMPLIB= swdimp
145 SHL2VERSIONMAP= swd.map
146 SHL2DEF=$(MISC)$/$(SHL2TARGET).def
147 DEF2NAME= $(SHL2TARGET)
149 SHL2STDLIBS= \
150 $(SFX2LIB) \
151 $(SVTOOLLIB) \
152 $(SVLLIB) \
153 $(VCLLIB) \
154 $(SOTLIB) \
155 $(TOOLSLIB) \
156 $(UCBHELPERLIB) \
157 $(COMPHELPERLIB) \
158 $(CPPUHELPERLIB) \
159 $(CPPULIB) \
160 $(SALLIB)
162 SHL2OBJS= $(SLO)$/swdetect.obj \
163 $(SLO)$/swdet2.obj \
164 $(SLO)$/detreg.obj \
165 $(SLO)$/iodetect.obj
167 .IF "$(product)"==""
168 SHL2OBJS+= \
169 $(SLO)$/errhdl.obj
170 .ENDIF
172 SHL2DEPN+= makefile.mk
174 # add for swui
175 SHL3TARGET= swui$(DLLPOSTFIX)
176 SHL3IMPLIB= swuiimp
177 SHL3VERSIONMAP= swui.map
178 SHL3DEF=$(MISC)$/$(SHL3TARGET).def
179 SHL3DEPN=$(SHL1TARGETN)
180 DEF3NAME= $(SHL3TARGET)
182 SHL3STDLIBS= \
183 $(ISWLIB) \
184 $(SVXCORELIB) \
185 $(SVXLIB) \
186 $(SFX2LIB) \
187 $(SVTOOLLIB) \
188 $(TKLIB) \
189 $(VCLLIB) \
190 $(SOTLIB) \
191 $(SVLLIB) \
192 $(UNOTOOLSLIB) \
193 $(TOOLSLIB) \
194 $(I18NISOLANGLIB) \
195 $(COMPHELPERLIB) \
196 $(UCBHELPERLIB) \
197 $(CPPUHELPERLIB) \
198 $(CPPULIB) \
199 $(SALLIB) \
200 $(SOTLIB)
202 SHL3LIBS= $(SLB)$/swui.lib
203 LIB3TARGET = $(SLB)$/swui.lib
205 LIB3OBJFILES = \
206 $(SLO)$/swuiexp.obj \
207 $(SLO)$/SwRewriter.obj \
208 $(SLO)$/swdlgfact.obj \
209 $(SLO)$/addrdlg.obj \
210 $(SLO)$/ascfldlg.obj \
211 $(SLO)$/break.obj \
212 $(SLO)$/bookmark.obj \
213 $(SLO)$/changedb.obj \
214 $(SLO)$/chardlg.obj \
215 $(SLO)$/convert.obj \
216 $(SLO)$/cption.obj \
217 $(SLO)$/dbinsdlg.obj \
218 $(SLO)$/docfnote.obj \
219 $(SLO)$/docstdlg.obj \
220 $(SLO)$/envlop1.obj \
221 $(SLO)$/envfmt.obj \
222 $(SLO)$/envprt.obj \
223 $(SLO)$/label1.obj \
224 $(SLO)$/labfmt.obj \
225 $(SLO)$/labelexp.obj \
226 $(SLO)$/labprt.obj \
227 $(SLO)$/drpcps.obj \
228 $(SLO)$/pardlg.obj \
229 $(SLO)$/pattern.obj \
230 $(SLO)$/pggrid.obj \
231 $(SLO)$/pgfnote.obj \
232 $(SLO)$/rowht.obj \
233 $(SLO)$/selglos.obj \
234 $(SLO)$/splittbl.obj \
235 $(SLO)$/srtdlg.obj \
236 $(SLO)$/tautofmt.obj \
237 $(SLO)$/tblnumfm.obj \
238 $(SLO)$/uiborder.obj \
239 $(SLO)$/wrap.obj \
240 $(SLO)$/colwd.obj \
241 $(SLO)$/tabledlg.obj \
242 $(SLO)$/fldtdlg.obj \
243 $(SLO)$/fldedt.obj \
244 $(SLO)$/fldpage.obj \
245 $(SLO)$/flddb.obj \
246 $(SLO)$/flddinf.obj \
247 $(SLO)$/flddok.obj \
248 $(SLO)$/fldfunc.obj \
249 $(SLO)$/fldref.obj \
250 $(SLO)$/FldRefTreeListBox.obj \
251 $(SLO)$/fldvar.obj \
252 $(SLO)$/swrenamexnameddlg.obj \
253 $(SLO)$/swmodalredlineacceptdlg.obj \
254 $(SLO)$/abstract.obj \
255 $(SLO)$/frmdlg.obj \
256 $(SLO)$/tmpdlg.obj \
257 $(SLO)$/frmpage.obj \
258 $(SLO)$/glosbib.obj \
259 $(SLO)$/glossary.obj \
260 $(SLO)$/inpdlg.obj \
261 $(SLO)$/insfnote.obj \
262 $(SLO)$/instable.obj \
263 $(SLO)$/insrule.obj \
264 $(SLO)$/javaedit.obj \
265 $(SLO)$/linenum.obj \
266 $(SLO)$/mailmrge.obj \
267 $(SLO)$/multmrk.obj \
268 $(SLO)$/mergetbl.obj \
269 $(SLO)$/outline.obj \
270 $(SLO)$/num.obj \
271 $(SLO)$/column.obj \
272 $(SLO)$/cnttab.obj \
273 $(SLO)$/cntex.obj \
274 $(SLO)$/uiregionsw.obj \
275 $(SLO)$/optload.obj \
276 $(SLO)$/optcomp.obj \
277 $(SLO)$/optpage.obj \
278 $(SLO)$/swuiccoll.obj \
279 $(SLO)$/numpara.obj \
280 $(SLO)$/swdialmgr.obj \
281 $(SLO)$/swuiidxmrk.obj \
282 $(SLO)$/DropDownFieldDialog.obj \
283 $(SLO)$/macassgn.obj \
284 $(SLO)$/wordcountdialog.obj \
285 $(SLO)$/mailconfigpage.obj \
286 $(SLO)$/addresslistdialog.obj \
287 $(SLO)$/createaddresslistdialog.obj \
288 $(SLO)$/customizeaddresslistdialog.obj \
289 $(SLO)$/dbtablepreviewdialog.obj \
290 $(SLO)$/mailmergewizard.obj \
291 $(SLO)$/mmdocselectpage.obj \
292 $(SLO)$/mmlayoutpage.obj \
293 $(SLO)$/mmoutputpage.obj \
294 $(SLO)$/mmoutputtypepage.obj \
295 $(SLO)$/mmaddressblockpage.obj \
296 $(SLO)$/mmgreetingspage.obj \
297 $(SLO)$/mmmergepage.obj \
298 $(SLO)$/mmpreparemergepage.obj \
299 $(SLO)$/selectdbtabledialog.obj
301 .IF "$(GUI)$(COM)" == "WNTMSC"
302 .IF "$(ENABLE_PCH)" != "" && ( "$(PRJNAME)"!="sw" || "$(BUILD_SPECIAL)"!="TRUE" )
303 #target sw
304 SHL1OBJS += $(SLO)$/pchname.obj \
305 $(SLO)$/pchname_ex.obj
306 #target swd
307 SHL2OBJS += $(SLO)$/pchname.obj \
308 $(SLO)$/pchname_ex.obj
309 #target swui
310 SHL3OBJS += $(SLO)$/pchname.obj \
311 $(SLO)$/pchname_ex.obj
312 .ENDIF # "$(ENABLE_PCH)" != ""
313 .ENDIF # "$(GUI)$(COM)" == "WNTMSC"
315 SHL4TARGET=msword$(DLLPOSTFIX)
316 SHL4VERSIONMAP=msword.map
317 SHL4LIBS=$(SLB)$/rtf.lib $(SLB)$/ww8.lib
318 SHL4DEPN=$(SHL1TARGETN)
319 SHL4DEF=$(MISC)$/$(SHL4TARGET).def
320 DEF4NAME=$(SHL4TARGET)
322 SHL4STDLIBS= \
323 $(ISWLIB) \
324 $(SVXCORELIB) \
325 $(SVXMSFILTERLIB) \
326 $(SFXLIB) \
327 $(GOODIESLIB) \
328 $(BASEGFXLIB) \
329 $(SVTOOLLIB) \
330 $(TKLIB) \
331 $(VCLLIB) \
332 $(SVLLIB) \
333 $(SOTLIB) \
334 $(UNOTOOLSLIB) \
335 $(TOOLSLIB) \
336 $(I18NISOLANGLIB) \
337 $(COMPHELPERLIB) \
338 $(UCBHELPERLIB) \
339 $(CPPULIB) \
340 $(CPPUHELPERLIB) \
341 $(SALLIB) \
342 $(ICUUCLIB) \
343 $(BASICLIB) \
344 $(I18NUTILLIB)
346 #target vba
347 TARGET_VBA=vbaswobj
348 SHL5TARGET=$(TARGET_VBA)$(DLLPOSTFIX).uno
349 SHL5IMPLIB= i$(TARGET_VBA)
351 SHL5VERSIONMAP=$(TARGET_VBA).map
352 SHL5DEF=$(MISC)$/$(SHL5TARGET).def
353 DEF5NAME=$(SHL5TARGET)
354 SHL5STDLIBS= \
355 $(ISWLIB) \
356 $(CPPUHELPERLIB) \
357 $(VCLLIB) \
358 $(CPPULIB) \
359 $(COMPHELPERLIB) \
360 $(SVLIB) \
361 $(UNOTOOLSLIB) \
362 $(TOOLSLIB) \
363 $(SALLIB)\
364 $(VBAHELPERLIB) \
365 $(BASICLIB) \
366 $(SFXLIB) \
367 $(SVXLIB) \
368 $(SVTOOLLIB) \
369 $(SVLLIB) \
370 $(VCLLIB) \
371 $(TKLIB) \
372 $(I18NISOLANGLIB) \
373 $(SVXCORELIB) \
374 $(SVXMSFILTERLIB) \
376 SHL5DEPN=$(SHL1TARGETN)
377 SHL5LIBS=$(SLB)$/$(TARGET_VBA).lib
379 .INCLUDE : target.mk