xref: /AOO41X/main/stoc/test/excomp/makefile.mk (revision 7871dc3ea494bf86c742e1f4dfc9c6e20f5bcb2a)
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=    stoc
26TARGET=     excomp
27TARGET1=    excomp1
28TARGET2=    excomp2
29TARGETTYPE=CUI
30#LIBTARGET=NO
31ENABLE_EXCEPTIONS=TRUE
32USE_DEFFILE=    TRUE
33NO_BSYMBOLIC=   TRUE
34COMP1TYPELIST=$(TARGET1)
35COMP2TYPELIST=$(TARGET2)
36
37# --- Settings -----------------------------------------------------
38
39.INCLUDE :  settings.mk
40
41# ------------------------------------------------------------------
42
43UNOUCRDEP=  $(BIN)$/excomp.rdb
44UNOUCRRDB=  $(BIN)$/excomp.rdb
45UNOUCROUT=  $(OUT)$/inc
46INCPRE+=    $(OUT)$/inc
47
48UNOTYPES=$($(TARGET1)_XML2CMPTYPES)
49UNOTYPES+=$($(TARGET2)_XML2CMPTYPES)
50UNOTYPES+=  com.sun.star.registry.XImplementationRegistration \
51            com.sun.star.lang.XComponent
52
53# --- Application excomp ------------------------------------------------
54APP1TARGET= $(TARGET)
55APP1OBJS=   $(OBJ)$/excomp.obj
56
57APP1STDLIBS= \
58        $(CPPULIB)  \
59        $(CPPUHELPERLIB)    \
60        $(SALHELPERLIB)     \
61        $(SALLIB)
62
63# ---- objects ----
64SLOFILES= \
65        $(SLO)$/excomp1.obj \
66        $(SLO)$/$(COMP1TYPELIST)_description.obj    \
67        $(SLO)$/excomp2.obj \
68        $(SLO)$/$(COMP2TYPELIST)_description.obj
69
70# ---- excomp1 ------
71SHL1TARGET= $(TARGET1)
72
73SHL1STDLIBS= \
74        $(CPPULIB)      \
75        $(CPPUHELPERLIB)    \
76        $(SALHELPERLIB)     \
77        $(SALLIB)
78
79SHL1DEPN=
80SHL1LIBS=
81SHL1OBJS=   $(SLO)$/excomp1.obj \
82            $(SLO)$/$(COMP1TYPELIST)_description.obj
83SHL1IMPLIB= i$(TARGET1)
84SHL1DEF=    $(MISC)$/$(SHL1TARGET).def
85
86DEF1NAME=   $(SHL1TARGET)
87DEF1EXPORTFILE= exports.dxp
88
89# ---- excomp2 ------
90SHL2TARGET= $(TARGET2)
91
92SHL2STDLIBS= \
93        $(CPPULIB)      \
94        $(CPPUHELPERLIB)    \
95        $(SALHELPERLIB)     \
96        $(SALLIB)
97
98SHL2DEPN=
99SHL2LIBS=
100SHL2OBJS=   $(SLO)$/excomp2.obj \
101            $(SLO)$/$(COMP2TYPELIST)_description.obj
102SHL2IMPLIB= i$(TARGET2)
103SHL2DEF=    $(MISC)$/$(SHL2TARGET).def
104
105DEF2NAME=   $(SHL2TARGET)
106DEF2EXPORTFILE= exports.dxp
107
108ALLIDLFILES:= example$/XTest.idl example$/ExampleComponent1.idl example$/ExampleComponent2.idl
109
110# --- Targets ------------------------------------------------------
111
112.IF "$(depend)" == ""
113ALL :       $(BIN)$/excomp.rdb  \
114        ALLTAR
115.ELSE
116ALL:        ALLDEP
117.ENDIF
118
119.INCLUDE :  target.mk
120
121$(BIN)$/excomp.rdb: $(ALLIDLFILES)
122    idlc -I$(PRJ) -I$(SOLARIDLDIR) -O$(MISC)$/excomp $?
123    regmerge $@ /UCR $(MISC)$/excomp$/{$(?:f:s/.idl/.urd/)}
124    regmerge $@ / $(SOLARBINDIR)$/udkapi.rdb
125    touch $@
126
127