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=embeddedobj
27cdf0e10cSrcweirTARGET=emboleobj
28cdf0e10cSrcweir
29cdf0e10cSrcweir
30cdf0e10cSrcweir# --- Settings -----------------------------------------------------
31cdf0e10cSrcweir
32cdf0e10cSrcweir.INCLUDE :  settings.mk
33cdf0e10cSrcweir
34cdf0e10cSrcweir# .IF "$(DISABLE_ATL)"==""
35cdf0e10cSrcweir
36cdf0e10cSrcweirLIBTARGET=NO
37cdf0e10cSrcweirUSE_DEFFILE=YES
38cdf0e10cSrcweir
39cdf0e10cSrcweir# --- Files --------------------------------------------------------
40cdf0e10cSrcweir
41cdf0e10cSrcweirSHL1TARGET= $(TARGET)
42cdf0e10cSrcweir
43cdf0e10cSrcweirSHL1IMPLIB= i$(TARGET)
44cdf0e10cSrcweir
45cdf0e10cSrcweirSLOFILES =  \
46cdf0e10cSrcweir		$(SLO)$/closepreventer.obj\
47cdf0e10cSrcweir		$(SLO)$/oleregister.obj\
48cdf0e10cSrcweir		$(SLO)$/xolefactory.obj\
49cdf0e10cSrcweir		$(SLO)$/olepersist.obj\
50cdf0e10cSrcweir		$(SLO)$/oleembed.obj\
51cdf0e10cSrcweir		$(SLO)$/olevisual.obj\
52cdf0e10cSrcweir		$(SLO)$/olemisc.obj\
53cdf0e10cSrcweir		$(SLO)$/ownview.obj
54cdf0e10cSrcweir
55cdf0e10cSrcweirEXCEPTIONSFILES= \
56cdf0e10cSrcweir		$(SLO)$/closepreventer.obj\
57cdf0e10cSrcweir		$(SLO)$/oleregister.obj\
58cdf0e10cSrcweir		$(SLO)$/xolefactory.obj\
59cdf0e10cSrcweir		$(SLO)$/olepersist.obj\
60cdf0e10cSrcweir		$(SLO)$/oleembed.obj\
61cdf0e10cSrcweir		$(SLO)$/olevisual.obj\
62cdf0e10cSrcweir		$(SLO)$/olemisc.obj\
63cdf0e10cSrcweir		$(SLO)$/ownview.obj
64cdf0e10cSrcweir
65cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
66cdf0e10cSrcweir
67cdf0e10cSrcweirSLOFILES += \
68cdf0e10cSrcweir		$(SLO)$/graphconvert.obj\
69cdf0e10cSrcweir		$(SLO)$/olecomponent.obj\
70cdf0e10cSrcweir		$(SLO)$/olewrapclient.obj\
71cdf0e10cSrcweir		$(SLO)$/xdialogcreator.obj\
72cdf0e10cSrcweir		$(SLO)$/advisesink.obj
73cdf0e10cSrcweir
74cdf0e10cSrcweirEXCEPTIONSFILES += \
75cdf0e10cSrcweir		$(SLO)$/graphconvert.obj\
76cdf0e10cSrcweir		$(SLO)$/olecomponent.obj\
77cdf0e10cSrcweir		$(SLO)$/olewrapclient.obj\
78cdf0e10cSrcweir		$(SLO)$/xdialogcreator.obj\
79cdf0e10cSrcweir		$(SLO)$/advisesink.obj
80cdf0e10cSrcweir
81cdf0e10cSrcweir.ENDIF
82cdf0e10cSrcweir
83cdf0e10cSrcweirSHL1OBJS= $(SLOFILES)
84cdf0e10cSrcweir
85cdf0e10cSrcweirSHL1STDLIBS=\
86cdf0e10cSrcweir	$(UNOTOOLSLIB)\
87cdf0e10cSrcweir	$(SALLIB)\
88cdf0e10cSrcweir	$(VOSLIB)\
89cdf0e10cSrcweir	$(CPPULIB)\
90cdf0e10cSrcweir	$(CPPUHELPERLIB)\
91cdf0e10cSrcweir	$(COMPHELPERLIB)\
92cdf0e10cSrcweir	$(TOOLSLIB)
93cdf0e10cSrcweir
94cdf0e10cSrcweir
95*685bfa88SYuri Dario.IF "$(GUI)"=="WNT" || "$(GUI)"=="OS2"
96cdf0e10cSrcweir.IF "$(COM)"=="GCC"
97cdf0e10cSrcweirEMBOBJLIB=-lembobj
98cdf0e10cSrcweir.ELSE
99cdf0e10cSrcweirEMBOBJLIB=iembobj.lib
100cdf0e10cSrcweir.ENDIF
101cdf0e10cSrcweir
102cdf0e10cSrcweirSHL1STDLIBS+=\
103cdf0e10cSrcweir	$(EMBOBJLIB)\
104cdf0e10cSrcweir	$(OLE32LIB)\
105cdf0e10cSrcweir	$(GDI32LIB)\
106cdf0e10cSrcweir	$(UUIDLIB)\
107cdf0e10cSrcweir	$(OLEAUT32LIB)
108cdf0e10cSrcweir
109cdf0e10cSrcweirDEF1EXPORTFILE=	exports.dxp
110cdf0e10cSrcweir.ELIF "$(GUI)"=="OS2"
111cdf0e10cSrcweir
112cdf0e10cSrcweirSHL1STDLIBS+=\
113cdf0e10cSrcweir	iembobj.lib
114cdf0e10cSrcweir
115cdf0e10cSrcweirDEF1EXPORTFILE=	exports.dxp
116cdf0e10cSrcweir
117cdf0e10cSrcweir.ENDIF
118cdf0e10cSrcweir
119cdf0e10cSrcweir
120cdf0e10cSrcweirSHL1DEF= $(MISC)$/$(SHL1TARGET).def
121cdf0e10cSrcweir
122cdf0e10cSrcweirDEF1NAME= $(SHL1TARGET)
123cdf0e10cSrcweir
124cdf0e10cSrcweir# .ENDIF
125cdf0e10cSrcweir# --- Targets -------------------------------------------------------
126cdf0e10cSrcweir
127cdf0e10cSrcweir.INCLUDE :  target.mk
128cdf0e10cSrcweir
129cdf0e10cSrcweirALLTAR : $(MISC)/emboleobj.component
130cdf0e10cSrcweir
131cdf0e10cSrcweir.IF "$(OS)" == "WNT"
132cdf0e10cSrcweirmy_platform = .windows
133cdf0e10cSrcweir.END
134cdf0e10cSrcweir
135cdf0e10cSrcweir$(MISC)/emboleobj.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
136cdf0e10cSrcweir        emboleobj.component
137cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
138cdf0e10cSrcweir        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
139cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt emboleobj$(my_platform).component
140