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