xref: /trunk/main/ure/source/uretest/Makefile (revision cdf0e10c)
1*cdf0e10cSrcweir#*************************************************************************
2*cdf0e10cSrcweir#
3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir#
5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir#
7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir#
9*cdf0e10cSrcweir# This file is part of OpenOffice.org.
10*cdf0e10cSrcweir#
11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir# only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir#
15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir#
21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir# version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir# for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir#
26*cdf0e10cSrcweir#*************************************************************************
27*cdf0e10cSrcweir
28*cdf0e10cSrcweir# The following variable can be set, if necessary (see README):
29*cdf0e10cSrcweir#GCCS_COMPAT := LD_PRELOAD=/lib/libgcc_s.so.1
30*cdf0e10cSrcweir
31*cdf0e10cSrcweir
32*cdf0e10cSrcweir.DELETE_ON_ERROR:
33*cdf0e10cSrcweir
34*cdf0e10cSrcweir
35*cdf0e10cSrcweirPRJ = $(OO_SDK_HOME)
36*cdf0e10cSrcweir
37*cdf0e10cSrcweirinclude $(PRJ)/settings/settings.mk
38*cdf0e10cSrcweirinclude $(PRJ)/settings/std.mk
39*cdf0e10cSrcweir
40*cdf0e10cSrcweirifeq "$(PLATFORM)" "windows"
41*cdf0e10cSrcweirqt = "
42*cdf0e10cSrcweirqt2 =
43*cdf0e10cSrcweircwd = $(subst \,/,$(shell cd))
44*cdf0e10cSrcweirlink_output_switch = -out:
45*cdf0e10cSrcweirlink_std_libs = kernel32.lib msvcrt.lib
46*cdf0e10cSrcweirure_java_url = $(subst $(subst .,., ),%%20,$(subst \,/,$(URLPREFIX)$(OO_SDK_URE_JAVA_DIR)))
47*cdf0e10cSrcweirure_unorc_url = $(subst $(subst .,., ),%%20,$(subst \,/,$(URLPREFIX)$(OO_SDK_URE_LIB_DIR)/uno.ini))
48*cdf0e10cSrcweirelse
49*cdf0e10cSrcweirqt = '
50*cdf0e10cSrcweirqt2 = '
51*cdf0e10cSrcweircwd = $(PWD)
52*cdf0e10cSrcweirlink_output_switch = $(subst .,.,-o )
53*cdf0e10cSrcweirlink_std_libs =
54*cdf0e10cSrcweirure_java_url = $(URLPREFIX)$(OO_SDK_URE_JAVA_DIR)
55*cdf0e10cSrcweirure_unorc_url = $(URLPREFIX)$(OO_SDK_URE_LIB_DIR)/unorc
56*cdf0e10cSrcweirendif
57*cdf0e10cSrcweir
58*cdf0e10cSrcweir
59*cdf0e10cSrcweir.PHONY: ALL
60*cdf0e10cSrcweirALL: test
61*cdf0e10cSrcweir
62*cdf0e10cSrcweirinclude $(PRJ)/settings/stdtarget.mk
63*cdf0e10cSrcweir
64*cdf0e10cSrcweir
65*cdf0e10cSrcweir.PHONY: test
66*cdf0e10cSrcweirtest: test-cpptest test-javatest test-javanative test-clientserver
67*cdf0e10cSrcweir
68*cdf0e10cSrcweir.PHONY: test-cpptest
69*cdf0e10cSrcweirtest-cpptest: out.sdk/cppmain.uno.$(SHAREDLIB_EXT) out.sdk/types.rdb \
70*cdf0e10cSrcweir            out.sdk/services.rdb
71*cdf0e10cSrcweir	$(GCCS_COMPAT) uno \
72*cdf0e10cSrcweir            -c test.cpp.cppmain.Component -l $(URLPREFIX)$(cwd)/$< \
73*cdf0e10cSrcweir            -ro "$(subst \,/,$(URLPREFIX)$(URE_TYPES))" -ro out.sdk/types.rdb \
74*cdf0e10cSrcweir            -ro "$(subst \,/,$(URLPREFIX)$(URE_SERVICES))" \
75*cdf0e10cSrcweir            -ro out.sdk/services.rdb
76*cdf0e10cSrcweir
77*cdf0e10cSrcweir.PHONY: test-javatest
78*cdf0e10cSrcweirtest-javatest: out.sdk/javamain.uno.jar out.sdk/types.rdb out.sdk/services.rdb
79*cdf0e10cSrcweir	$(GCCS_COMPAT) uno \
80*cdf0e10cSrcweir            -c test.java.javamain.Component -l $(URLPREFIX)$(cwd)/$< \
81*cdf0e10cSrcweir            -ro "$(subst \,/,$(URLPREFIX)$(URE_TYPES))" -ro out.sdk/types.rdb \
82*cdf0e10cSrcweir            -ro "$(subst \,/,$(URLPREFIX)$(URE_SERVICES))" \
83*cdf0e10cSrcweir            -ro out.sdk/services.rdb
84*cdf0e10cSrcweir
85*cdf0e10cSrcweir.PHONY: test-javanative
86*cdf0e10cSrcweirtest-javanative: out.sdk/runner.jar out.sdk/javanative.jar \
87*cdf0e10cSrcweir            out.sdk/javanative.rc out.sdk/services.rdb out.sdk/types.rdb
88*cdf0e10cSrcweir	$(GCCS_COMPAT) $(SDK_JAVA) -jar out.sdk/runner.jar $(ure_java_url)/ \
89*cdf0e10cSrcweir            $(URLPREFIX)$(cwd)/out.sdk/javanative.jar \
90*cdf0e10cSrcweir            $(URLPREFIX)$(cwd)/out.sdk/javanative.rc
91*cdf0e10cSrcweir
92*cdf0e10cSrcweirdo_server = $(GCCS_COMPAT) uno -c test.cpp.cppserver.Component \
93*cdf0e10cSrcweir    -l $(URLPREFIX)$(cwd)/out.sdk/cppserver.uno.$(SHAREDLIB_EXT) \
94*cdf0e10cSrcweir    -ro "$(subst \,/,$(URLPREFIX)$(URE_TYPES))" -ro out.sdk/types.rdb \
95*cdf0e10cSrcweir    -ro "$(subst \,/,$(URLPREFIX)$(URE_SERVICES))" -ro out.sdk/services.rdb \
96*cdf0e10cSrcweir    -u "uno:pipe,name=ure_test;urp;server" --singleaccept
97*cdf0e10cSrcweirdo_client = $(SDK_JAVA) -jar out.sdk/runner.jar $(ure_java_url)/ \
98*cdf0e10cSrcweir    $(URLPREFIX)$(cwd)/out.sdk/javaclient.jar \
99*cdf0e10cSrcweir    "uno:pipe,name=ure_test;urp;server"
100*cdf0e10cSrcweir.PHONY: test-clientserver
101*cdf0e10cSrcweirtest-clientserver: out.sdk/cppserver.uno.$(SHAREDLIB_EXT) out.sdk/runner.jar \
102*cdf0e10cSrcweir            out.sdk/javaclient.jar
103*cdf0e10cSrcweirifeq "$(PLATFORM)" "windows"
104*cdf0e10cSrcweir	echo $(subst %,%%,$(do_server)) > out.sdk/server.bat
105*cdf0e10cSrcweir	echo $(subst %,%%,$(do_client)) > out.sdk/client.bat
106*cdf0e10cSrcweir	@ echo Execute test-clientserver manually: start out.sdk\server.bat
107*cdf0e10cSrcweir	@ echo and then simultaneously start out.sdk\client.bat
108*cdf0e10cSrcweirelse
109*cdf0e10cSrcweir	$(do_server) &
110*cdf0e10cSrcweir	sleep 5 && $(do_client)
111*cdf0e10cSrcweirendif
112*cdf0e10cSrcweir
113*cdf0e10cSrcweir
114*cdf0e10cSrcweir.PHONY: clean
115*cdf0e10cSrcweirclean:
116*cdf0e10cSrcweir	$(DELRECURSIVE) $(subst /,$(PS),out.sdk)
117*cdf0e10cSrcweir
118*cdf0e10cSrcweir
119*cdf0e10cSrcweirout.sdk/cppmain.uno.$(SHAREDLIB_EXT): out.sdk/cppmain.$(OBJ_EXT) version.map | \
120*cdf0e10cSrcweir            out.sdk
121*cdf0e10cSrcweir	$(LINK) $(COMP_LINK_FLAGS) $(link_output_switch)$@ $< $(LINK_LIBS) \
122*cdf0e10cSrcweir            $(CPPULIB) $(CPPUHELPERLIB) $(SALLIB) $(SALHELPERLIB) \
123*cdf0e10cSrcweir            $(STLPORTLIB) $(link_std_libs)
124*cdf0e10cSrcweir
125*cdf0e10cSrcweirout.sdk/cppmain.$(OBJ_EXT): cppmain.cc out.sdk/cpputypes.cppumaker.flag \
126*cdf0e10cSrcweir            out.sdk/types.cppumaker.flag | out.sdk
127*cdf0e10cSrcweir	$(CC) $(CC_FLAGS) $(CC_OUTPUT_SWITCH)$@ -I$(PRJ)/include/stl \
128*cdf0e10cSrcweir            $(CC_INCLUDES) -Iout.sdk/include/cpputypes -Iout.sdk/include/types \
129*cdf0e10cSrcweir            $(CC_DEFINES) $<
130*cdf0e10cSrcweir
131*cdf0e10cSrcweir
132*cdf0e10cSrcweirout.sdk/cpptest.uno.$(SHAREDLIB_EXT): out.sdk/cpptest.$(OBJ_EXT) version.map | \
133*cdf0e10cSrcweir            out.sdk
134*cdf0e10cSrcweir	$(LINK) $(COMP_LINK_FLAGS) $(link_output_switch)$@ $< $(LINK_LIBS) \
135*cdf0e10cSrcweir            $(CPPULIB) $(CPPUHELPERLIB) $(SALLIB) $(link_std_libs)
136*cdf0e10cSrcweir
137*cdf0e10cSrcweirout.sdk/cpptest.$(OBJ_EXT): cpptest.cc out.sdk/cpputypes.cppumaker.flag \
138*cdf0e10cSrcweir            out.sdk/types.cppumaker.flag | out.sdk
139*cdf0e10cSrcweir	$(CC) $(CC_FLAGS) $(CC_OUTPUT_SWITCH)$@ -I$(PRJ)/include/stl \
140*cdf0e10cSrcweir            $(CC_INCLUDES) -Iout.sdk/include/cpputypes -Iout.sdk/include/types \
141*cdf0e10cSrcweir            $(CC_DEFINES) $<
142*cdf0e10cSrcweir
143*cdf0e10cSrcweir
144*cdf0e10cSrcweirout.sdk/cppserver.uno.$(SHAREDLIB_EXT): out.sdk/cppserver.$(OBJ_EXT) \
145*cdf0e10cSrcweir            version.map | out.sdk
146*cdf0e10cSrcweir	$(LINK) $(COMP_LINK_FLAGS) $(link_output_switch)$@ $< $(LINK_LIBS) \
147*cdf0e10cSrcweir            $(CPPULIB) $(CPPUHELPERLIB) $(SALLIB) $(link_std_libs)
148*cdf0e10cSrcweir
149*cdf0e10cSrcweirout.sdk/cppserver.$(OBJ_EXT): cppserver.cc out.sdk/cpputypes.cppumaker.flag \
150*cdf0e10cSrcweir            out.sdk/types.cppumaker.flag | out.sdk
151*cdf0e10cSrcweir	$(CC) $(CC_FLAGS) $(CC_OUTPUT_SWITCH)$@ -I$(PRJ)/include/stl \
152*cdf0e10cSrcweir            $(CC_INCLUDES) -Iout.sdk/include/cpputypes -Iout.sdk/include/types \
153*cdf0e10cSrcweir            $(CC_DEFINES) $<
154*cdf0e10cSrcweir
155*cdf0e10cSrcweir
156*cdf0e10cSrcweirout.sdk/cpputypes.cppumaker.flag: | out.sdk
157*cdf0e10cSrcweir	$(CPPUMAKER) -O./out.sdk/include/cpputypes \
158*cdf0e10cSrcweir            "-Tcom.sun.star.lang.DisposedException;com.sun.star.lang.EventObject;com.sun.star.lang.XMain;com.sun.star.lang.XMultiComponentFactory;com.sun.star.lang.XMultiServiceFactory;com.sun.star.lang.XSingleComponentFactory;com.sun.star.lang.XSingleServiceFactory;com.sun.star.lang.XTypeProvider;com.sun.star.registry.XRegistryKey;com.sun.star.uno.DeploymentException;com.sun.star.uno.Exception;com.sun.star.uno.RuntimeException;com.sun.star.uno.XAggregation;com.sun.star.uno.XComponentContext;com.sun.star.uno.XCurrentContext;com.sun.star.uno.XInterface;com.sun.star.uno.XWeak" \
159*cdf0e10cSrcweir            -B/UCR "$(URE_TYPES)"
160*cdf0e10cSrcweir	touch $@
161*cdf0e10cSrcweir
162*cdf0e10cSrcweirout.sdk/types.cppumaker.flag: out.sdk/types.rdb | out.sdk
163*cdf0e10cSrcweir	$(CPPUMAKER) -O./out.sdk/include/types -B/UCR $< "-X$(URE_TYPES)"
164*cdf0e10cSrcweir	touch $@
165*cdf0e10cSrcweir
166*cdf0e10cSrcweir
167*cdf0e10cSrcweirout.sdk/javamain.uno.jar: \
168*cdf0e10cSrcweir            out.sdk/class/javamain/test/java/javamain/JavaMain.class \
169*cdf0e10cSrcweir            out.sdk/javamain.mf | out.sdk
170*cdf0e10cSrcweir	$(SDK_JAR) cfm $@ out.sdk/javamain.mf -C out.sdk/class/javamain test
171*cdf0e10cSrcweir
172*cdf0e10cSrcweirout.sdk/javamain.mf: javamain.mf.template | out.sdk
173*cdf0e10cSrcweir	sed -e $(qt)s~^Class-Path:$$~& tester.jar~$(qt) \
174*cdf0e10cSrcweir            -e $(qt)s~^UNO-Type-Path:$$~& types.jar~$(qt) $< > $@
175*cdf0e10cSrcweir
176*cdf0e10cSrcweirout.sdk/class/javamain/test/java/javamain/JavaMain.class: JavaMain.java \
177*cdf0e10cSrcweir            out.sdk/tester.jar | out.sdk/class
178*cdf0e10cSrcweir	- $(DELRECURSIVE) $(subst /,$(PS),out.sdk/class/javamain)
179*cdf0e10cSrcweir	$(MKDIR) $(subst /,$(PS),out.sdk/class/javamain)
180*cdf0e10cSrcweir	$(SDK_JAVAC) $(JAVAC_FLAGS) \
181*cdf0e10cSrcweir            -classpath "$(CLASSPATH)$(PATH_SEPARATOR)out.sdk/tester.jar" \
182*cdf0e10cSrcweir            -sourcepath . -d out.sdk/class/javamain $<
183*cdf0e10cSrcweir
184*cdf0e10cSrcweir
185*cdf0e10cSrcweirout.sdk/runner.jar: out.sdk/class/runner/test/java/runner/Runner.class \
186*cdf0e10cSrcweir            out.sdk/runner.mf | out.sdk
187*cdf0e10cSrcweir	$(SDK_JAR) cfm $@ out.sdk/runner.mf -C out.sdk/class/runner test
188*cdf0e10cSrcweir
189*cdf0e10cSrcweirout.sdk/runner.mf: runner.mf.template | out.sdk
190*cdf0e10cSrcweir	sed -e \
191*cdf0e10cSrcweir            $(qt)s~^Class-Path:$$~& $(ure_java_url)/unoloader.jar~$(qt) \
192*cdf0e10cSrcweir            -e $(qt)s~^UNO-Type-Path:$$~& ~$(qt) $< > $@
193*cdf0e10cSrcweir
194*cdf0e10cSrcweirout.sdk/class/runner/test/java/runner/Runner.class: Runner.java | out.sdk/class
195*cdf0e10cSrcweir	- $(DELRECURSIVE) $(subst /,$(PS),out.sdk/class/runner)
196*cdf0e10cSrcweir	$(MKDIR) $(subst /,$(PS),out.sdk/class/runner)
197*cdf0e10cSrcweir	$(SDK_JAVAC) $(JAVAC_FLAGS) -sourcepath . -d out.sdk/class/runner $<
198*cdf0e10cSrcweir
199*cdf0e10cSrcweir
200*cdf0e10cSrcweirout.sdk/tester.jar: out.sdk/class/tester/test/java/tester/Tester.class \
201*cdf0e10cSrcweir            out.sdk/tester.mf | out.sdk
202*cdf0e10cSrcweir	$(SDK_JAR) cfm $@ out.sdk/tester.mf -C out.sdk/class/tester test
203*cdf0e10cSrcweir
204*cdf0e10cSrcweirout.sdk/tester.mf: tester.mf.template | out.sdk
205*cdf0e10cSrcweir	sed -e $(qt)s~^Class-Path:$$~& types.jar~$(qt) \
206*cdf0e10cSrcweir            -e $(qt)s~^UNO-Type-Path:$$~& types.jar~$(qt) $< > $@
207*cdf0e10cSrcweir
208*cdf0e10cSrcweirout.sdk/class/tester/test/java/tester/Tester.class: Tester.java \
209*cdf0e10cSrcweir            out.sdk/types.jar | out.sdk/class
210*cdf0e10cSrcweir	- $(DELRECURSIVE) $(subst /,$(PS),out.sdk/class/tester)
211*cdf0e10cSrcweir	$(MKDIR) $(subst /,$(PS),out.sdk/class/tester)
212*cdf0e10cSrcweir	$(SDK_JAVAC) $(JAVAC_FLAGS) \
213*cdf0e10cSrcweir            -classpath "$(CLASSPATH)$(PATH_SEPARATOR)out.sdk/types.jar" \
214*cdf0e10cSrcweir            -sourcepath . -d out.sdk/class/tester $<
215*cdf0e10cSrcweir
216*cdf0e10cSrcweir
217*cdf0e10cSrcweirout.sdk/javatest.uno.jar: \
218*cdf0e10cSrcweir            out.sdk/class/javatest/test/java/javatest/JavaTest.class \
219*cdf0e10cSrcweir            out.sdk/javatest.mf | out.sdk
220*cdf0e10cSrcweir	$(SDK_JAR) cfm $@ out.sdk/javatest.mf -C out.sdk/class/javatest test
221*cdf0e10cSrcweir
222*cdf0e10cSrcweirout.sdk/javatest.mf: javatest.mf.template | out.sdk
223*cdf0e10cSrcweir	sed -e $(qt)s~^Class-Path:$$~& types.jar~$(qt) \
224*cdf0e10cSrcweir            -e $(qt)s~^UNO-Type-Path:$$~& types.jar~$(qt) $< > $@
225*cdf0e10cSrcweir
226*cdf0e10cSrcweirout.sdk/class/javatest/test/java/javatest/JavaTest.class: JavaTest.java \
227*cdf0e10cSrcweir            out.sdk/types.jar | out.sdk/class
228*cdf0e10cSrcweir	- $(DELRECURSIVE) $(subst /,$(PS),out.sdk/class/javatest)
229*cdf0e10cSrcweir	$(MKDIR) $(subst /,$(PS),out.sdk/class/javatest)
230*cdf0e10cSrcweir	$(SDK_JAVAC) $(JAVAC_FLAGS) \
231*cdf0e10cSrcweir            -classpath "$(CLASSPATH)$(PATH_SEPARATOR)out.sdk/types.jar" \
232*cdf0e10cSrcweir            -sourcepath . -d out.sdk/class/javatest $<
233*cdf0e10cSrcweir
234*cdf0e10cSrcweir
235*cdf0e10cSrcweirout.sdk/javanative.jar: \
236*cdf0e10cSrcweir            out.sdk/class/javanative/test/java/javanative/JavaNative.class \
237*cdf0e10cSrcweir            out.sdk/javanative.mf | out.sdk
238*cdf0e10cSrcweir	$(SDK_JAR) cfm $@ out.sdk/javanative.mf -C out.sdk/class/javanative test
239*cdf0e10cSrcweir
240*cdf0e10cSrcweirout.sdk/javanative.mf: javanative.mf.template | out.sdk
241*cdf0e10cSrcweir	sed -e $(qt)s~^Class-Path:$$~& tester.jar~$(qt) \
242*cdf0e10cSrcweir            -e $(qt)s~^UNO-Type-Path:$$~& types.jar~$(qt) $< > $@
243*cdf0e10cSrcweir
244*cdf0e10cSrcweirout.sdk/class/javanative/test/java/javanative/JavaNative.class: \
245*cdf0e10cSrcweir            JavaNative.java out.sdk/tester.jar | out.sdk/class
246*cdf0e10cSrcweir	- $(DELRECURSIVE) $(subst /,$(PS),out.sdk/class/javanative)
247*cdf0e10cSrcweir	$(MKDIR) $(subst /,$(PS),out.sdk/class/javanative)
248*cdf0e10cSrcweir	$(SDK_JAVAC) $(JAVAC_FLAGS) \
249*cdf0e10cSrcweir            -classpath "$(CLASSPATH)$(PATH_SEPARATOR)out.sdk/tester.jar" \
250*cdf0e10cSrcweir            -sourcepath . -d out.sdk/class/javanative $<
251*cdf0e10cSrcweir
252*cdf0e10cSrcweirout.sdk/javanative.rc: | out.sdk
253*cdf0e10cSrcweir	echo $(qt2)URE_INTERNAL_LIB_DIR=$${$(subst :,\u003A,$(ure_unorc_url)):URE_INTERNAL_LIB_DIR}$(qt2) > $@
254*cdf0e10cSrcweir	echo $(qt2)URE_INTERNAL_JAVA_DIR=$${$(subst :,\u003A,$(ure_unorc_url)):URE_INTERNAL_JAVA_DIR}$(qt2) >> $@
255*cdf0e10cSrcweir	echo $(qt2)UNO_TYPES=$${$(subst :,\u003A,$(ure_unorc_url)):UNO_TYPES} $(URLPREFIX)$(cwd)/out.sdk/types.rdb$(qt2) >> $@
256*cdf0e10cSrcweir	echo $(qt2)UNO_SERVICES=$${$(subst :,\u003A,$(ure_unorc_url)):UNO_SERVICES} $(URLPREFIX)$(cwd)/out.sdk/services.rdb$(qt2) >> $@
257*cdf0e10cSrcweir
258*cdf0e10cSrcweir
259*cdf0e10cSrcweirout.sdk/javaclient.jar: \
260*cdf0e10cSrcweir            out.sdk/class/javaclient/test/java/javaclient/JavaClient.class \
261*cdf0e10cSrcweir            out.sdk/javaclient.mf | out.sdk
262*cdf0e10cSrcweir	$(SDK_JAR) cfm $@ out.sdk/javaclient.mf -C out.sdk/class/javaclient test
263*cdf0e10cSrcweir
264*cdf0e10cSrcweirout.sdk/javaclient.mf: javaclient.mf.template | out.sdk
265*cdf0e10cSrcweir	sed -e $(qt)s~^Class-Path:$$~& types.jar~$(qt) \
266*cdf0e10cSrcweir            -e $(qt)s~^UNO-Type-Path:$$~& types.jar~$(qt) $< > $@
267*cdf0e10cSrcweir
268*cdf0e10cSrcweirout.sdk/class/javaclient/test/java/javaclient/JavaClient.class: \
269*cdf0e10cSrcweir            JavaClient.java out.sdk/types.jar | out.sdk/class
270*cdf0e10cSrcweir	- $(DELRECURSIVE) $(subst /,$(PS),out.sdk/class/javaclient)
271*cdf0e10cSrcweir	$(MKDIR) $(subst /,$(PS),out.sdk/class/javaclient)
272*cdf0e10cSrcweir	$(SDK_JAVAC) $(JAVAC_FLAGS) \
273*cdf0e10cSrcweir            -classpath "$(CLASSPATH)$(PATH_SEPARATOR)out.sdk/types.jar" \
274*cdf0e10cSrcweir            -sourcepath . -d out.sdk/class/javaclient $<
275*cdf0e10cSrcweir
276*cdf0e10cSrcweir
277*cdf0e10cSrcweirout.sdk/types.jar: out.sdk/types.javamaker.flag out.sdk/types.mf | out.sdk
278*cdf0e10cSrcweir	$(SDK_JAR) cfm $@ out.sdk/types.mf -C out.sdk/class/types test
279*cdf0e10cSrcweir
280*cdf0e10cSrcweirout.sdk/types.mf: types.mf.template | out.sdk
281*cdf0e10cSrcweir	sed -e $(qt)s~^Class-Path:$$~& ~$(qt) \
282*cdf0e10cSrcweir            -e $(qt)s~^UNO-Type-Path:$$~& \<\>~$(qt) $< > $@
283*cdf0e10cSrcweir
284*cdf0e10cSrcweirout.sdk/types.javamaker.flag: out.sdk/types.rdb | out.sdk out.sdk/class
285*cdf0e10cSrcweir	- $(DELRECURSIVE) $(subst /,$(PS),out.sdk/class/types)
286*cdf0e10cSrcweir	$(JAVAMAKER) -O./out.sdk/class/types -B/UCR $< "-X$(URE_TYPES)"
287*cdf0e10cSrcweir	touch $@
288*cdf0e10cSrcweir
289*cdf0e10cSrcweir
290*cdf0e10cSrcweirout.sdk/types.rdb: out.sdk/types.urd | out.sdk
291*cdf0e10cSrcweir	$(REGMERGE) $@ /UCR $<
292*cdf0e10cSrcweir
293*cdf0e10cSrcweirout.sdk/types.urd: types.idl | out.sdk
294*cdf0e10cSrcweir	$(IDLC) -O$(@D) -I$(IDL_DIR) -cid -we $<
295*cdf0e10cSrcweir
296*cdf0e10cSrcweir
297*cdf0e10cSrcweirout.sdk/services.rdb: out.sdk/cpptest.uno.$(SHAREDLIB_EXT) \
298*cdf0e10cSrcweir            out.sdk/javatest.uno.jar | out.sdk
299*cdf0e10cSrcweir	$(DEL) $(subst /,$(PS),$@)
300*cdf0e10cSrcweir	$(REGCOMP) -register -r $@ \
301*cdf0e10cSrcweir            -c $(URLPREFIX)$(cwd)/out.sdk/cpptest.uno.$(SHAREDLIB_EXT)
302*cdf0e10cSrcweir	$(REGCOMP) -register -br "$(URE_TYPES)" -br "$(URE_SERVICES)" -r $@ \
303*cdf0e10cSrcweir            -c $(URLPREFIX)$(cwd)/out.sdk/javatest.uno.jar
304*cdf0e10cSrcweir
305*cdf0e10cSrcweir
306*cdf0e10cSrcweirout.sdk:
307*cdf0e10cSrcweir	$(MKDIR) $(subst /,$(PS),$@)
308*cdf0e10cSrcweir
309*cdf0e10cSrcweirout.sdk/class: | out.sdk
310*cdf0e10cSrcweir	$(MKDIR) $(subst /,$(PS),$@)
311