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