xref: /aoo42x/main/bridges/test/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
23
24PRJ=..
25
26PRJNAME=bridges
27TARGET=test
28LIBTARGET=NO
29TARGETTYPE=CUI
30ENABLE_EXCEPTIONS=TRUE
31
32# --- Settings -----------------------------------------------------
33
34.INCLUDE :  settings.mk
35
36# --- Files --------------------------------------------------------
37ALLIDLFILES = test_bridge.idl
38CPPUMAKERFLAGS += -C
39
40
41UNOUCRDEP=$(SOLARBINDIR)$/udkapi.rdb  $(BIN)$/test.rdb
42UNOUCRRDB=$(SOLARBINDIR)$/udkapi.rdb  $(BIN)$/test.rdb
43
44# output directory (one dir for each project)
45UNOUCROUT=$(OUT)$/inc
46
47# adding to inludeoath
48INCPRE+=$(UNOUCROUT)
49CFLAGS += -I..$/source$/remote$/urp
50
51UNOTYPES = \
52		com.sun.star.uno.XWeak\
53		com.sun.star.uno.XNamingService\
54		com.sun.star.uno.XAggregation \
55		com.sun.star.uno.TypeClass\
56		com.sun.star.io.XInputStream\
57		com.sun.star.io.XOutputStream\
58		com.sun.star.lang.XInitialization \
59		com.sun.star.lang.XSingleServiceFactory \
60		com.sun.star.lang.XMultiServiceFactory \
61		com.sun.star.lang.XTypeProvider \
62		com.sun.star.registry.XSimpleRegistry \
63		com.sun.star.loader.XImplementationLoader \
64		com.sun.star.registry.XImplementationRegistration \
65		com.sun.star.corba.giop.TargetAddress \
66		com.sun.star.corba.giop.TargetAddressGroup \
67		com.sun.star.lang.XComponent \
68		com.sun.star.bridge.XBridgeFactory\
69		com.sun.star.connection.XAcceptor\
70		com.sun.star.connection.XConnector\
71		com.sun.star.beans.Property\
72		com.sun.star.corba.giop.RequestHeader_1_2\
73     		com.sun.star.container.XSet\
74		com.sun.star.lang.XServiceInfo\
75		test.XTestFactory \
76		com.sun.star.test.performance.XPerformanceTest \
77		com.sun.star.lang.XMain \
78		com.sun.star.lang.XMultiComponentFactory \
79		com.sun.star.lang.XSingleComponentFactory
80
81JARFILES = jurt.jar unoil.jar
82
83OBJFILES=	\
84			$(OBJ)$/testserver.obj \
85			$(OBJ)$/testclient.obj \
86			$(OBJ)$/testcomp.obj  \
87			$(OBJ)$/testsameprocess.obj
88
89
90APP2TARGET=	testserver
91APP2OBJS=	$(OBJ)$/testserver.obj \
92		$(OBJ)$/testcomp.obj
93
94.IF "$(OS)" == "LINUX"
95APP2STDLIBS+= -lstdc++
96.ENDIF
97
98APP2STDLIBS+=	\
99			$(CPPULIB)	\
100			$(CPPUHELPERLIB)	\
101			$(SALLIB)
102
103APP3TARGET=	testclient
104APP3OBJS=	$(OBJ)$/testclient.obj \
105		$(OBJ)$/testcomp.obj
106
107.IF "$(OS)" == "LINUX"
108APP3STDLIBS+= -lstdc++
109.ENDIF
110
111APP3STDLIBS+=	\
112			$(CPPULIB)	\
113			$(CPPUHELPERLIB)	\
114			$(SALLIB)
115
116#----------------------------------
117
118APP4TARGET=	testsameprocess
119APP4OBJS=	$(OBJ)$/testsameprocess.obj \
120		$(OBJ)$/testcomp.obj
121
122.IF "$(OS)" == "LINUX"
123APP4STDLIBS+= -lstdc++
124.ENDIF
125
126APP4STDLIBS+=	\
127			$(CPPULIB)	\
128			$(CPPUHELPERLIB)	\
129			$(SALLIB)
130
131APP4DEF=	$(MISC)$/$(APP4TARGET).def
132
133#----------------------------------
134
135# APP5TARGET=	testoffice
136# APP5OBJS=	$(OBJ)$/testoffice.obj \
137# 		$(OBJ)$/testcomp.obj
138
139# .IF "$(OS)" == "LINUX"
140# APP5STDLIBS+= -lstdc++
141# .ENDIF
142
143# APP5STDLIBS+=	\
144# 			$(CPPULIB)	\
145# 			$(CPPUHELPERLIB)\
146# 			$(SALLIB)
147
148# APP5DEF=	$(MISC)$/$(APP5TARGET).def
149
150
151# --- Targets ------------------------------------------------------
152
153.INCLUDE :  target.mk
154
155ALLTAR : 	$(BIN)$/test.rdb	\
156	$(BIN)$/server.rdb	\
157	$(BIN)$/client.rdb
158
159$(BIN)$/test.rdb: $(ALLIDLFILES)
160	$(IDLC) -I$(PRJ) -I$(SOLARIDLDIR) -O$(BIN) $?
161	$(REGMERGE) $@ /UCR $(BIN)$/{$(?:f:s/.idl/.urd/)}
162	touch $@
163
164$(BIN)$/client.rdb: $(BIN)$/test.rdb
165	rm -f $(BIN)$/client.rdb
166	$(REGMERGE) $@ / $(BIN)$/test.rdb $(SOLARBINDIR)$/udkapi.rdb
167
168$(BIN)$/server.rdb: $(BIN)$/test.rdb
169	rm -f $(BIN)$/client.rdb
170	$(REGMERGE) $@ / $(BIN)$/test.rdb $(SOLARBINDIR)$/udkapi.rdb
171
172