xref: /aoo41x/main/stoc/test/excomp/makefile.mk (revision 7871dc3e)
1*7871dc3eSAndrew Rist#**************************************************************
2*7871dc3eSAndrew Rist#
3*7871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*7871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*7871dc3eSAndrew Rist#  distributed with this work for additional information
6*7871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*7871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*7871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
9*7871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10*7871dc3eSAndrew Rist#
11*7871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*7871dc3eSAndrew Rist#
13*7871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*7871dc3eSAndrew Rist#  software distributed under the License is distributed on an
15*7871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*7871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
17*7871dc3eSAndrew Rist#  specific language governing permissions and limitations
18*7871dc3eSAndrew Rist#  under the License.
19*7871dc3eSAndrew Rist#
20*7871dc3eSAndrew Rist#**************************************************************
21*7871dc3eSAndrew Rist
22*7871dc3eSAndrew Rist
23cdf0e10cSrcweirPRJ=..$/..
24cdf0e10cSrcweir
25cdf0e10cSrcweirPRJNAME=	stoc
26cdf0e10cSrcweirTARGET=		excomp
27cdf0e10cSrcweirTARGET1=	excomp1
28cdf0e10cSrcweirTARGET2=	excomp2
29cdf0e10cSrcweirTARGETTYPE=CUI
30cdf0e10cSrcweir#LIBTARGET=NO
31cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE
32cdf0e10cSrcweirUSE_DEFFILE=	TRUE
33cdf0e10cSrcweirNO_BSYMBOLIC=	TRUE
34cdf0e10cSrcweirCOMP1TYPELIST=$(TARGET1)
35cdf0e10cSrcweirCOMP2TYPELIST=$(TARGET2)
36cdf0e10cSrcweir
37cdf0e10cSrcweir# --- Settings -----------------------------------------------------
38cdf0e10cSrcweir
39cdf0e10cSrcweir.INCLUDE :  settings.mk
40cdf0e10cSrcweir
41cdf0e10cSrcweir# ------------------------------------------------------------------
42cdf0e10cSrcweir
43cdf0e10cSrcweirUNOUCRDEP=	$(BIN)$/excomp.rdb
44cdf0e10cSrcweirUNOUCRRDB=	$(BIN)$/excomp.rdb
45cdf0e10cSrcweirUNOUCROUT=	$(OUT)$/inc
46cdf0e10cSrcweirINCPRE+=	$(OUT)$/inc
47cdf0e10cSrcweir
48cdf0e10cSrcweirUNOTYPES=$($(TARGET1)_XML2CMPTYPES)
49cdf0e10cSrcweirUNOTYPES+=$($(TARGET2)_XML2CMPTYPES)
50cdf0e10cSrcweirUNOTYPES+=  com.sun.star.registry.XImplementationRegistration \
51cdf0e10cSrcweir			com.sun.star.lang.XComponent
52cdf0e10cSrcweir
53cdf0e10cSrcweir# --- Application excomp ------------------------------------------------
54cdf0e10cSrcweirAPP1TARGET= $(TARGET)
55cdf0e10cSrcweirAPP1OBJS=   $(OBJ)$/excomp.obj
56cdf0e10cSrcweir
57cdf0e10cSrcweirAPP1STDLIBS= \
58cdf0e10cSrcweir		$(CPPULIB) 	\
59cdf0e10cSrcweir		$(CPPUHELPERLIB) 	\
60cdf0e10cSrcweir		$(SALHELPERLIB) 	\
61cdf0e10cSrcweir		$(SALLIB)
62cdf0e10cSrcweir
63cdf0e10cSrcweir# ---- objects ----
64cdf0e10cSrcweirSLOFILES= \
65cdf0e10cSrcweir		$(SLO)$/excomp1.obj	\
66cdf0e10cSrcweir      	$(SLO)$/$(COMP1TYPELIST)_description.obj	\
67cdf0e10cSrcweir		$(SLO)$/excomp2.obj	\
68cdf0e10cSrcweir      	$(SLO)$/$(COMP2TYPELIST)_description.obj
69cdf0e10cSrcweir
70cdf0e10cSrcweir# ---- excomp1 ------
71cdf0e10cSrcweirSHL1TARGET=	$(TARGET1)
72cdf0e10cSrcweir
73cdf0e10cSrcweirSHL1STDLIBS= \
74cdf0e10cSrcweir		$(CPPULIB)		\
75cdf0e10cSrcweir		$(CPPUHELPERLIB)	\
76cdf0e10cSrcweir		$(SALHELPERLIB)		\
77cdf0e10cSrcweir		$(SALLIB)
78cdf0e10cSrcweir
79cdf0e10cSrcweirSHL1DEPN=
80cdf0e10cSrcweirSHL1LIBS=
81cdf0e10cSrcweirSHL1OBJS=  	$(SLO)$/excomp1.obj	\
82cdf0e10cSrcweir	      	$(SLO)$/$(COMP1TYPELIST)_description.obj
83cdf0e10cSrcweirSHL1IMPLIB=	i$(TARGET1)
84cdf0e10cSrcweirSHL1DEF=	$(MISC)$/$(SHL1TARGET).def
85cdf0e10cSrcweir
86cdf0e10cSrcweirDEF1NAME=	$(SHL1TARGET)
87cdf0e10cSrcweirDEF1EXPORTFILE=	exports.dxp
88cdf0e10cSrcweir
89cdf0e10cSrcweir# ---- excomp2 ------
90cdf0e10cSrcweirSHL2TARGET=	$(TARGET2)
91cdf0e10cSrcweir
92cdf0e10cSrcweirSHL2STDLIBS= \
93cdf0e10cSrcweir		$(CPPULIB)		\
94cdf0e10cSrcweir		$(CPPUHELPERLIB)	\
95cdf0e10cSrcweir		$(SALHELPERLIB)		\
96cdf0e10cSrcweir		$(SALLIB)
97cdf0e10cSrcweir
98cdf0e10cSrcweirSHL2DEPN=
99cdf0e10cSrcweirSHL2LIBS=
100cdf0e10cSrcweirSHL2OBJS=  	$(SLO)$/excomp2.obj	\
101cdf0e10cSrcweir	      	$(SLO)$/$(COMP2TYPELIST)_description.obj
102cdf0e10cSrcweirSHL2IMPLIB=	i$(TARGET2)
103cdf0e10cSrcweirSHL2DEF=	$(MISC)$/$(SHL2TARGET).def
104cdf0e10cSrcweir
105cdf0e10cSrcweirDEF2NAME=	$(SHL2TARGET)
106cdf0e10cSrcweirDEF2EXPORTFILE=	exports.dxp
107cdf0e10cSrcweir
108cdf0e10cSrcweirALLIDLFILES:= example$/XTest.idl example$/ExampleComponent1.idl example$/ExampleComponent2.idl
109cdf0e10cSrcweir
110cdf0e10cSrcweir# --- Targets ------------------------------------------------------
111cdf0e10cSrcweir
112cdf0e10cSrcweir.IF "$(depend)" == ""
113cdf0e10cSrcweirALL : 		$(BIN)$/excomp.rdb	\
114cdf0e10cSrcweir		ALLTAR
115cdf0e10cSrcweir.ELSE
116cdf0e10cSrcweirALL: 		ALLDEP
117cdf0e10cSrcweir.ENDIF
118cdf0e10cSrcweir
119cdf0e10cSrcweir.INCLUDE :	target.mk
120cdf0e10cSrcweir
121cdf0e10cSrcweir$(BIN)$/excomp.rdb: $(ALLIDLFILES)
122cdf0e10cSrcweir	idlc -I$(PRJ) -I$(SOLARIDLDIR) -O$(MISC)$/excomp $?
123cdf0e10cSrcweir	regmerge $@ /UCR $(MISC)$/excomp$/{$(?:f:s/.idl/.urd/)}
124cdf0e10cSrcweir	regmerge $@ / $(SOLARBINDIR)$/udkapi.rdb
125cdf0e10cSrcweir	touch $@
126cdf0e10cSrcweir
127