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 #*************************************************************************
37 ENABLE_EXCEPTIONS
=TRUE
39 .INCLUDE
: settings.mk
41 .IF
"$(ENABLE_LAYOUT)" == "TRUE"
43 # Allow zoom and wordcount to be built without depending on svx,sv,sfx2
44 CFLAGS
+= -I..
/$(PRJ
)/svx
/inc
-I..
/$(PRJ
)/svtools
/inc
-I..
/$(PRJ
)/sfx2
/inc
-I..
/$(PRJ
)/sc
/inc
-I..
/$(PRJ
)/sc
/source
/ui
/inc
-I..
/$(PRJ
)/sw
/inc
46 .INCLUDE
: $(PRJ
)$/util
$/makefile.pmk
48 .IF
"$(COMNAME)" == "gcc3"
49 CFLAGS
+=-Wall
-Wno-non-virtual-dtor
67 $(OBJ
)$/wordcountdialog.obj \
85 svtools
= $(INCCOM
)/svtools
101 TRALAY
=$(AUGMENT_LIBRARY_PATH
) tralay
102 XML_LANGS
=$(alllangiso
)
104 ALLTAR
: localize.sdf
$(BIN
)/testrc
$(svtools
) $(foreach,i
,$(XML_FILES
) en-US
/$i)
106 $(XML_LANGS
:f
:t
"/%.xml ")/%.xml
: %.xml
107 $(TRALAY
) -m localize.sdf
-o .
-l
$(XML_LANGS
:f
:t
" -l ") $<
114 # FIXME: there's a bug in svtools layout or usage
115 # Include files are in svtools/inc, but are referenced as <svtools/..>
116 # They probably should be in svtools/inc/svtools
117 # This means that include files can only be included after svtools
118 # is built, which would mean a circular dependency,
119 # because svtools depends on toolkit.
120 ln
-sf ..
$/$(PRJ
)$/svtools
$/inc
$(INCCOM
)$/svtools
123 cp
-pv message-box.xml
$(PRJ
)/uiconfig
/layout
124 cp
-pv tab-dialog.xml
$(PRJ
)/uiconfig
/layout
125 $(SHELL
) .
/un-test.sh zoom.
cxx > ..
/$(PRJ
)/svx
/source
/dialog
/zoom.
cxx
126 $(SHELL
) .
/un-test.sh zoom.hxx
> ..
/$(PRJ
)/svx
/source
/dialog
/zoom.hxx
127 touch ..
/$(PRJ
)/svx
/source
/dialog
/dlgfact.
cxx
128 cp
-pv zoom.xml ..
/$(PRJ
)/svx
/uiconfig
/layout
129 $(SHELL
) .
/un-test.sh wordcountdialog.
cxx > ..
/$(PRJ
)/sw
/source
/ui
/dialog
/wordcountdialog.
cxx
130 $(SHELL
) .
/un-test.sh wordcountdialog.hxx
> ..
/$(PRJ
)/sw
/source
/ui
/inc
/wordcountdialog.hxx
131 touch ..
/$(PRJ
)/sw
/source
/ui
/dialog
/swdlgfact.
cxx
132 cp
-pv wordcount.xml ..
/$(PRJ
)/sw
/uiconfig
/layout
133 # FIXME: broken setup
134 ln
-sf ..
/inc
/wordcountdialog.hxx ..
/$(PRJ
)/sw
/source
/ui
/dialog
/wordcountdialog.hxx
135 $(SHELL
) .
/un-test.sh tpsort.
cxx > ..
/$(PRJ
)/sc
/source
/ui
/dbgui
/tpsort.
cxx
136 $(SHELL
) .
/un-test.sh tpsort.hxx
> ..
/$(PRJ
)/sc
/source
/ui
/inc
/tpsort.hxx
137 $(SHELL
) .
/un-test.sh sortdlg.
cxx > ..
/$(PRJ
)/sc
/source
/ui
/dbgui
/sortdlg.
cxx
138 $(SHELL
) .
/un-test.sh sortdlg.hxx
> ..
/$(PRJ
)/sc
/source
/ui
/inc
/sortdlg.hxx
139 touch ..
/$(PRJ
)/sc
/source
/ui
/attrdlg
/scdlgfact.
cxx
140 touch ..
/$(PRJ
)/sc
/source
/ui
/view
/cellsh2.
cxx
141 cp
-pv insert-sheet.xml ..
/$(PRJ
)/sc
/uiconfig
/layout
142 cp
-pv move-copy-sheet.xml ..
/$(PRJ
)/sc
/uiconfig
/layout
143 cp
-pv sort-options.xml ..
/$(PRJ
)/sc
/uiconfig
/layout
144 cp
-pv string-input.xml ..
/$(PRJ
)/sc
/uiconfig
/layout
146 localize.sdf
: $(PRJ
)/..
/svx
/source
/dialog
/localize.sdf
$(PRJ
)/..
/sw
/source
/ui
/dialog
/localize.sdf
$(PRJ
)/..
/sc
/source
/ui
/src
/localize.sdf
147 grep sortdlg.src
$(PRJ
)/..
/sc
/source
/ui
/src
/localize.sdf | awk
-F
'\t' '{{printf "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n", "layout", "sc\\uiconfig\\layout\\sort-options.xml", $$3, "layout", $$6 "_label", "", "", $$8, "0", $$10, $$11, $$12, "", $$14, $$15}}' | sed
-e
's/\(\(FL\|STR\)_[^\t]*\)_label/\1_text/' -e
's/\t_label/\tRID_SCDLG_SORT_title/' > sort-options-
$@
148 grep wordcountdialog.src
$(PRJ
)/..
/sw
/source
/ui
/dialog
/localize.sdf | awk
-F
'\t' '{{printf "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n", "layout", "sw\\uiconfig\\layout\\wordcount.xml", $$3, "layout", $$6 "_label", "", "", $$8, "0", $$10, $$11, $$12, "", $$14, $$15}}' | sed
-e
's/\(\(FL\|STR\)_[^\t]*\)_label/\1_text/' -e
's/\t_label/\tDLG_WORDCOUNT_title/' > wordcount-
$@
149 grep zoom.src
$(PRJ
)/source
/dialog
/localize.sdf | awk
-F
'\t' '{{printf "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n", "layout", "svx\\uiconfig\\layout\\zoom.xml", $$3, "layout", $$6 "_label", "", "", $$8, "0", $$10, $$11, $$12, "", $$14, $$15}}' | sed
-e
's/\(\(FL\|STR\)_[^\t]*\)_label/\1_text/' -e
's/\t_label/\tRID_SVXDLG_ZOOM_title/' > zoom-
$@
150 echo
'#empty' | cat
- sort-options-
$@ wordcount-
$@ zoom-
$@
> $@
153 .ELSE
# ENABLE_LAYOUT != TRUE
155 .ENDIF
# ENABLE_LAYOUT != TRUE