1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22PRJ=..$/..
23PRJNAME=scaddins
24
25TARGET=analysis
26
27
28ENABLE_EXCEPTIONS=TRUE
29USE_DEFFILE=TRUE
30LIBTARGET=NO
31
32# --- Settings ----------------------------------
33
34.INCLUDE : settings.mk
35
36# --- Types -------------------------------------
37
38UNOUCRRDB=$(SOLARBINDIR)$/types.rdb $(BIN)$/analysisadd.rdb
39UNOUCRDEP=$(UNOUCRRDB)
40
41UNOUCROUT=$(OUT)$/inc$/$(PRJNAME)$/$(TARGET)
42INCPRE+=$(UNOUCROUT)
43
44# --- Types -------------------------------------
45
46# comprehensive type info, so rdb needn't be installed
47NO_OFFUH=TRUE
48CPPUMAKERFLAGS*=-C
49
50UNOTYPES=\
51	com.sun.star.sheet.addin.XAnalysis \
52	com.sun.star.lang.XComponent \
53	com.sun.star.lang.XMultiServiceFactory \
54	com.sun.star.lang.XSingleComponentFactory \
55	com.sun.star.lang.XSingleServiceFactory \
56	com.sun.star.uno.TypeClass \
57	com.sun.star.uno.XInterface \
58	com.sun.star.registry.XImplementationRegistration \
59	com.sun.star.sheet.LocalizedName \
60	com.sun.star.sheet.XAddIn \
61	com.sun.star.sheet.XCompatibilityNames \
62	com.sun.star.lang.XServiceName \
63	com.sun.star.lang.XServiceInfo \
64	com.sun.star.lang.XTypeProvider \
65	com.sun.star.uno.XWeak \
66	com.sun.star.uno.XAggregation \
67	com.sun.star.uno.XComponentContext \
68	com.sun.star.util.Date \
69	com.sun.star.util.XNumberFormatter \
70	com.sun.star.util.XNumberFormatTypes \
71	com.sun.star.sheet.NoConvergenceException
72
73# --- Files -------------------------------------
74
75SLOFILES=\
76	$(SLO)$/analysis.obj		\
77	$(SLO)$/financial.obj		\
78	$(SLO)$/analysishelper.obj	\
79	$(SLO)$/bessel.obj
80
81# SCO: the linker does know about weak symbols, but we can't ignore multiple defined symbols
82.IF "$(OS)"=="SCO"
83SLOFILES+=$(SLO)$/staticmb.obj
84.ENDIF
85
86ALLIDLFILES=\
87	analysisadd.idl
88
89SRS1NAME=$(TARGET)
90SRC1FILES =  \
91        analysis.src		\
92        analysis_funcnames.src	\
93		analysis_deffuncnames.src
94
95# --- Library -----------------------------------
96
97SHL1TARGET=$(TARGET)$(DLLPOSTFIX)
98SHL1OBJS=$(SLOFILES)
99SHL1STDLIBS= \
100		$(TOOLSLIB)			\
101		$(CPPUHELPERLIB)	\
102		$(CPPULIB)			\
103		$(SALLIB)
104
105SHL1DEPN=makefile.mk
106
107SHL1VERSIONMAP=$(SOLARENV)/src/component.map
108SHL1DEF=$(MISC)$/$(SHL1TARGET).def
109DEF1NAME=$(SHL1TARGET)
110
111# --- Resourcen ----------------------------------------------------
112
113RESLIB1LIST=\
114	$(SRS)$/analysis.srs
115
116RESLIB1NAME=analysis
117RESLIB1SRSFILES=\
118	$(RESLIB1LIST)
119
120# --- Targets ----------------------------------
121
122.INCLUDE : target.mk
123
124$(BIN)$/analysisadd.rdb: $(ALLIDLFILES)
125	$(IDLC) -I$(PRJ) -I$(SOLARIDLDIR) -O$(BIN) $?
126	$(REGMERGE) $@ /UCR $(BIN)$/{$(?:f:s/.idl/.urd/)}
127	touch $@
128
129
130
131ALLTAR : $(MISC)/analysis.component
132
133$(MISC)/analysis.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
134        analysis.component
135    $(XSLTPROC) --nonet --stringparam uri \
136        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
137        $(SOLARENV)/bin/createcomponent.xslt analysis.component
138