xref: /aoo41x/main/chart2/source/model/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=				chartmodel
31
32USE_DEFFILE=		TRUE
33ENABLE_EXCEPTIONS=	TRUE
34VISIBILITY_HIDDEN=TRUE
35
36# --- Settings -----------------------------------------------------
37
38.INCLUDE: $(PRJ)$/util$/makefile.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)$/chmodelmain.lib \
48				$(SLB)$/chmodeltemplate.lib \
49				$(SLB)$/chmodelfilter.lib
50
51#--------
52
53#Indicates the filename of the shared library.
54SHL1TARGET=		$(TARGET)$(DLLPOSTFIX)
55
56#indicates dependencies:
57.IF "$(COM)" == "MSC"
58SHL1DEPN = \
59        $(LB)$/icharttools.lib
60.ELSE
61SHL1DEPN =
62.ENDIF
63
64#Specifies an import library to create. For Win32 only.
65SHL1IMPLIB=		i$(TARGET)
66
67#Specifies libraries from the same module to put into the shared library.
68#was created above
69SHL1LIBS= 		$(LIB1TARGET)
70
71#Links import libraries.
72
73SHL1STDLIBS=	$(CHARTTOOLS) 		\
74				$(CPPULIB)			\
75				$(CPPUHELPERLIB)	\
76				$(COMPHELPERLIB)	\
77				$(UNOTOOLSLIB)		\
78				$(VCLLIB)			\
79				$(SVLLIB)			\
80				$(SVTOOLLIB)		\
81				$(SALLIB)			\
82				$(UCBHELPERLIB)     \
83				$(FWELIB)           \
84
85#--------exports
86
87#specifies the exported symbols for Windows only:
88SHL1DEF=		$(MISC)$/$(SHL1TARGET).def
89
90SHL1VERSIONMAP = $(SOLARENV)/src/component.map
91
92#--------definition file
93
94#name of the definition file:
95DEF1NAME=		$(SHL1TARGET)
96
97# --- Resources ---------------------------------------------------------------
98
99# --- Targets -----------------------------------------------------------------
100
101.INCLUDE: target.mk
102
103ALLTAR : $(MISC)/chartmodel.component
104
105$(MISC)/chartmodel.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
106        chartmodel.component
107    $(XSLTPROC) --nonet --stringparam uri \
108        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
109        $(SOLARENV)/bin/createcomponent.xslt chartmodel.component
110