xref: /AOO41X/main/dtrans/util/makefile.mk (revision 168c4287fefd5178737c95976019037505762fce)
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=dtrans
27TARGET=dtrans
28TARGET1=mcnttype
29TARGET2=ftransl
30TARGET3=sysdtrans
31TARGET4=dnd
32.IF "$(GUI)"=="OS2"
33TARGET3=sysdtran
34.ENDIF
35
36# --- Settings -----------------------------------------------------
37
38.INCLUDE :  settings.mk
39.IF "$(L10N_framework)"==""
40
41# --- mcnttype dynlib ----------------------------------------------
42
43SHL1TARGET=$(TARGET1)
44
45SHL1LIBS=$(SLB)$/mcnttype.lib
46
47SHL1STDLIBS= \
48        $(SALLIB)   \
49        $(CPPULIB)  \
50        $(CPPUHELPERLIB)
51
52.IF "$(GUI)"=="WNT"
53SHL1STDLIBS+= \
54        $(UWINAPILIB)
55.ENDIF
56
57
58
59SHL1IMPLIB=i$(SHL1TARGET)
60
61#--- comment -----------------
62
63SHL1DEF=        $(MISC)$/$(SHL1TARGET).def
64DEF1NAME=       $(SHL1TARGET)
65DEF1EXPORTFILE= exports.dxp
66SHL1VERSIONMAP=$(SOLARENV)/src/component.map
67
68
69.IF "$(GUI)"=="WNT"
70
71# --- ftransl dll ---
72
73SHL2TARGET=$(TARGET2)
74
75SHL2LIBS=$(SLB)$/ftransl.lib\
76         $(SLB)$/dtutils.lib
77
78SHL2STDLIBS= \
79        $(SALLIB)   \
80        $(CPPULIB)  \
81        $(CPPUHELPERLIB)\
82        $(UWINAPILIB)\
83        $(ADVAPI32LIB)\
84        $(OLE32LIB)\
85        $(GDI32LIB)
86
87SHL2IMPLIB=i$(SHL2TARGET)
88
89SHL2DEF=        $(MISC)$/$(SHL2TARGET).def
90DEF2NAME=       $(SHL2TARGET)
91DEF2EXPORTFILE= exports.dxp
92
93
94# --- sysdtrans dll ---
95
96SHL3TARGET=$(TARGET3)
97
98SHL3LIBS=$(SLB)$/sysdtrans.lib\
99         $(SLB)$/dtutils.lib\
100         $(SLB)$/dtobjfact.lib\
101         $(SLB)$/mtaolecb.lib
102
103.IF "$(COM)" == "GCC"
104SHL3OBJS=$(SLO)$/XNotifyingDataObject.obj
105.ENDIF
106
107SHL3STDLIBS= \
108        $(SALLIB)   \
109        $(CPPULIB)  \
110        $(CPPUHELPERLIB)\
111        $(UWINAPILIB)\
112        $(ADVAPI32LIB)\
113        $(OLE32LIB)\
114        $(OLEAUT32LIB)\
115        $(GDI32LIB)\
116        $(SHELL32LIB)\
117        $(UUIDLIB)
118
119SHL3IMPLIB=i$(SHL3TARGET)
120
121SHL3DEF=        $(MISC)$/$(SHL3TARGET).def
122DEF3NAME=       $(SHL3TARGET)
123DEF3EXPORTFILE= exports.dxp
124
125
126# --- dnd dll ---
127
128SHL4TARGET=$(TARGET4)
129
130SHL4LIBS=   \
131            $(SLB)$/dnd.lib\
132            $(SLB)$/dtobjfact.lib\
133            $(SLB)$/dtutils.lib
134
135SHL4STDLIBS= \
136        $(SALLIB)   \
137        $(CPPULIB)  \
138        $(CPPUHELPERLIB) \
139        $(UWINAPILIB)\
140        $(ADVAPI32LIB)\
141        $(OLE32LIB)\
142        $(OLEAUT32LIB)\
143        $(GDI32LIB)\
144        $(SHELL32LIB)\
145        $(UUIDLIB)
146
147SHL4DEPN=
148SHL4IMPLIB=i$(SHL4TARGET)
149
150SHL4DEF=        $(MISC)$/$(SHL4TARGET).def
151
152DEF4NAME=       $(SHL4TARGET)
153DEF4EXPORTFILE= exports.dxp
154
155.ENDIF          # "$(GUI)"=="WNT"
156
157.IF "$(GUI)"=="OS2"
158
159# --- sysdtrans dll ---
160
161SHL3TARGET=$(TARGET3)
162
163SHL3LIBS=$(SLB)$/sysdtrans.lib
164
165SHL3STDLIBS= \
166        $(SALLIB)   \
167        $(CPPULIB)  \
168        $(CPPUHELPERLIB) \
169        -lUClip
170
171SHL3IMPLIB=i$(SHL3TARGET)
172
173SHL3DEF=        $(MISC)$/$(SHL3TARGET).def
174DEF3NAME=       $(SHL3TARGET)
175DEF3EXPORTFILE= exports.dxp
176
177.ENDIF          # "$(GUI)"=="OS2"
178.ENDIF # L10N_framework
179
180.INCLUDE :  target.mk
181
182ALLTAR : \
183    $(MISC)/dnd.component \
184    $(MISC)/ftransl.component \
185    $(MISC)/mcnttype.component \
186    $(MISC)/sysdtrans.component
187
188$(MISC)/dnd.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
189        dnd.component
190    $(XSLTPROC) --nonet --stringparam uri \
191        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL4TARGETN:f)' -o $@ \
192        $(SOLARENV)/bin/createcomponent.xslt dnd.component
193
194$(MISC)/ftransl.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
195        ftransl.component
196    $(XSLTPROC) --nonet --stringparam uri \
197        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \
198        $(SOLARENV)/bin/createcomponent.xslt ftransl.component
199
200$(MISC)/mcnttype.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
201        mcnttype.component
202    $(XSLTPROC) --nonet --stringparam uri \
203        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
204        $(SOLARENV)/bin/createcomponent.xslt mcnttype.component
205
206$(MISC)/sysdtrans.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
207        sysdtrans.component
208    $(XSLTPROC) --nonet --stringparam uri \
209        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL3TARGETN:f)' -o $@ \
210        $(SOLARENV)/bin/createcomponent.xslt sysdtrans.component
211