update dev300-m58
[ooovba.git] / filter / source / svg / makefile.mk
blob7b90769bf381c2584303e51ef42106a6622326c7
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
64 # --- Library -----------------------------------
66 SHL1TARGET=$(TARGET)$(DLLPOSTFIX)
68 SHL1STDLIBS=\
69 $(BASEGFXLIB) \
70 $(SVXCORELIB) \
71 $(XMLOFFLIB) \
72 $(SVTOOLLIB) \
73 $(BASEGFXLIB) \
74 $(VCLLIB) \
75 $(UNOTOOLSLIB) \
76 $(TOOLSLIB) \
77 $(COMPHELPERLIB) \
78 $(SVTOOLLIB) \
79 $(CPPUHELPERLIB) \
80 $(CPPULIB) \
81 $(SALLIB) \
82 $(LIBXML)
84 SHL1DEPN=
85 SHL1IMPLIB= i$(SHL1TARGET)
86 SHL1LIBS= $(SLB)$/$(TARGET).lib
87 SHL1VERSIONMAP=exports.map
88 SHL1DEF= $(MISC)$/$(SHL1TARGET).def
90 DEF1NAME=$(SHL1TARGET)
92 # --- Targets ----------------------------------
94 .INCLUDE : target.mk
96 # Generate gperf files - from oox/source/token
97 $(INCCOM)$/tokens.hxx $(MISC)$/tokens.gperf : tokens.txt gentoken.pl
98 $(PERL) gentoken.pl tokens.txt $(INCCOM)$/tokens.hxx $(MISC)$/tokens.gperf
100 $(INCCOM)$/tokens.cxx : $(MISC)$/tokens.gperf makefile.mk
101 gperf --compare-strncmp -C -m 20 $(MISC)$/tokens.gperf | $(SED) -e "s/(char\*)0/(char\*)0, 0/g" >$(INCCOM)$/tokens.cxx
103 $(SLO)$/tokenmap.obj : $(INCCOM)$/tokens.cxx $(INCCOM)$/tokens.hxx
105 $(SLO)$/parserfragments.obj : $(INCCOM)$/tokens.cxx $(INCCOM)$/tokens.hxx
107 $(SLO)$/svgreader.obj : $(INCCOM)$/tokens.cxx $(INCCOM)$/tokens.hxx