xref: /trunk/main/chart2/source/view/makefile.mk (revision cdf0e10c)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28PRJ=				..$/..
29PRJNAME=			chart2
30TARGET=				chartview
31
32USE_DEFFILE=		TRUE
33ENABLE_EXCEPTIONS=	TRUE
34
35# --- Settings -----------------------------------------------------
36
37.INCLUDE: $(PRJ)$/util$/makefile.pmk
38.INCLUDE: $(PRJ)$/chartview.pmk
39
40# --- export library -------------------------------------------------
41
42#You can use several library macros of this form to build libraries that
43#do not consist of all object files in a directory or to merge different libraries.
44LIB1TARGET=		$(SLB)$/$(TARGET).lib
45
46LIB1FILES=		\
47				$(SLB)$/chvaxes.lib \
48				$(SLB)$/chvtypes.lib \
49				$(SLB)$/chvdiagram.lib \
50				$(SLB)$/chview.lib
51
52#--------
53
54#Indicates the filename of the shared library.
55SHL1TARGET=		$(TARGET)$(DLLPOSTFIX)
56
57#indicates dependencies:
58.IF "$(COM)" == "MSC"
59SHL1DEPN = \
60        $(LB)$/icharttools.lib
61.ELSE
62SHL1DEPN =
63.ENDIF
64
65#Specifies an import library to create. For Win32 only.
66SHL1IMPLIB=		i$(TARGET)
67
68#Specifies libraries from the same module to put into the shared library.
69#was created above
70SHL1LIBS= 		$(LIB1TARGET)
71
72#Links import libraries.
73
74SHL1STDLIBS=	$(CHARTTOOLS)		\
75				$(CPPULIB)			\
76				$(EDITENGLIB)			\
77				$(CPPUHELPERLIB)	\
78				$(COMPHELPERLIB)	\
79				$(SALLIB)			\
80				$(SVLLIB)			\
81				$(SVTOOLLIB)		\
82				$(SVXCORELIB)			\
83				$(TOOLSLIB) 		\
84				$(UNOTOOLSLIB)      \
85				$(BASEGFXLIB) 		\
86				$(VCLLIB)           \
87			    $(SFXLIB)			\
88			    $(BASEGFXLIB)
89
90#--------exports
91
92#specifies the exported symbols for Windows only:
93SHL1DEF=		$(MISC)$/$(SHL1TARGET).def
94
95#Specifies the library name to parse for symbols. For Win32 only.
96DEFLIB1NAME=	$(TARGET)
97
98#A file of symbols to export.
99#DEF1EXPORTFILE=	$(PRJ)$/source$/inc$/exports.dxp
100
101#--------definition file
102
103#name of the definition file:
104DEF1NAME=		$(SHL1TARGET)
105
106# indicates definition file dependencies
107DEF1DEPN=		$(MISC)$/$(SHL1TARGET).flt
108
109#A comment on the definition file.
110DEF1DES=		Viewable Component Chart View
111
112# --- Targets -----------------------------------------------------------------
113
114.INCLUDE: target.mk
115
116# --- Filter -----------------------------------------------------------
117
118$(MISC)$/$(SHL1TARGET).flt: makefile.mk \
119							exports.flt
120	$(TYPE) exports.flt > $@
121
122ALLTAR : $(MISC)/chartview.component
123
124$(MISC)/chartview.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
125        chartview.component
126    $(XSLTPROC) --nonet --stringparam uri \
127        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
128        $(SOLARENV)/bin/createcomponent.xslt chartview.component
129