merge the formfield patch from ooo-build
[ooovba.git] / sc / util / makefile.mk
blob179b9bb2718e68931c6c69bd9edef17de72c85db
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.49 $
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=sc
35 TARGET=scalc3
36 GEN_HID=TRUE
37 GEN_HID_OTHER=TRUE
38 USE_DEFFILE=TRUE
40 # --- Settings -----------------------------------------------------------
42 .INCLUDE : settings.mk
44 .IF "$(OS)"=="IRIX"
45 LINKFLAGS+=-Wl,-LD_LAYOUT:lgot_buffer=30
46 .ENDIF
48 # --- Resourcen ----------------------------------------------------
50 RESLIB1LIST=\
51 $(SRS)$/miscdlgs.srs \
52 $(SRS)$/docshell.srs \
53 $(SRS)$/ui.srs \
54 $(SRS)$/dbgui.srs \
55 $(SRS)$/drawfunc.srs \
56 $(SRS)$/core.srs \
57 $(SRS)$/styleui.srs \
58 $(SRS)$/formdlgs.srs \
59 $(SRS)$/pagedlg.srs \
60 $(SRS)$/navipi.srs \
61 $(SRS)$/cctrl.srs \
62 $(SOLARCOMMONRESDIR)$/sfx.srs
64 RESLIB1NAME=sc
65 RESLIB1IMAGES=\
66 $(PRJ)$/res \
67 $(PRJ)$/res/imglst/apptbx \
68 $(PRJ)$/res/imglst/dbgui \
69 $(PRJ)$/res/imglst/navipi
71 RESLIB1SRSFILES=\
72 $(RESLIB1LIST)
74 # --- StarClac DLL
76 SHL1TARGET= sc$(DLLPOSTFIX)
77 SHL1USE_EXPORTS=name
78 SHL1IMPLIB= sci
80 # dynamic libraries
81 SHL1STDLIBS= \
82 $(VBAHELPERLIB) \
83 $(BASICLIB) \
84 $(SFXLIB) \
85 $(SVTOOLLIB) \
86 $(SVLLIB) \
87 $(SVXCORELIB) \
88 $(SVXLIB) \
89 $(GOODIESLIB) \
90 $(BASEGFXLIB) \
91 $(DRAWINGLAYERLIB) \
92 $(VCLLIB) \
93 $(CPPULIB) \
94 $(CPPUHELPERLIB) \
95 $(COMPHELPERLIB) \
96 $(UCBHELPERLIB) \
97 $(TKLIB) \
98 $(VOSLIB) \
99 $(SALLIB) \
100 $(TOOLSLIB) \
101 $(I18NISOLANGLIB) \
102 $(UNOTOOLSLIB) \
103 $(SOTLIB) \
104 $(XMLOFFLIB) \
105 $(AVMEDIALIB) \
106 $(FORLIB) \
107 $(FORUILIB)
109 SHL1LIBS=$(LIB3TARGET) $(LIB4TARGET)
111 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
112 DEF1NAME=$(SHL1TARGET)
113 DEFLIB1NAME= $(LIB3TARGET:b) $(LIB4TARGET:b)
115 .IF "$(GUI)" == "WNT"
116 SHL1RES= $(RCTARGET)
117 .ENDIF
119 # --- Linken der Applikation ---------------------------------------
121 LIB3TARGET=$(SLB)$/scalc3.lib
122 LIB3FILES= \
123 $(SLB)$/app.lib \
124 $(SLB)$/docshell.lib \
125 $(SLB)$/view.lib \
126 $(SLB)$/undo.lib \
127 $(SLB)$/attrdlg.lib \
128 $(SLB)$/namedlg.lib \
129 $(SLB)$/miscdlgs.lib \
130 $(SLB)$/formdlgs.lib \
131 $(SLB)$/cctrl.lib \
132 $(SLB)$/dbgui.lib \
133 $(SLB)$/pagedlg.lib \
134 $(SLB)$/drawfunc.lib \
135 $(SLB)$/navipi.lib
137 LIB3FILES+= \
138 $(SLB)$/unoobj.lib
141 LIB4TARGET=$(SLB)$/scalc3c.lib
142 LIB4FILES= \
143 $(SLB)$/data.lib \
144 $(SLB)$/tool.lib \
145 $(SLB)$/xml.lib \
146 $(SLB)$/accessibility.lib
148 SHL2TARGET= scd$(DLLPOSTFIX)
149 SHL2IMPLIB= scdimp
150 SHL2VERSIONMAP= scd.map
151 SHL2DEF=$(MISC)$/$(SHL2TARGET).def
152 DEF2NAME= $(SHL2TARGET)
154 SHL2STDLIBS= \
155 $(SFX2LIB) \
156 $(SVTOOLLIB) \
157 $(SVLLIB) \
158 $(VCLLIB) \
159 $(TOOLSLIB) \
160 $(UCBHELPERLIB) \
161 $(CPPUHELPERLIB) \
162 $(CPPULIB) \
163 $(SOTLIB) \
164 $(SALLIB)
166 SHL2OBJS= $(SLO)$/scdetect.obj \
167 $(SLO)$/detreg.obj
168 SHL2DEPN+= makefile.mk
170 # split out filters
171 SHL6TARGET= scfilt$(DLLPOSTFIX)
172 SHL6IMPLIB= scfiltimp
173 SHL6LIBS= \
174 $(SLB)$/ftools.lib \
175 $(SLB)$/excel.lib \
176 $(SLB)$/xcl97.lib \
177 $(SLB)$/lotus.lib \
178 $(SLB)$/qpro.lib \
179 $(SLB)$/dif.lib \
180 $(SLB)$/html.lib \
181 $(SLB)$/rtf.lib \
182 $(SLB)$/scflt.lib
183 SHL6VERSIONMAP= scfilt.map
184 SHL6DEF=$(MISC)$/$(SHL6TARGET).def
185 DEF6NAME= $(SHL6TARGET)
186 SHL6DEPN=$(SHL1TARGETN)
187 SHL6STDLIBS= \
188 $(ISCLIB) \
189 $(BASICLIB) \
190 $(SFXLIB) \
191 $(SVTOOLLIB) \
192 $(SVLLIB) \
193 $(SVXCORELIB) \
194 $(SVXMSFILTERLIB) \
195 $(SVXLIB) \
196 $(BASEGFXLIB) \
197 $(DRAWINGLAYERLIB) \
198 $(VCLLIB) \
199 $(CPPULIB) \
200 $(CPPUHELPERLIB) \
201 $(COMPHELPERLIB) \
202 $(TKLIB) \
203 $(VOSLIB) \
204 $(SALLIB) \
205 $(TOOLSLIB) \
206 $(UNOTOOLSLIB) \
207 $(SOTLIB) \
208 $(OOXLIB) \
209 $(SAXLIB) \
210 $(FORLIB)
212 # add for scui
213 SHL8TARGET= scui$(DLLPOSTFIX)
214 SHL8IMPLIB= scuiimp
215 SHL8VERSIONMAP= scui.map
216 SHL8DEF=$(MISC)$/$(SHL8TARGET).def
217 SHL8DEPN=$(SHL1TARGETN)
218 DEF8NAME=$(SHL8TARGET)
220 SHL8STDLIBS= \
221 $(ISCLIB) \
222 $(SVXCORELIB) \
223 $(SVXLIB) \
224 $(SFX2LIB) \
225 $(SVTOOLLIB) \
226 $(VCLLIB) \
227 $(SVLLIB) \
228 $(SOTLIB) \
229 $(UNOTOOLSLIB) \
230 $(TOOLSLIB) \
231 $(I18NISOLANGLIB) \
232 $(COMPHELPERLIB) \
233 $(CPPULIB) \
234 $(SALLIB)
236 .IF "$(ENABLE_LAYOUT)" == "TRUE"
237 SHL8STDLIBS+=$(TKLIB)
238 .ENDIF # ENABLE_LAYOUT == TRUE
240 SHL8LIBS= $(SLB)$/scui.lib
241 LIB8TARGET = $(SLB)$/scui.lib
243 LIB8FILES=$(SLB)$/styleui.lib \
244 $(SLB)$/optdlg.lib
246 LIB8OBJFILES = \
247 $(SLO)$/scuiexp.obj \
248 $(SLO)$/scdlgfact.obj \
249 $(SLO)$/tpsubt.obj \
250 $(SLO)$/tptable.obj \
251 $(SLO)$/tpstat.obj \
252 $(SLO)$/tabpages.obj \
253 $(SLO)$/tpsort.obj \
254 $(SLO)$/sortdlg.obj \
255 $(SLO)$/validate.obj \
256 $(SLO)$/textdlgs.obj \
257 $(SLO)$/subtdlg.obj \
258 $(SLO)$/tphf.obj \
259 $(SLO)$/scuitphfedit.obj \
260 $(SLO)$/hfedtdlg.obj \
261 $(SLO)$/attrdlg.obj \
262 $(SLO)$/scuiimoptdlg.obj \
263 $(SLO)$/strindlg.obj \
264 $(SLO)$/tabbgcolordlg.obj \
265 $(SLO)$/shtabdlg.obj \
266 $(SLO)$/scendlg.obj \
267 $(SLO)$/pvfundlg.obj \
268 $(SLO)$/pfiltdlg.obj \
269 $(SLO)$/namepast.obj \
270 $(SLO)$/namecrea.obj \
271 $(SLO)$/mvtabdlg.obj \
272 $(SLO)$/mtrindlg.obj \
273 $(SLO)$/linkarea.obj \
274 $(SLO)$/lbseldlg.obj \
275 $(SLO)$/instbdlg.obj \
276 $(SLO)$/inscodlg.obj \
277 $(SLO)$/inscldlg.obj \
278 $(SLO)$/groupdlg.obj \
279 $(SLO)$/filldlg.obj \
280 $(SLO)$/delcodlg.obj \
281 $(SLO)$/delcldlg.obj \
282 $(SLO)$/datafdlg.obj \
283 $(SLO)$/dapitype.obj \
284 $(SLO)$/dapidata.obj \
285 $(SLO)$/crdlg.obj \
286 $(SLO)$/scuiasciiopt.obj \
287 $(SLO)$/textimportoptions.obj \
288 $(SLO)$/scuiautofmt.obj \
289 $(SLO)$/dpgroupdlg.obj \
290 $(SLO)$/editfield.obj
292 .IF "$(ENABLE_VBA)"=="YES"
294 TARGET_VBA=vbaobj
295 SHL9TARGET=$(TARGET_VBA)$(DLLPOSTFIX).uno
296 SHL9IMPLIB= i$(TARGET_VBA)
298 SHL9VERSIONMAP=$(TARGET_VBA).map
299 SHL9DEF=$(MISC)$/$(SHL9TARGET).def
300 DEF9NAME=$(SHL9TARGET)
301 .IF "$(VBA_EXTENSION)"=="YES"
302 SHL9RPATH=OXT
303 .ELSE
304 SHL9RPATH=OOO
305 .ENDIF
307 SHL9STDLIBS= \
308 $(VBAHELPERLIB) \
309 $(CPPUHELPERLIB) \
310 $(VCLLIB) \
311 $(CPPULIB) \
312 $(COMPHELPERLIB) \
313 $(SVLIB) \
314 $(TOOLSLIB) \
315 $(SALLIB)\
316 $(BASICLIB) \
317 $(SFXLIB) \
318 $(SVXCORELIB) \
319 $(SVTOOLLIB) \
320 $(SVLLIB) \
321 $(ISCLIB) \
322 $(VCLLIB) \
323 $(TKLIB) \
324 $(SVXMSFILTERLIB) \
325 $(FORLIB)
327 SHL9DEPN=$(SHL1TARGETN) $(SHL8TARGETN)
328 SHL9LIBS=$(SLB)$/$(TARGET_VBA).lib
330 .IF "$(GUI)"=="UNX" || "$(GUI)"=="MAC"
331 LIBCOMPNAME=$(LOCAL_COMMON_OUT)$/lib/lib$(SHL9TARGET)$(DLLPOST)
332 .ELSE
333 LIBCOMPNAME=$(COMMONBIN)$/$(SHL9TARGET)$(DLLPOST)
334 .ENDIF
336 .ENDIF
339 # --- Targets -------------------------------------------------------------
341 .INCLUDE : target.mk
343 COMP=
344 .IF "$(VBA_EXTENSION)"=="YES"
345 COMP=build_extn
346 .ENDIF
348 ALLTAR: $(MISC)$/linkinc.ls $(COMP)
350 build_extn : $(SHL9TARGETN)
351 $(PERL) createExtPackage.pl $(COMMONBIN)$/vbaapi.oxt $(SOLARBINDIR)$/oovbaapi.rdb $(LIBCOMPNAME)