update dev300-m57
[ooovba.git] / sc / util / makefile.mk
blob45973285101a970e55446dec1ae0646a46225e5d
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 $(DBTOOLSLIB) \
106 $(AVMEDIALIB) \
107 $(FORLIB) \
108 $(FORUILIB)
110 SHL1LIBS=$(LIB3TARGET) $(LIB4TARGET)
112 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
113 DEF1NAME=$(SHL1TARGET)
114 DEFLIB1NAME= $(LIB3TARGET:b) $(LIB4TARGET:b)
116 .IF "$(GUI)" == "WNT"
117 SHL1RES= $(RCTARGET)
118 .ENDIF
120 # --- Linken der Applikation ---------------------------------------
122 LIB3TARGET=$(SLB)$/scalc3.lib
123 LIB3FILES= \
124 $(SLB)$/app.lib \
125 $(SLB)$/docshell.lib \
126 $(SLB)$/view.lib \
127 $(SLB)$/undo.lib \
128 $(SLB)$/attrdlg.lib \
129 $(SLB)$/namedlg.lib \
130 $(SLB)$/miscdlgs.lib \
131 $(SLB)$/formdlgs.lib \
132 $(SLB)$/cctrl.lib \
133 $(SLB)$/dbgui.lib \
134 $(SLB)$/pagedlg.lib \
135 $(SLB)$/drawfunc.lib \
136 $(SLB)$/navipi.lib
138 LIB3FILES+= \
139 $(SLB)$/unoobj.lib
142 LIB4TARGET=$(SLB)$/scalc3c.lib
143 LIB4FILES= \
144 $(SLB)$/data.lib \
145 $(SLB)$/tool.lib \
146 $(SLB)$/xml.lib \
147 $(SLB)$/accessibility.lib
149 SHL2TARGET= scd$(DLLPOSTFIX)
150 SHL2IMPLIB= scdimp
151 SHL2VERSIONMAP= scd.map
152 SHL2DEF=$(MISC)$/$(SHL2TARGET).def
153 DEF2NAME= $(SHL2TARGET)
155 SHL2STDLIBS= \
156 $(SFX2LIB) \
157 $(SVTOOLLIB) \
158 $(SVLLIB) \
159 $(VCLLIB) \
160 $(TOOLSLIB) \
161 $(UCBHELPERLIB) \
162 $(CPPUHELPERLIB) \
163 $(CPPULIB) \
164 $(SOTLIB) \
165 $(SALLIB)
167 SHL2OBJS= $(SLO)$/scdetect.obj \
168 $(SLO)$/detreg.obj
169 SHL2DEPN+= makefile.mk
171 # split out filters
172 SHL6TARGET= scfilt$(DLLPOSTFIX)
173 SHL6IMPLIB= scfiltimp
174 SHL6LIBS= \
175 $(SLB)$/ftools.lib \
176 $(SLB)$/excel.lib \
177 $(SLB)$/xcl97.lib \
178 $(SLB)$/lotus.lib \
179 $(SLB)$/qpro.lib \
180 $(SLB)$/dif.lib \
181 $(SLB)$/html.lib \
182 $(SLB)$/rtf.lib \
183 $(SLB)$/scflt.lib
184 SHL6VERSIONMAP= scfilt.map
185 SHL6DEF=$(MISC)$/$(SHL6TARGET).def
186 DEF6NAME= $(SHL6TARGET)
187 SHL6DEPN=$(SHL1TARGETN)
188 SHL6STDLIBS= \
189 $(ISCLIB) \
190 $(BASICLIB) \
191 $(SFXLIB) \
192 $(SVTOOLLIB) \
193 $(SVLLIB) \
194 $(SVXCORELIB) \
195 $(SVXMSFILTERLIB) \
196 $(SVXLIB) \
197 $(BASEGFXLIB) \
198 $(DRAWINGLAYERLIB) \
199 $(VCLLIB) \
200 $(CPPULIB) \
201 $(CPPUHELPERLIB) \
202 $(COMPHELPERLIB) \
203 $(TKLIB) \
204 $(VOSLIB) \
205 $(SALLIB) \
206 $(TOOLSLIB) \
207 $(UNOTOOLSLIB) \
208 $(SOTLIB) \
209 $(OOXLIB) \
210 $(SAXLIB) \
211 $(FORLIB)
213 # add for scui
214 SHL8TARGET= scui$(DLLPOSTFIX)
215 SHL8IMPLIB= scuiimp
216 SHL8VERSIONMAP= scui.map
217 SHL8DEF=$(MISC)$/$(SHL8TARGET).def
218 SHL8DEPN=$(SHL1TARGETN)
219 DEF8NAME=$(SHL8TARGET)
221 SHL8STDLIBS= \
222 $(ISCLIB) \
223 $(SVXCORELIB) \
224 $(SVXLIB) \
225 $(SFX2LIB) \
226 $(SVTOOLLIB) \
227 $(VCLLIB) \
228 $(SVLLIB) \
229 $(SOTLIB) \
230 $(UNOTOOLSLIB) \
231 $(TOOLSLIB) \
232 $(I18NISOLANGLIB) \
233 $(COMPHELPERLIB) \
234 $(CPPULIB) \
235 $(SALLIB)
237 .IF "$(ENABLE_LAYOUT)" == "TRUE"
238 SHL8STDLIBS+=$(TKLIB)
239 .ENDIF # ENABLE_LAYOUT == TRUE
241 SHL8LIBS= $(SLB)$/scui.lib
242 LIB8TARGET = $(SLB)$/scui.lib
244 LIB8FILES=$(SLB)$/styleui.lib \
245 $(SLB)$/optdlg.lib
247 LIB8OBJFILES = \
248 $(SLO)$/scuiexp.obj \
249 $(SLO)$/scdlgfact.obj \
250 $(SLO)$/tpsubt.obj \
251 $(SLO)$/tptable.obj \
252 $(SLO)$/tpstat.obj \
253 $(SLO)$/tabpages.obj \
254 $(SLO)$/tpsort.obj \
255 $(SLO)$/sortdlg.obj \
256 $(SLO)$/validate.obj \
257 $(SLO)$/textdlgs.obj \
258 $(SLO)$/subtdlg.obj \
259 $(SLO)$/tphf.obj \
260 $(SLO)$/scuitphfedit.obj \
261 $(SLO)$/hfedtdlg.obj \
262 $(SLO)$/attrdlg.obj \
263 $(SLO)$/scuiimoptdlg.obj \
264 $(SLO)$/strindlg.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)$/langchooser.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)