xref: /aoo41x/main/dtrans/util/makefile.mk (revision 168c4287)
17871dc3eSAndrew Rist#**************************************************************
27871dc3eSAndrew Rist#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
107871dc3eSAndrew Rist#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
127871dc3eSAndrew Rist#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
197871dc3eSAndrew Rist#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ=..
25cdf0e10cSrcweir
26cdf0e10cSrcweirPRJNAME=dtrans
27cdf0e10cSrcweirTARGET=dtrans
28cdf0e10cSrcweirTARGET1=mcnttype
29cdf0e10cSrcweirTARGET2=ftransl
30cdf0e10cSrcweirTARGET3=sysdtrans
31cdf0e10cSrcweirTARGET4=dnd
32*168c4287SYuri Dario.IF "$(GUI)"=="OS2"
33*168c4287SYuri DarioTARGET3=sysdtran
34*168c4287SYuri Dario.ENDIF
35cdf0e10cSrcweir
36cdf0e10cSrcweir# --- Settings -----------------------------------------------------
37cdf0e10cSrcweir
38cdf0e10cSrcweir.INCLUDE :  settings.mk
39cdf0e10cSrcweir.IF "$(L10N_framework)"==""
40cdf0e10cSrcweir
41cdf0e10cSrcweir# --- mcnttype dynlib ----------------------------------------------
42cdf0e10cSrcweir
43cdf0e10cSrcweirSHL1TARGET=$(TARGET1)
44cdf0e10cSrcweir
45cdf0e10cSrcweirSHL1LIBS=$(SLB)$/mcnttype.lib
46cdf0e10cSrcweir
47cdf0e10cSrcweirSHL1STDLIBS= \
48cdf0e10cSrcweir		$(SALLIB)	\
49cdf0e10cSrcweir		$(CPPULIB) 	\
50cdf0e10cSrcweir		$(CPPUHELPERLIB)
51cdf0e10cSrcweir
52cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
53cdf0e10cSrcweirSHL1STDLIBS+= \
54cdf0e10cSrcweir		$(UWINAPILIB)
55cdf0e10cSrcweir.ENDIF
56cdf0e10cSrcweir
57cdf0e10cSrcweir
58cdf0e10cSrcweir
59cdf0e10cSrcweirSHL1IMPLIB=i$(SHL1TARGET)
60cdf0e10cSrcweir
61cdf0e10cSrcweir#--- comment -----------------
62cdf0e10cSrcweir
63cdf0e10cSrcweirSHL1DEF=		$(MISC)$/$(SHL1TARGET).def
64cdf0e10cSrcweirDEF1NAME=		$(SHL1TARGET)
65cdf0e10cSrcweirDEF1EXPORTFILE=	exports.dxp
66cdf0e10cSrcweirSHL1VERSIONMAP=$(SOLARENV)/src/component.map
67cdf0e10cSrcweir
68cdf0e10cSrcweir
69cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
70cdf0e10cSrcweir
71cdf0e10cSrcweir# --- ftransl dll ---
72cdf0e10cSrcweir
73cdf0e10cSrcweirSHL2TARGET=$(TARGET2)
74cdf0e10cSrcweir
75cdf0e10cSrcweirSHL2LIBS=$(SLB)$/ftransl.lib\
76cdf0e10cSrcweir		 $(SLB)$/dtutils.lib
77cdf0e10cSrcweir
78cdf0e10cSrcweirSHL2STDLIBS= \
79cdf0e10cSrcweir		$(SALLIB)	\
80cdf0e10cSrcweir		$(CPPULIB) 	\
81cdf0e10cSrcweir		$(CPPUHELPERLIB)\
82cdf0e10cSrcweir		$(UWINAPILIB)\
83cdf0e10cSrcweir		$(ADVAPI32LIB)\
84cdf0e10cSrcweir		$(OLE32LIB)\
85cdf0e10cSrcweir		$(GDI32LIB)
86cdf0e10cSrcweir
87cdf0e10cSrcweirSHL2IMPLIB=i$(SHL2TARGET)
88cdf0e10cSrcweir
89cdf0e10cSrcweirSHL2DEF=		$(MISC)$/$(SHL2TARGET).def
90cdf0e10cSrcweirDEF2NAME=		$(SHL2TARGET)
91cdf0e10cSrcweirDEF2EXPORTFILE=	exports.dxp
92cdf0e10cSrcweir
93cdf0e10cSrcweir
94cdf0e10cSrcweir# --- sysdtrans dll ---
95cdf0e10cSrcweir
96cdf0e10cSrcweirSHL3TARGET=$(TARGET3)
97cdf0e10cSrcweir
98cdf0e10cSrcweirSHL3LIBS=$(SLB)$/sysdtrans.lib\
99cdf0e10cSrcweir		 $(SLB)$/dtutils.lib\
100cdf0e10cSrcweir		 $(SLB)$/dtobjfact.lib\
101cdf0e10cSrcweir		 $(SLB)$/mtaolecb.lib
102cdf0e10cSrcweir
103cdf0e10cSrcweir.IF "$(COM)" == "GCC"
104cdf0e10cSrcweirSHL3OBJS=$(SLO)$/XNotifyingDataObject.obj
105cdf0e10cSrcweir.ENDIF
106cdf0e10cSrcweir
107cdf0e10cSrcweirSHL3STDLIBS= \
108cdf0e10cSrcweir		$(SALLIB)	\
109cdf0e10cSrcweir		$(CPPULIB) 	\
110cdf0e10cSrcweir		$(CPPUHELPERLIB)\
111cdf0e10cSrcweir		$(UWINAPILIB)\
112cdf0e10cSrcweir		$(ADVAPI32LIB)\
113cdf0e10cSrcweir		$(OLE32LIB)\
114cdf0e10cSrcweir		$(OLEAUT32LIB)\
115cdf0e10cSrcweir		$(GDI32LIB)\
116cdf0e10cSrcweir		$(SHELL32LIB)\
117cdf0e10cSrcweir		$(UUIDLIB)
118cdf0e10cSrcweir
119cdf0e10cSrcweirSHL3IMPLIB=i$(SHL3TARGET)
120cdf0e10cSrcweir
121cdf0e10cSrcweirSHL3DEF=		$(MISC)$/$(SHL3TARGET).def
122cdf0e10cSrcweirDEF3NAME=		$(SHL3TARGET)
123cdf0e10cSrcweirDEF3EXPORTFILE=	exports.dxp
124cdf0e10cSrcweir
125cdf0e10cSrcweir
126cdf0e10cSrcweir# --- dnd dll ---
127cdf0e10cSrcweir
128cdf0e10cSrcweirSHL4TARGET=$(TARGET4)
129cdf0e10cSrcweir
130cdf0e10cSrcweirSHL4LIBS=	\
131cdf0e10cSrcweir			$(SLB)$/dnd.lib\
132cdf0e10cSrcweir			$(SLB)$/dtobjfact.lib\
133cdf0e10cSrcweir			$(SLB)$/dtutils.lib
134cdf0e10cSrcweir
135cdf0e10cSrcweirSHL4STDLIBS= \
136cdf0e10cSrcweir		$(SALLIB)	\
137cdf0e10cSrcweir		$(CPPULIB) 	\
138cdf0e10cSrcweir		$(CPPUHELPERLIB) \
139cdf0e10cSrcweir		$(UWINAPILIB)\
140cdf0e10cSrcweir		$(ADVAPI32LIB)\
141cdf0e10cSrcweir		$(OLE32LIB)\
142cdf0e10cSrcweir		$(OLEAUT32LIB)\
143cdf0e10cSrcweir		$(GDI32LIB)\
144cdf0e10cSrcweir		$(SHELL32LIB)\
145cdf0e10cSrcweir		$(UUIDLIB)
146cdf0e10cSrcweir
147cdf0e10cSrcweirSHL4DEPN=
148cdf0e10cSrcweirSHL4IMPLIB=i$(SHL4TARGET)
149cdf0e10cSrcweir
150cdf0e10cSrcweirSHL4DEF=		$(MISC)$/$(SHL4TARGET).def
151cdf0e10cSrcweir
152cdf0e10cSrcweirDEF4NAME=		$(SHL4TARGET)
153cdf0e10cSrcweirDEF4EXPORTFILE=	exports.dxp
154cdf0e10cSrcweir
155cdf0e10cSrcweir.ENDIF			# "$(GUI)"=="WNT"
156cdf0e10cSrcweir
157cdf0e10cSrcweir.IF "$(GUI)"=="OS2"
158cdf0e10cSrcweir
159cdf0e10cSrcweir# --- sysdtrans dll ---
160cdf0e10cSrcweir
161cdf0e10cSrcweirSHL3TARGET=$(TARGET3)
162cdf0e10cSrcweir
163cdf0e10cSrcweirSHL3LIBS=$(SLB)$/sysdtrans.lib
164cdf0e10cSrcweir
165cdf0e10cSrcweirSHL3STDLIBS= \
166cdf0e10cSrcweir		$(SALLIB)	\
167cdf0e10cSrcweir		$(CPPULIB) 	\
168cdf0e10cSrcweir		$(CPPUHELPERLIB) \
169685bfa88SYuri Dario		-lUClip
170cdf0e10cSrcweir
171cdf0e10cSrcweirSHL3IMPLIB=i$(SHL3TARGET)
172cdf0e10cSrcweir
173cdf0e10cSrcweirSHL3DEF=		$(MISC)$/$(SHL3TARGET).def
174cdf0e10cSrcweirDEF3NAME=		$(SHL3TARGET)
175cdf0e10cSrcweirDEF3EXPORTFILE=	exports.dxp
176cdf0e10cSrcweir
177cdf0e10cSrcweir.ENDIF			# "$(GUI)"=="OS2"
178cdf0e10cSrcweir.ENDIF # L10N_framework
179cdf0e10cSrcweir
180cdf0e10cSrcweir.INCLUDE :  target.mk
181cdf0e10cSrcweir
182cdf0e10cSrcweirALLTAR : \
183cdf0e10cSrcweir    $(MISC)/dnd.component \
184cdf0e10cSrcweir    $(MISC)/ftransl.component \
185cdf0e10cSrcweir    $(MISC)/mcnttype.component \
186cdf0e10cSrcweir    $(MISC)/sysdtrans.component
187cdf0e10cSrcweir
188cdf0e10cSrcweir$(MISC)/dnd.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
189cdf0e10cSrcweir        dnd.component
190cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
191cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL4TARGETN:f)' -o $@ \
192cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt dnd.component
193cdf0e10cSrcweir
194cdf0e10cSrcweir$(MISC)/ftransl.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
195cdf0e10cSrcweir        ftransl.component
196cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
197cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \
198cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt ftransl.component
199cdf0e10cSrcweir
200cdf0e10cSrcweir$(MISC)/mcnttype.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
201cdf0e10cSrcweir        mcnttype.component
202cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
203cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
204cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt mcnttype.component
205cdf0e10cSrcweir
206cdf0e10cSrcweir$(MISC)/sysdtrans.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
207cdf0e10cSrcweir        sysdtrans.component
208cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
209cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL3TARGETN:f)' -o $@ \
210cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt sysdtrans.component
211