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 $
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 #*************************************************************************
40 # --- Settings -----------------------------------------------------------
42 .INCLUDE
: settings.mk
45 LINKFLAGS
+=-Wl
,-LD_LAYOUT
:lgot_buffer
=30
48 # --- Resourcen ----------------------------------------------------
51 $(SRS
)$/miscdlgs.srs \
52 $(SRS
)$/docshell.srs \
55 $(SRS
)$/drawfunc.srs \
58 $(SRS
)$/formdlgs.srs \
62 $(SOLARCOMMONRESDIR
)$/sfx.srs
67 $(PRJ
)$/res
/imglst
/apptbx \
68 $(PRJ
)$/res
/imglst
/dbgui \
69 $(PRJ
)$/res
/imglst
/navipi
76 SHL1TARGET
= sc
$(DLLPOSTFIX
)
110 SHL1LIBS
=$(LIB3TARGET
) $(LIB4TARGET
)
112 SHL1DEF
=$(MISC
)$/$(SHL1TARGET
).def
113 DEF1NAME
=$(SHL1TARGET
)
114 DEFLIB1NAME
= $(LIB3TARGET
:b
) $(LIB4TARGET
:b
)
116 .IF
"$(GUI)" == "WNT"
120 # --- Linken der Applikation ---------------------------------------
122 LIB3TARGET
=$(SLB
)$/scalc3.lib
125 $(SLB
)$/docshell.lib \
128 $(SLB
)$/attrdlg.lib \
129 $(SLB
)$/namedlg.lib \
130 $(SLB
)$/miscdlgs.lib \
131 $(SLB
)$/formdlgs.lib \
134 $(SLB
)$/pagedlg.lib \
135 $(SLB
)$/drawfunc.lib \
142 LIB4TARGET
=$(SLB
)$/scalc3c.lib
147 $(SLB
)$/accessibility.lib
149 SHL2TARGET
= scd
$(DLLPOSTFIX
)
151 SHL2VERSIONMAP
= scd.map
152 SHL2DEF
=$(MISC
)$/$(SHL2TARGET
).def
153 DEF2NAME
= $(SHL2TARGET
)
167 SHL2OBJS
= $(SLO
)$/scdetect.obj \
169 SHL2DEPN
+= makefile.mk
172 SHL6TARGET
= scfilt
$(DLLPOSTFIX
)
173 SHL6IMPLIB
= scfiltimp
184 SHL6VERSIONMAP
= scfilt.map
185 SHL6DEF
=$(MISC
)$/$(SHL6TARGET
).def
186 DEF6NAME
= $(SHL6TARGET
)
187 SHL6DEPN
=$(SHL1TARGETN
)
214 SHL8TARGET
= scui
$(DLLPOSTFIX
)
216 SHL8VERSIONMAP
= scui.map
217 SHL8DEF
=$(MISC
)$/$(SHL8TARGET
).def
218 SHL8DEPN
=$(SHL1TARGETN
)
219 DEF8NAME
=$(SHL8TARGET
)
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 \
248 $(SLO
)$/scuiexp.obj \
249 $(SLO
)$/scdlgfact.obj \
251 $(SLO
)$/tptable.obj \
253 $(SLO
)$/tabpages.obj \
255 $(SLO
)$/sortdlg.obj \
256 $(SLO
)$/validate.obj \
257 $(SLO
)$/textdlgs.obj \
258 $(SLO
)$/subtdlg.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 \
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"
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"
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
)
333 LIBCOMPNAME
=$(COMMONBIN
)$/$(SHL9TARGET
)$(DLLPOST
)
339 # --- Targets -------------------------------------------------------------
344 .IF
"$(VBA_EXTENSION)"=="YES"
348 ALLTAR
: $(MISC
)$/linkinc.ls
$(COMP
)
350 build_extn
: $(SHL9TARGETN
)
351 $(PERL
) createExtPackage.pl
$(COMMONBIN
)$/vbaapi.oxt
$(SOLARBINDIR
)$/oovbaapi.rdb
$(LIBCOMPNAME
)