xref: /aoo41x/main/extensions/test/ole/cpnt/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
23PRJ=..$/..$/..
24
25PRJNAME=	extensions
26TARGET=		oletest
27ENABLE_EXCEPTIONS=TRUE
28
29# --- Settings -----------------------------------------------------
30
31.INCLUDE :  settings.mk
32
33# --- Files --------------------------------------------------------
34#UNOUCRDEP=    $(SOLARBINDIR)$/types.rdb $(BIN)$/oletest.rdb
35#UNOUCRRDB=    $(SOLARBINDIR)$/types.rdb $(BIN)$/oletest.rdb
36
37#UNOUCROUT=    $(OUT)$/inc
38
39#UNOTYPES= oletest.XTestSequence \
40#    oletest.XTestStruct     \
41#    oletest.XTestOther      \
42#    oletest.XTestInterfaces \
43#    oletest.XSimple         \
44#    oletest.XSimple2        \
45#    oletest.XSimple3        \
46#    oletest.XTestInParameters       \
47#    oletest.XIdentity
48
49INCPRE+= -I$(ATL_INCLUDE)
50
51SLOFILES=	\
52		$(SLO)$/cpnt.obj
53
54SHL1TARGET= $(TARGET)
55
56SHL1STDLIBS= \
57		$(SALLIB)	\
58		$(VOSLIB)	\
59		$(CPPULIB) 	\
60		$(CPPUHELPERLIB)
61
62#.IF "$(COMEX)"=="8" || "$(COMEX)"=="10"
63#	SHL1STDLIBS+= $(COMPATH)$/atlmfc$/lib$/atls.lib
64#.ENDIF
65
66.IF "$(COMEX)"=="8" || "$(COMEX)"=="10"
67.IF "$(USE_STLP_DEBUG)" != ""
68    SHL1STDLIBS+= $(ATL_LIB)$/atlsd.lib
69.ELSE
70    SHL1STDLIBS+= $(ATL_LIB)$/atls.lib
71.ENDIF
72.ENDIF
73
74
75SHL1DEPN=
76SHL1IMPLIB=		i$(TARGET)
77SHL1LIBS=		$(SLB)$/$(TARGET).lib
78SHL1DEF=		$(MISC)$/$(SHL1TARGET).def
79
80DEF1NAME=		$(SHL1TARGET)
81DEF1EXPORTFILE=	exports.dxp
82
83
84ALLTAR : 	$(MISC)$/$(TARGET).cppumaker.done
85
86
87.INCLUDE :  target.mk
88
89ALLIDLFILES:=	..$/idl$/oletest.idl
90
91$(BIN)$/oletest.rdb: $(ALLIDLFILES)
92	idlc -I$(PRJ) -I$(SOLARIDLDIR)  -O$(BIN) $?
93	regmerge $@ /UCR $(BIN)$/{$(?:f:s/.idl/.urd/)}
94	touch $@
95
96$(MISC)$/$(TARGET).cppumaker.done: $(BIN)$/oletest.rdb
97    $(CPPUMAKER) -O$(INCCOM) -BUCR $< -X$(SOLARBINDIR)/types.rdb
98    $(TOUCH) $@
99
100