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