Update ooo320-m1
[ooovba.git] / filter / source / svg / makefile.mk
blob52cade907739741941d79dd49ad1a6ba5872c9c3
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.14 $
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=filter
35 TARGET=svgfilter
36 ENABLE_EXCEPTIONS=TRUE
37 VISIBILITY_HIDDEN=TRUE
39 # --- Settings ----------------------------------
41 .INCLUDE : settings.mk
42 .INCLUDE : libs.mk
44 # --- Types -------------------------------------
46 SLOFILES= \
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 \
56 $(SLO)$/units.obj
58 .IF "$(COMID)"=="gcc3"
59 .IF "$(CCNUMVER)">="000400000000" || "$(SYSTEM_BOOST)"=="YES"
60 CFLAGS+=-DUSE_MODERN_SPIRIT
61 .ENDIF
62 .ENDIF
63 .IF "$(SYSTEM_BOOST)"=="NO"
64 CFLAGS+=-DUSE_MODERN_SPIRIT
65 .ENDIF
67 # --- Library -----------------------------------
69 SHL1TARGET=$(TARGET)$(DLLPOSTFIX)
71 SHL1STDLIBS=\
72 $(BASEGFXLIB) \
73 $(SVXCORELIB) \
74 $(XMLOFFLIB) \
75 $(SVTOOLLIB) \
76 $(BASEGFXLIB) \
77 $(VCLLIB) \
78 $(UNOTOOLSLIB) \
79 $(TOOLSLIB) \
80 $(COMPHELPERLIB) \
81 $(SVTOOLLIB) \
82 $(CPPUHELPERLIB) \
83 $(CPPULIB) \
84 $(SALLIB) \
85 $(LIBXML)
87 SHL1DEPN=
88 SHL1IMPLIB= i$(SHL1TARGET)
89 SHL1LIBS= $(SLB)$/$(TARGET).lib
90 SHL1VERSIONMAP=exports.map
91 SHL1DEF= $(MISC)$/$(SHL1TARGET).def
93 DEF1NAME=$(SHL1TARGET)
95 # --- Targets ----------------------------------
97 .INCLUDE : target.mk
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