xref: /trunk/main/ure/source/uretest/Makefile (revision e76eebc6)
1*e76eebc6SAndrew Rist#**************************************************************
2*e76eebc6SAndrew Rist#
3*e76eebc6SAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*e76eebc6SAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*e76eebc6SAndrew Rist#  distributed with this work for additional information
6*e76eebc6SAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*e76eebc6SAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*e76eebc6SAndrew Rist#  "License"); you may not use this file except in compliance
9*e76eebc6SAndrew Rist#  with the License.  You may obtain a copy of the License at
10*e76eebc6SAndrew Rist#
11*e76eebc6SAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*e76eebc6SAndrew Rist#
13*e76eebc6SAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*e76eebc6SAndrew Rist#  software distributed under the License is distributed on an
15*e76eebc6SAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*e76eebc6SAndrew Rist#  KIND, either express or implied.  See the License for the
17*e76eebc6SAndrew Rist#  specific language governing permissions and limitations
18*e76eebc6SAndrew Rist#  under the License.
19*e76eebc6SAndrew Rist#
20*e76eebc6SAndrew Rist#**************************************************************
21cdf0e10cSrcweir
22cdf0e10cSrcweir# The following variable can be set, if necessary (see README):
23cdf0e10cSrcweir#GCCS_COMPAT := LD_PRELOAD=/lib/libgcc_s.so.1
24cdf0e10cSrcweir
25cdf0e10cSrcweir
26cdf0e10cSrcweir.DELETE_ON_ERROR:
27cdf0e10cSrcweir
28cdf0e10cSrcweir
29cdf0e10cSrcweirPRJ = $(OO_SDK_HOME)
30cdf0e10cSrcweir
31cdf0e10cSrcweirinclude $(PRJ)/settings/settings.mk
32cdf0e10cSrcweirinclude $(PRJ)/settings/std.mk
33cdf0e10cSrcweir
34cdf0e10cSrcweirifeq "$(PLATFORM)" "windows"
35cdf0e10cSrcweirqt = "
36cdf0e10cSrcweirqt2 =
37cdf0e10cSrcweircwd = $(subst \,/,$(shell cd))
38cdf0e10cSrcweirlink_output_switch = -out:
39cdf0e10cSrcweirlink_std_libs = kernel32.lib msvcrt.lib
40cdf0e10cSrcweirure_java_url = $(subst $(subst .,., ),%%20,$(subst \,/,$(URLPREFIX)$(OO_SDK_URE_JAVA_DIR)))
41cdf0e10cSrcweirure_unorc_url = $(subst $(subst .,., ),%%20,$(subst \,/,$(URLPREFIX)$(OO_SDK_URE_LIB_DIR)/uno.ini))
42cdf0e10cSrcweirelse
43cdf0e10cSrcweirqt = '
44cdf0e10cSrcweirqt2 = '
45cdf0e10cSrcweircwd = $(PWD)
46cdf0e10cSrcweirlink_output_switch = $(subst .,.,-o )
47cdf0e10cSrcweirlink_std_libs =
48cdf0e10cSrcweirure_java_url = $(URLPREFIX)$(OO_SDK_URE_JAVA_DIR)
49cdf0e10cSrcweirure_unorc_url = $(URLPREFIX)$(OO_SDK_URE_LIB_DIR)/unorc
50cdf0e10cSrcweirendif
51cdf0e10cSrcweir
52cdf0e10cSrcweir
53cdf0e10cSrcweir.PHONY: ALL
54cdf0e10cSrcweirALL: test
55cdf0e10cSrcweir
56cdf0e10cSrcweirinclude $(PRJ)/settings/stdtarget.mk
57cdf0e10cSrcweir
58cdf0e10cSrcweir
59cdf0e10cSrcweir.PHONY: test
60cdf0e10cSrcweirtest: test-cpptest test-javatest test-javanative test-clientserver
61cdf0e10cSrcweir
62cdf0e10cSrcweir.PHONY: test-cpptest
63cdf0e10cSrcweirtest-cpptest: out.sdk/cppmain.uno.$(SHAREDLIB_EXT) out.sdk/types.rdb \
64cdf0e10cSrcweir            out.sdk/services.rdb
65cdf0e10cSrcweir	$(GCCS_COMPAT) uno \
66cdf0e10cSrcweir            -c test.cpp.cppmain.Component -l $(URLPREFIX)$(cwd)/$< \
67cdf0e10cSrcweir            -ro "$(subst \,/,$(URLPREFIX)$(URE_TYPES))" -ro out.sdk/types.rdb \
68cdf0e10cSrcweir            -ro "$(subst \,/,$(URLPREFIX)$(URE_SERVICES))" \
69cdf0e10cSrcweir            -ro out.sdk/services.rdb
70cdf0e10cSrcweir
71cdf0e10cSrcweir.PHONY: test-javatest
72cdf0e10cSrcweirtest-javatest: out.sdk/javamain.uno.jar out.sdk/types.rdb out.sdk/services.rdb
73cdf0e10cSrcweir	$(GCCS_COMPAT) uno \
74cdf0e10cSrcweir            -c test.java.javamain.Component -l $(URLPREFIX)$(cwd)/$< \
75cdf0e10cSrcweir            -ro "$(subst \,/,$(URLPREFIX)$(URE_TYPES))" -ro out.sdk/types.rdb \
76cdf0e10cSrcweir            -ro "$(subst \,/,$(URLPREFIX)$(URE_SERVICES))" \
77cdf0e10cSrcweir            -ro out.sdk/services.rdb
78cdf0e10cSrcweir
79cdf0e10cSrcweir.PHONY: test-javanative
80cdf0e10cSrcweirtest-javanative: out.sdk/runner.jar out.sdk/javanative.jar \
81cdf0e10cSrcweir            out.sdk/javanative.rc out.sdk/services.rdb out.sdk/types.rdb
82cdf0e10cSrcweir	$(GCCS_COMPAT) $(SDK_JAVA) -jar out.sdk/runner.jar $(ure_java_url)/ \
83cdf0e10cSrcweir            $(URLPREFIX)$(cwd)/out.sdk/javanative.jar \
84cdf0e10cSrcweir            $(URLPREFIX)$(cwd)/out.sdk/javanative.rc
85cdf0e10cSrcweir
86cdf0e10cSrcweirdo_server = $(GCCS_COMPAT) uno -c test.cpp.cppserver.Component \
87cdf0e10cSrcweir    -l $(URLPREFIX)$(cwd)/out.sdk/cppserver.uno.$(SHAREDLIB_EXT) \
88cdf0e10cSrcweir    -ro "$(subst \,/,$(URLPREFIX)$(URE_TYPES))" -ro out.sdk/types.rdb \
89cdf0e10cSrcweir    -ro "$(subst \,/,$(URLPREFIX)$(URE_SERVICES))" -ro out.sdk/services.rdb \
90cdf0e10cSrcweir    -u "uno:pipe,name=ure_test;urp;server" --singleaccept
91cdf0e10cSrcweirdo_client = $(SDK_JAVA) -jar out.sdk/runner.jar $(ure_java_url)/ \
92cdf0e10cSrcweir    $(URLPREFIX)$(cwd)/out.sdk/javaclient.jar \
93cdf0e10cSrcweir    "uno:pipe,name=ure_test;urp;server"
94cdf0e10cSrcweir.PHONY: test-clientserver
95cdf0e10cSrcweirtest-clientserver: out.sdk/cppserver.uno.$(SHAREDLIB_EXT) out.sdk/runner.jar \
96cdf0e10cSrcweir            out.sdk/javaclient.jar
97cdf0e10cSrcweirifeq "$(PLATFORM)" "windows"
98cdf0e10cSrcweir	echo $(subst %,%%,$(do_server)) > out.sdk/server.bat
99cdf0e10cSrcweir	echo $(subst %,%%,$(do_client)) > out.sdk/client.bat
100cdf0e10cSrcweir	@ echo Execute test-clientserver manually: start out.sdk\server.bat
101cdf0e10cSrcweir	@ echo and then simultaneously start out.sdk\client.bat
102cdf0e10cSrcweirelse
103cdf0e10cSrcweir	$(do_server) &
104cdf0e10cSrcweir	sleep 5 && $(do_client)
105cdf0e10cSrcweirendif
106cdf0e10cSrcweir
107cdf0e10cSrcweir
108cdf0e10cSrcweir.PHONY: clean
109cdf0e10cSrcweirclean:
110cdf0e10cSrcweir	$(DELRECURSIVE) $(subst /,$(PS),out.sdk)
111cdf0e10cSrcweir
112cdf0e10cSrcweir
113cdf0e10cSrcweirout.sdk/cppmain.uno.$(SHAREDLIB_EXT): out.sdk/cppmain.$(OBJ_EXT) version.map | \
114cdf0e10cSrcweir            out.sdk
115cdf0e10cSrcweir	$(LINK) $(COMP_LINK_FLAGS) $(link_output_switch)$@ $< $(LINK_LIBS) \
116cdf0e10cSrcweir            $(CPPULIB) $(CPPUHELPERLIB) $(SALLIB) $(SALHELPERLIB) \
117cdf0e10cSrcweir            $(STLPORTLIB) $(link_std_libs)
118cdf0e10cSrcweir
119cdf0e10cSrcweirout.sdk/cppmain.$(OBJ_EXT): cppmain.cc out.sdk/cpputypes.cppumaker.flag \
120cdf0e10cSrcweir            out.sdk/types.cppumaker.flag | out.sdk
121cdf0e10cSrcweir	$(CC) $(CC_FLAGS) $(CC_OUTPUT_SWITCH)$@ -I$(PRJ)/include/stl \
122cdf0e10cSrcweir            $(CC_INCLUDES) -Iout.sdk/include/cpputypes -Iout.sdk/include/types \
123cdf0e10cSrcweir            $(CC_DEFINES) $<
124cdf0e10cSrcweir
125cdf0e10cSrcweir
126cdf0e10cSrcweirout.sdk/cpptest.uno.$(SHAREDLIB_EXT): out.sdk/cpptest.$(OBJ_EXT) version.map | \
127cdf0e10cSrcweir            out.sdk
128cdf0e10cSrcweir	$(LINK) $(COMP_LINK_FLAGS) $(link_output_switch)$@ $< $(LINK_LIBS) \
129cdf0e10cSrcweir            $(CPPULIB) $(CPPUHELPERLIB) $(SALLIB) $(link_std_libs)
130cdf0e10cSrcweir
131cdf0e10cSrcweirout.sdk/cpptest.$(OBJ_EXT): cpptest.cc out.sdk/cpputypes.cppumaker.flag \
132cdf0e10cSrcweir            out.sdk/types.cppumaker.flag | out.sdk
133cdf0e10cSrcweir	$(CC) $(CC_FLAGS) $(CC_OUTPUT_SWITCH)$@ -I$(PRJ)/include/stl \
134cdf0e10cSrcweir            $(CC_INCLUDES) -Iout.sdk/include/cpputypes -Iout.sdk/include/types \
135cdf0e10cSrcweir            $(CC_DEFINES) $<
136cdf0e10cSrcweir
137cdf0e10cSrcweir
138cdf0e10cSrcweirout.sdk/cppserver.uno.$(SHAREDLIB_EXT): out.sdk/cppserver.$(OBJ_EXT) \
139cdf0e10cSrcweir            version.map | out.sdk
140cdf0e10cSrcweir	$(LINK) $(COMP_LINK_FLAGS) $(link_output_switch)$@ $< $(LINK_LIBS) \
141cdf0e10cSrcweir            $(CPPULIB) $(CPPUHELPERLIB) $(SALLIB) $(link_std_libs)
142cdf0e10cSrcweir
143cdf0e10cSrcweirout.sdk/cppserver.$(OBJ_EXT): cppserver.cc out.sdk/cpputypes.cppumaker.flag \
144cdf0e10cSrcweir            out.sdk/types.cppumaker.flag | out.sdk
145cdf0e10cSrcweir	$(CC) $(CC_FLAGS) $(CC_OUTPUT_SWITCH)$@ -I$(PRJ)/include/stl \
146cdf0e10cSrcweir            $(CC_INCLUDES) -Iout.sdk/include/cpputypes -Iout.sdk/include/types \
147cdf0e10cSrcweir            $(CC_DEFINES) $<
148cdf0e10cSrcweir
149cdf0e10cSrcweir
150cdf0e10cSrcweirout.sdk/cpputypes.cppumaker.flag: | out.sdk
151cdf0e10cSrcweir	$(CPPUMAKER) -O./out.sdk/include/cpputypes \
152cdf0e10cSrcweir            "-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" \
153cdf0e10cSrcweir            -B/UCR "$(URE_TYPES)"
154cdf0e10cSrcweir	touch $@
155cdf0e10cSrcweir
156cdf0e10cSrcweirout.sdk/types.cppumaker.flag: out.sdk/types.rdb | out.sdk
157cdf0e10cSrcweir	$(CPPUMAKER) -O./out.sdk/include/types -B/UCR $< "-X$(URE_TYPES)"
158cdf0e10cSrcweir	touch $@
159cdf0e10cSrcweir
160cdf0e10cSrcweir
161cdf0e10cSrcweirout.sdk/javamain.uno.jar: \
162cdf0e10cSrcweir            out.sdk/class/javamain/test/java/javamain/JavaMain.class \
163cdf0e10cSrcweir            out.sdk/javamain.mf | out.sdk
164cdf0e10cSrcweir	$(SDK_JAR) cfm $@ out.sdk/javamain.mf -C out.sdk/class/javamain test
165cdf0e10cSrcweir
166cdf0e10cSrcweirout.sdk/javamain.mf: javamain.mf.template | out.sdk
167cdf0e10cSrcweir	sed -e $(qt)s~^Class-Path:$$~& tester.jar~$(qt) \
168cdf0e10cSrcweir            -e $(qt)s~^UNO-Type-Path:$$~& types.jar~$(qt) $< > $@
169cdf0e10cSrcweir
170cdf0e10cSrcweirout.sdk/class/javamain/test/java/javamain/JavaMain.class: JavaMain.java \
171cdf0e10cSrcweir            out.sdk/tester.jar | out.sdk/class
172cdf0e10cSrcweir	- $(DELRECURSIVE) $(subst /,$(PS),out.sdk/class/javamain)
173cdf0e10cSrcweir	$(MKDIR) $(subst /,$(PS),out.sdk/class/javamain)
174cdf0e10cSrcweir	$(SDK_JAVAC) $(JAVAC_FLAGS) \
175cdf0e10cSrcweir            -classpath "$(CLASSPATH)$(PATH_SEPARATOR)out.sdk/tester.jar" \
176cdf0e10cSrcweir            -sourcepath . -d out.sdk/class/javamain $<
177cdf0e10cSrcweir
178cdf0e10cSrcweir
179cdf0e10cSrcweirout.sdk/runner.jar: out.sdk/class/runner/test/java/runner/Runner.class \
180cdf0e10cSrcweir            out.sdk/runner.mf | out.sdk
181cdf0e10cSrcweir	$(SDK_JAR) cfm $@ out.sdk/runner.mf -C out.sdk/class/runner test
182cdf0e10cSrcweir
183cdf0e10cSrcweirout.sdk/runner.mf: runner.mf.template | out.sdk
184cdf0e10cSrcweir	sed -e \
185cdf0e10cSrcweir            $(qt)s~^Class-Path:$$~& $(ure_java_url)/unoloader.jar~$(qt) \
186cdf0e10cSrcweir            -e $(qt)s~^UNO-Type-Path:$$~& ~$(qt) $< > $@
187cdf0e10cSrcweir
188cdf0e10cSrcweirout.sdk/class/runner/test/java/runner/Runner.class: Runner.java | out.sdk/class
189cdf0e10cSrcweir	- $(DELRECURSIVE) $(subst /,$(PS),out.sdk/class/runner)
190cdf0e10cSrcweir	$(MKDIR) $(subst /,$(PS),out.sdk/class/runner)
191cdf0e10cSrcweir	$(SDK_JAVAC) $(JAVAC_FLAGS) -sourcepath . -d out.sdk/class/runner $<
192cdf0e10cSrcweir
193cdf0e10cSrcweir
194cdf0e10cSrcweirout.sdk/tester.jar: out.sdk/class/tester/test/java/tester/Tester.class \
195cdf0e10cSrcweir            out.sdk/tester.mf | out.sdk
196cdf0e10cSrcweir	$(SDK_JAR) cfm $@ out.sdk/tester.mf -C out.sdk/class/tester test
197cdf0e10cSrcweir
198cdf0e10cSrcweirout.sdk/tester.mf: tester.mf.template | out.sdk
199cdf0e10cSrcweir	sed -e $(qt)s~^Class-Path:$$~& types.jar~$(qt) \
200cdf0e10cSrcweir            -e $(qt)s~^UNO-Type-Path:$$~& types.jar~$(qt) $< > $@
201cdf0e10cSrcweir
202cdf0e10cSrcweirout.sdk/class/tester/test/java/tester/Tester.class: Tester.java \
203cdf0e10cSrcweir            out.sdk/types.jar | out.sdk/class
204cdf0e10cSrcweir	- $(DELRECURSIVE) $(subst /,$(PS),out.sdk/class/tester)
205cdf0e10cSrcweir	$(MKDIR) $(subst /,$(PS),out.sdk/class/tester)
206cdf0e10cSrcweir	$(SDK_JAVAC) $(JAVAC_FLAGS) \
207cdf0e10cSrcweir            -classpath "$(CLASSPATH)$(PATH_SEPARATOR)out.sdk/types.jar" \
208cdf0e10cSrcweir            -sourcepath . -d out.sdk/class/tester $<
209cdf0e10cSrcweir
210cdf0e10cSrcweir
211cdf0e10cSrcweirout.sdk/javatest.uno.jar: \
212cdf0e10cSrcweir            out.sdk/class/javatest/test/java/javatest/JavaTest.class \
213cdf0e10cSrcweir            out.sdk/javatest.mf | out.sdk
214cdf0e10cSrcweir	$(SDK_JAR) cfm $@ out.sdk/javatest.mf -C out.sdk/class/javatest test
215cdf0e10cSrcweir
216cdf0e10cSrcweirout.sdk/javatest.mf: javatest.mf.template | out.sdk
217cdf0e10cSrcweir	sed -e $(qt)s~^Class-Path:$$~& types.jar~$(qt) \
218cdf0e10cSrcweir            -e $(qt)s~^UNO-Type-Path:$$~& types.jar~$(qt) $< > $@
219cdf0e10cSrcweir
220cdf0e10cSrcweirout.sdk/class/javatest/test/java/javatest/JavaTest.class: JavaTest.java \
221cdf0e10cSrcweir            out.sdk/types.jar | out.sdk/class
222cdf0e10cSrcweir	- $(DELRECURSIVE) $(subst /,$(PS),out.sdk/class/javatest)
223cdf0e10cSrcweir	$(MKDIR) $(subst /,$(PS),out.sdk/class/javatest)
224cdf0e10cSrcweir	$(SDK_JAVAC) $(JAVAC_FLAGS) \
225cdf0e10cSrcweir            -classpath "$(CLASSPATH)$(PATH_SEPARATOR)out.sdk/types.jar" \
226cdf0e10cSrcweir            -sourcepath . -d out.sdk/class/javatest $<
227cdf0e10cSrcweir
228cdf0e10cSrcweir
229cdf0e10cSrcweirout.sdk/javanative.jar: \
230cdf0e10cSrcweir            out.sdk/class/javanative/test/java/javanative/JavaNative.class \
231cdf0e10cSrcweir            out.sdk/javanative.mf | out.sdk
232cdf0e10cSrcweir	$(SDK_JAR) cfm $@ out.sdk/javanative.mf -C out.sdk/class/javanative test
233cdf0e10cSrcweir
234cdf0e10cSrcweirout.sdk/javanative.mf: javanative.mf.template | out.sdk
235cdf0e10cSrcweir	sed -e $(qt)s~^Class-Path:$$~& tester.jar~$(qt) \
236cdf0e10cSrcweir            -e $(qt)s~^UNO-Type-Path:$$~& types.jar~$(qt) $< > $@
237cdf0e10cSrcweir
238cdf0e10cSrcweirout.sdk/class/javanative/test/java/javanative/JavaNative.class: \
239cdf0e10cSrcweir            JavaNative.java out.sdk/tester.jar | out.sdk/class
240cdf0e10cSrcweir	- $(DELRECURSIVE) $(subst /,$(PS),out.sdk/class/javanative)
241cdf0e10cSrcweir	$(MKDIR) $(subst /,$(PS),out.sdk/class/javanative)
242cdf0e10cSrcweir	$(SDK_JAVAC) $(JAVAC_FLAGS) \
243cdf0e10cSrcweir            -classpath "$(CLASSPATH)$(PATH_SEPARATOR)out.sdk/tester.jar" \
244cdf0e10cSrcweir            -sourcepath . -d out.sdk/class/javanative $<
245cdf0e10cSrcweir
246cdf0e10cSrcweirout.sdk/javanative.rc: | out.sdk
247cdf0e10cSrcweir	echo $(qt2)URE_INTERNAL_LIB_DIR=$${$(subst :,\u003A,$(ure_unorc_url)):URE_INTERNAL_LIB_DIR}$(qt2) > $@
248cdf0e10cSrcweir	echo $(qt2)URE_INTERNAL_JAVA_DIR=$${$(subst :,\u003A,$(ure_unorc_url)):URE_INTERNAL_JAVA_DIR}$(qt2) >> $@
249cdf0e10cSrcweir	echo $(qt2)UNO_TYPES=$${$(subst :,\u003A,$(ure_unorc_url)):UNO_TYPES} $(URLPREFIX)$(cwd)/out.sdk/types.rdb$(qt2) >> $@
250cdf0e10cSrcweir	echo $(qt2)UNO_SERVICES=$${$(subst :,\u003A,$(ure_unorc_url)):UNO_SERVICES} $(URLPREFIX)$(cwd)/out.sdk/services.rdb$(qt2) >> $@
251cdf0e10cSrcweir
252cdf0e10cSrcweir
253cdf0e10cSrcweirout.sdk/javaclient.jar: \
254cdf0e10cSrcweir            out.sdk/class/javaclient/test/java/javaclient/JavaClient.class \
255cdf0e10cSrcweir            out.sdk/javaclient.mf | out.sdk
256cdf0e10cSrcweir	$(SDK_JAR) cfm $@ out.sdk/javaclient.mf -C out.sdk/class/javaclient test
257cdf0e10cSrcweir
258cdf0e10cSrcweirout.sdk/javaclient.mf: javaclient.mf.template | out.sdk
259cdf0e10cSrcweir	sed -e $(qt)s~^Class-Path:$$~& types.jar~$(qt) \
260cdf0e10cSrcweir            -e $(qt)s~^UNO-Type-Path:$$~& types.jar~$(qt) $< > $@
261cdf0e10cSrcweir
262cdf0e10cSrcweirout.sdk/class/javaclient/test/java/javaclient/JavaClient.class: \
263cdf0e10cSrcweir            JavaClient.java out.sdk/types.jar | out.sdk/class
264cdf0e10cSrcweir	- $(DELRECURSIVE) $(subst /,$(PS),out.sdk/class/javaclient)
265cdf0e10cSrcweir	$(MKDIR) $(subst /,$(PS),out.sdk/class/javaclient)
266cdf0e10cSrcweir	$(SDK_JAVAC) $(JAVAC_FLAGS) \
267cdf0e10cSrcweir            -classpath "$(CLASSPATH)$(PATH_SEPARATOR)out.sdk/types.jar" \
268cdf0e10cSrcweir            -sourcepath . -d out.sdk/class/javaclient $<
269cdf0e10cSrcweir
270cdf0e10cSrcweir
271cdf0e10cSrcweirout.sdk/types.jar: out.sdk/types.javamaker.flag out.sdk/types.mf | out.sdk
272cdf0e10cSrcweir	$(SDK_JAR) cfm $@ out.sdk/types.mf -C out.sdk/class/types test
273cdf0e10cSrcweir
274cdf0e10cSrcweirout.sdk/types.mf: types.mf.template | out.sdk
275cdf0e10cSrcweir	sed -e $(qt)s~^Class-Path:$$~& ~$(qt) \
276cdf0e10cSrcweir            -e $(qt)s~^UNO-Type-Path:$$~& \<\>~$(qt) $< > $@
277cdf0e10cSrcweir
278cdf0e10cSrcweirout.sdk/types.javamaker.flag: out.sdk/types.rdb | out.sdk out.sdk/class
279cdf0e10cSrcweir	- $(DELRECURSIVE) $(subst /,$(PS),out.sdk/class/types)
280cdf0e10cSrcweir	$(JAVAMAKER) -O./out.sdk/class/types -B/UCR $< "-X$(URE_TYPES)"
281cdf0e10cSrcweir	touch $@
282cdf0e10cSrcweir
283cdf0e10cSrcweir
284cdf0e10cSrcweirout.sdk/types.rdb: out.sdk/types.urd | out.sdk
285cdf0e10cSrcweir	$(REGMERGE) $@ /UCR $<
286cdf0e10cSrcweir
287cdf0e10cSrcweirout.sdk/types.urd: types.idl | out.sdk
288cdf0e10cSrcweir	$(IDLC) -O$(@D) -I$(IDL_DIR) -cid -we $<
289cdf0e10cSrcweir
290cdf0e10cSrcweir
291cdf0e10cSrcweirout.sdk/services.rdb: out.sdk/cpptest.uno.$(SHAREDLIB_EXT) \
292cdf0e10cSrcweir            out.sdk/javatest.uno.jar | out.sdk
293cdf0e10cSrcweir	$(DEL) $(subst /,$(PS),$@)
294cdf0e10cSrcweir	$(REGCOMP) -register -r $@ \
295cdf0e10cSrcweir            -c $(URLPREFIX)$(cwd)/out.sdk/cpptest.uno.$(SHAREDLIB_EXT)
296cdf0e10cSrcweir	$(REGCOMP) -register -br "$(URE_TYPES)" -br "$(URE_SERVICES)" -r $@ \
297cdf0e10cSrcweir            -c $(URLPREFIX)$(cwd)/out.sdk/javatest.uno.jar
298cdf0e10cSrcweir
299cdf0e10cSrcweir
300cdf0e10cSrcweirout.sdk:
301cdf0e10cSrcweir	$(MKDIR) $(subst /,$(PS),$@)
302cdf0e10cSrcweir
303cdf0e10cSrcweirout.sdk/class: | out.sdk
304cdf0e10cSrcweir	$(MKDIR) $(subst /,$(PS),$@)
305