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
)
109 SHL1LIBS
=$(LIB3TARGET
) $(LIB4TARGET
)
111 SHL1DEF
=$(MISC
)$/$(SHL1TARGET
).def
112 DEF1NAME
=$(SHL1TARGET
)
113 DEFLIB1NAME
= $(LIB3TARGET
:b
) $(LIB4TARGET
:b
)
115 .IF
"$(GUI)" == "WNT"
119 # --- Linken der Applikation ---------------------------------------
121 LIB3TARGET
=$(SLB
)$/scalc3.lib
124 $(SLB
)$/docshell.lib \
127 $(SLB
)$/attrdlg.lib \
128 $(SLB
)$/namedlg.lib \
129 $(SLB
)$/miscdlgs.lib \
130 $(SLB
)$/formdlgs.lib \
133 $(SLB
)$/pagedlg.lib \
134 $(SLB
)$/drawfunc.lib \
141 LIB4TARGET
=$(SLB
)$/scalc3c.lib
146 $(SLB
)$/accessibility.lib
148 SHL2TARGET
= scd
$(DLLPOSTFIX
)
150 SHL2VERSIONMAP
= scd.map
151 SHL2DEF
=$(MISC
)$/$(SHL2TARGET
).def
152 DEF2NAME
= $(SHL2TARGET
)
166 SHL2OBJS
= $(SLO
)$/scdetect.obj \
168 SHL2DEPN
+= makefile.mk
171 SHL6TARGET
= scfilt
$(DLLPOSTFIX
)
172 SHL6IMPLIB
= scfiltimp
183 SHL6VERSIONMAP
= scfilt.map
184 SHL6DEF
=$(MISC
)$/$(SHL6TARGET
).def
185 DEF6NAME
= $(SHL6TARGET
)
186 SHL6DEPN
=$(SHL1TARGETN
)
213 SHL8TARGET
= scui
$(DLLPOSTFIX
)
215 SHL8VERSIONMAP
= scui.map
216 SHL8DEF
=$(MISC
)$/$(SHL8TARGET
).def
217 SHL8DEPN
=$(SHL1TARGETN
)
218 DEF8NAME
=$(SHL8TARGET
)
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 \
247 $(SLO
)$/scuiexp.obj \
248 $(SLO
)$/scdlgfact.obj \
250 $(SLO
)$/tptable.obj \
252 $(SLO
)$/tabpages.obj \
254 $(SLO
)$/sortdlg.obj \
255 $(SLO
)$/validate.obj \
256 $(SLO
)$/textdlgs.obj \
257 $(SLO
)$/subtdlg.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 \
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"
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
)