xref: /aoo41x/main/bridges/test/makefile.mk (revision cdf0e10c)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28PRJ=..
29
30PRJNAME=bridges
31TARGET=test
32LIBTARGET=NO
33TARGETTYPE=CUI
34ENABLE_EXCEPTIONS=TRUE
35
36# --- Settings -----------------------------------------------------
37
38.INCLUDE :  settings.mk
39
40# --- Files --------------------------------------------------------
41ALLIDLFILES = test_bridge.idl
42CPPUMAKERFLAGS += -C
43
44
45UNOUCRDEP=$(SOLARBINDIR)$/udkapi.rdb  $(BIN)$/test.rdb
46UNOUCRRDB=$(SOLARBINDIR)$/udkapi.rdb  $(BIN)$/test.rdb
47
48# output directory (one dir for each project)
49UNOUCROUT=$(OUT)$/inc
50
51# adding to inludeoath
52INCPRE+=$(UNOUCROUT)
53CFLAGS += -I..$/source$/remote$/urp
54
55UNOTYPES = \
56		com.sun.star.uno.XWeak\
57		com.sun.star.uno.XNamingService\
58		com.sun.star.uno.XAggregation \
59		com.sun.star.uno.TypeClass\
60		com.sun.star.io.XInputStream\
61		com.sun.star.io.XOutputStream\
62		com.sun.star.lang.XInitialization \
63		com.sun.star.lang.XSingleServiceFactory \
64		com.sun.star.lang.XMultiServiceFactory \
65		com.sun.star.lang.XTypeProvider \
66		com.sun.star.registry.XSimpleRegistry \
67		com.sun.star.loader.XImplementationLoader \
68		com.sun.star.registry.XImplementationRegistration \
69		com.sun.star.corba.giop.TargetAddress \
70		com.sun.star.corba.giop.TargetAddressGroup \
71		com.sun.star.lang.XComponent \
72		com.sun.star.bridge.XBridgeFactory\
73		com.sun.star.connection.XAcceptor\
74		com.sun.star.connection.XConnector\
75		com.sun.star.beans.Property\
76		com.sun.star.corba.giop.RequestHeader_1_2\
77     		com.sun.star.container.XSet\
78		com.sun.star.lang.XServiceInfo\
79		test.XTestFactory \
80		com.sun.star.test.performance.XPerformanceTest \
81		com.sun.star.lang.XMain \
82		com.sun.star.lang.XMultiComponentFactory \
83		com.sun.star.lang.XSingleComponentFactory
84
85JARFILES = jurt.jar unoil.jar
86
87OBJFILES=	\
88			$(OBJ)$/testserver.obj \
89			$(OBJ)$/testclient.obj \
90			$(OBJ)$/testcomp.obj  \
91			$(OBJ)$/testsameprocess.obj
92
93
94APP2TARGET=	testserver
95APP2OBJS=	$(OBJ)$/testserver.obj \
96		$(OBJ)$/testcomp.obj
97
98.IF "$(OS)" == "LINUX"
99APP2STDLIBS+= -lstdc++
100.ENDIF
101
102APP2STDLIBS+=	\
103			$(CPPULIB)	\
104			$(CPPUHELPERLIB)	\
105			$(SALLIB)
106
107APP3TARGET=	testclient
108APP3OBJS=	$(OBJ)$/testclient.obj \
109		$(OBJ)$/testcomp.obj
110
111.IF "$(OS)" == "LINUX"
112APP3STDLIBS+= -lstdc++
113.ENDIF
114
115APP3STDLIBS+=	\
116			$(CPPULIB)	\
117			$(CPPUHELPERLIB)	\
118			$(SALLIB)
119
120#----------------------------------
121
122APP4TARGET=	testsameprocess
123APP4OBJS=	$(OBJ)$/testsameprocess.obj \
124		$(OBJ)$/testcomp.obj
125
126.IF "$(OS)" == "LINUX"
127APP4STDLIBS+= -lstdc++
128.ENDIF
129
130APP4STDLIBS+=	\
131			$(CPPULIB)	\
132			$(CPPUHELPERLIB)	\
133			$(SALLIB)
134
135APP4DEF=	$(MISC)$/$(APP4TARGET).def
136
137#----------------------------------
138
139# APP5TARGET=	testoffice
140# APP5OBJS=	$(OBJ)$/testoffice.obj \
141# 		$(OBJ)$/testcomp.obj
142
143# .IF "$(OS)" == "LINUX"
144# APP5STDLIBS+= -lstdc++
145# .ENDIF
146
147# APP5STDLIBS+=	\
148# 			$(CPPULIB)	\
149# 			$(CPPUHELPERLIB)\
150# 			$(SALLIB)
151
152# APP5DEF=	$(MISC)$/$(APP5TARGET).def
153
154
155# --- Targets ------------------------------------------------------
156
157.INCLUDE :  target.mk
158
159ALLTAR : 	$(BIN)$/test.rdb	\
160	$(BIN)$/server.rdb	\
161	$(BIN)$/client.rdb
162
163$(BIN)$/test.rdb: $(ALLIDLFILES)
164	$(IDLC) -I$(PRJ) -I$(SOLARIDLDIR) -O$(BIN) $?
165	$(REGMERGE) $@ /UCR $(BIN)$/{$(?:f:s/.idl/.urd/)}
166	touch $@
167
168$(BIN)$/client.rdb: $(BIN)$/test.rdb
169	rm -f $(BIN)$/client.rdb
170	$(REGMERGE) $@ / $(BIN)$/test.rdb $(SOLARBINDIR)$/udkapi.rdb
171
172$(BIN)$/server.rdb: $(BIN)$/test.rdb
173	rm -f $(BIN)$/client.rdb
174	$(REGMERGE) $@ / $(BIN)$/test.rdb $(SOLARBINDIR)$/udkapi.rdb
175
176