xref: /aoo41x/main/oox/util/makefile.mk (revision 752c0af7)
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
22
23
24PRJ=..
25
26PRJNAME=oox
27TARGET=oox
28USE_DEFFILE=TRUE
29ENABLE_EXCEPTIONS=TRUE
30
31# --- Settings -----------------------------------------------------
32
33.INCLUDE :  settings.mk
34.IF "$(L10N_framework)"==""
35# --- Allgemein ----------------------------------------------------
36
37LIB1TARGET= $(SLB)$/$(TARGET).lib
38LIB1FILES=	\
39	$(SLB)$/token.lib\
40    $(SLB)$/helper.lib\
41    $(SLB)$/core.lib\
42    $(SLB)$/ole.lib\
43    $(SLB)$/ppt.lib\
44    $(SLB)$/xls.lib\
45    $(SLB)$/vml.lib\
46    $(SLB)$/drawingml.lib\
47    $(SLB)$/diagram.lib\
48    $(SLB)$/chart.lib\
49    $(SLB)$/table.lib\
50    $(SLB)$/shape.lib\
51    $(SLB)$/dump.lib\
52    $(SLB)$/docprop.lib
53
54# --- Shared-Library -----------------------------------------------
55
56SHL1TARGET= $(TARGET)$(DLLPOSTFIX)
57SHL1IMPLIB= i$(TARGET)
58SHL1USE_EXPORTS=name
59
60SHL1STDLIBS= \
61		$(CPPULIB)		\
62		$(CPPUHELPERLIB)\
63		$(COMPHELPERLIB)\
64		$(RTLLIB)		\
65		$(SALLIB)		\
66		$(BASEGFXLIB)	\
67		$(SAXLIB)       \
68        $(XMLSCRIPTLIB)
69
70# link openssl, copied this bit from ucb/source/ucp/webdav/makefile.mk
71.IF "$(GUI)"=="WNT"
72SHL1STDLIBS+= $(OPENSSLLIB)
73.ELSE # WNT
74.IF "$(OS)"=="SOLARIS"
75SHL1STDLIBS+= -lnsl -lsocket -ldl
76.ENDIF # SOLARIS
77.IF "$(SYSTEM_OPENSSL)"=="YES"
78SHL1STDLIBS+= $(OPENSSLLIB)
79.ELSE
80SHL1STDLIBS+= $(OPENSSLLIBST)
81.ENDIF
82.ENDIF # WNT
83
84SHL1DEF=    $(MISC)$/$(SHL1TARGET).def
85SHL1LIBS=   $(LIB1TARGET)
86DEF1NAME    =$(SHL1TARGET)
87DEFLIB1NAME =$(TARGET)
88
89# --- Targets ----------------------------------------------------------
90.ENDIF # L10N_framework
91
92.INCLUDE :  target.mk
93
94ALLTAR : $(MISC)/oox.component
95
96$(MISC)/oox.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
97        oox.component
98    $(XSLTPROC) --nonet --stringparam uri \
99        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
100        $(SOLARENV)/bin/createcomponent.xslt oox.component
101