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 #*************************************************************************
36 ENABLE_EXCEPTIONS
=TRUE
37 VISIBILITY_HIDDEN
=TRUE
39 # --- Settings ----------------------------------
41 .INCLUDE
: settings.mk
44 # --- Types -------------------------------------
47 $(SLO
)$/b2dellipse.obj \
48 $(SLO
)$/parserfragments.obj \
49 $(SLO
)$/svgexport.obj \
50 $(SLO
)$/svgfilter.obj \
51 $(SLO
)$/svgfontexport.obj \
52 $(SLO
)$/svgimport.obj \
53 $(SLO
)$/svgreader.obj \
54 $(SLO
)$/svgwriter.obj \
55 $(SLO
)$/tokenmap.obj \
58 .IF
"$(COMID)"=="gcc3"
59 .IF
"$(CCNUMVER)">="000400000000" ||
"$(SYSTEM_BOOST)"=="YES"
60 CFLAGS
+=-DUSE_MODERN_SPIRIT
63 .IF
"$(SYSTEM_BOOST)"=="NO"
64 CFLAGS
+=-DUSE_MODERN_SPIRIT
67 # --- Library -----------------------------------
69 SHL1TARGET
=$(TARGET
)$(DLLPOSTFIX
)
88 SHL1IMPLIB
= i
$(SHL1TARGET
)
89 SHL1LIBS
= $(SLB
)$/$(TARGET
).lib
90 SHL1VERSIONMAP
=exports.map
91 SHL1DEF
= $(MISC
)$/$(SHL1TARGET
).def
93 DEF1NAME
=$(SHL1TARGET
)
95 # --- Targets ----------------------------------
99 # Generate gperf files - from oox/source/token
100 $(INCCOM
)$/tokens.hxx
$(MISC
)$/tokens.gperf
: tokens.txt gentoken.pl
101 $(PERL
) gentoken.pl tokens.txt
$(INCCOM
)$/tokens.hxx
$(MISC
)$/tokens.gperf
103 $(INCCOM
)$/tokens.
cxx : $(MISC
)$/tokens.gperf makefile.mk
104 gperf
--compare-strncmp
-C
-m
20 $(MISC
)$/tokens.gperf |
$(SED
) -e
"s/(char\*)0/(char\*)0, 0/g" >$(INCCOM
)$/tokens.
cxx
106 $(SLO
)$/tokenmap.obj
: $(INCCOM
)$/tokens.
cxx $(INCCOM
)$/tokens.hxx
108 $(SLO
)$/parserfragments.obj
: $(INCCOM
)$/tokens.
cxx $(INCCOM
)$/tokens.hxx
110 $(SLO
)$/svgreader.obj
: $(INCCOM
)$/tokens.
cxx $(INCCOM
)$/tokens.hxx