xref: /AOO41X/main/starmath/util/makefile.mk (revision 7871dc3ea494bf86c742e1f4dfc9c6e20f5bcb2a)
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=starmath
27TARGET=smath3
28LIBTARGET=NO
29GEN_HID=TRUE
30GEN_HID_OTHER=TRUE
31
32# --- Settings -----------------------------------------------------------
33
34.INCLUDE :  settings.mk
35
36# --- Files --------------------------------------------------------
37
38RESLIB1NAME=sm
39RESLIB1IMAGES=$(PRJ)$/res
40RESLIB1SRSFILES=\
41    $(SRS)$/smres.srs
42
43SHL1TARGET= sm$(DLLPOSTFIX)
44SHL1IMPLIB= smimp
45
46SHL1VERSIONMAP=$(SOLARENV)/src/component.map
47SHL1DEF=$(MISC)$/$(SHL1TARGET).def
48DEF1NAME=       $(SHL1TARGET)
49
50SHL1STDLIBS= \
51            $(EDITENGLIB) \
52            $(SVXCORELIB) \
53            $(SVXLIB) \
54            $(SFX2LIB) \
55            $(XMLOFFLIB) \
56            $(SVTOOLLIB) \
57            $(TKLIB) \
58            $(VCLLIB) \
59            $(SVLLIB)   \
60            $(I18NPAPERLIB)     \
61            $(SOTLIB) \
62            $(UNOTOOLSLIB) \
63            $(TOOLSLIB) \
64            $(COMPHELPERLIB) \
65            $(CPPUHELPERLIB) \
66            $(CPPULIB) \
67            $(SALLIB)
68
69SHL2TARGET= smd$(DLLPOSTFIX)
70SHL2IMPLIB= smdimp
71SHL2VERSIONMAP=$(SOLARENV)/src/component.map
72SHL2DEF=$(MISC)$/$(SHL2TARGET).def
73DEF2NAME=       $(SHL2TARGET)
74
75SHL2STDLIBS= \
76            $(SFX2LIB) \
77            $(SVTOOLLIB) \
78            $(SVLLIB) \
79            $(VCLLIB) \
80            $(SOTLIB) \
81            $(TOOLSLIB) \
82            $(UCBHELPERLIB) \
83            $(CPPUHELPERLIB) \
84            $(CPPULIB) \
85            $(SALLIB)
86
87SHL2DEPN=   makefile.mk
88SHL2VERSIONMAP=$(SOLARENV)/src/component.map
89SHL2OBJS=   $(SLO)$/smdetect.obj \
90            $(SLO)$/detreg.obj \
91            $(SLO)$/eqnolefilehdr.obj
92
93SHL1DEPN=   makefile.mk
94SHL1LIBS=   $(SLB)$/starmath.lib
95
96.IF "$(GUI)" != "UNX"
97.IF "$(GUI)$(COM)" != "WNTGCC"
98SHL1OBJS=   $(SLO)$/smdll.obj
99.ENDIF
100.ENDIF # ! UNX
101
102.IF "$(GUI)" == "WNT"
103SHL1RES=    $(RCTARGET)
104.ENDIF # WNT
105
106# --- Targets -------------------------------------------------------------
107
108.INCLUDE :  target.mk
109
110
111ALLTAR : $(MISC)/sm.component $(MISC)/smd.component
112
113$(MISC)/sm.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
114        sm.component
115    $(XSLTPROC) --nonet --stringparam uri \
116        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
117        $(SOLARENV)/bin/createcomponent.xslt sm.component
118
119$(MISC)/smd.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
120        smd.component
121    $(XSLTPROC) --nonet --stringparam uri \
122        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \
123        $(SOLARENV)/bin/createcomponent.xslt smd.component
124