xref: /aoo4110/main/writerperfect/util/makefile.mk (revision b1cdbd2c)
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# *************************************************************
21PRJ=..
22PRJNAME=writerperfect
23TARGET=writerperfect
24
25.INCLUDE :  settings.mk
26
27.IF "$(SYSTEM_LIBWPD)" == "YES"
28
29.IF "$(GUI)"=="UNX"
30.IF "$(SYSTEM_LIBWPD)" == "YES"
31LIBWPD=$(LIBWPD_LIBS)
32.ELSE
33LIBWPD=-lwpdlib
34.ENDIF
35.ELSE
36.IF "$(GUI)$(COM)"=="WNTGCC"
37LIBWPD=-lwpdlib
38.ELSE
39 LIBWPD=$(LIBPRE) wpdlib.lib
40.ENDIF
41.ENDIF
42
43LIB1TARGET= $(SLB)$/wpft.lib
44LIB1FILES= \
45	$(SLB)$/stream.lib  \
46	$(SLB)$/filter.lib  \
47	$(SLB)$/wpdimp.lib
48SHL1LIBS=$(LIB1TARGET)
49SHL1STDLIBS+= \
50	$(SOTLIB) \
51	$(SO2LIB) \
52	$(UNOTOOLSLIB) \
53	$(TOOLSLIB) \
54	$(UCBHELPERLIB) \
55	$(CPPUHELPERLIB) \
56	$(CPPULIB) \
57	$(SALLIB) \
58	$(XMLOFFLIB) \
59	$(LIBWPD)
60
61SHL1TARGET = wpft$(DLLPOSTFIX)
62SHL1IMPLIB = i$(SHL1TARGET)
63SHL1LIBS = $(LIB1TARGET)
64SHL1VERSIONMAP=$(SOLARENV)/src/component.map
65DEF1NAME=$(SHL1TARGET)
66
67.INCLUDE :  target.mk
68
69ALLTAR : $(MISC)/wpft.component
70
71$(MISC)/wpft.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
72        wpft.component
73    $(XSLTPROC) --nonet --stringparam uri \
74        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
75        $(SOLARENV)/bin/createcomponent.xslt wpft.component
76
77.ELSE
78all:
79	@echo "no system libpwd is used..."
80.ENDIF
81