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 # Builds the OOoBean of the Developers Guide 23 24 PRJ=../../.. 25 SETTINGS=$(PRJ)/settings 26 27 include $(SETTINGS)/settings.mk 28 include $(SETTINGS)/std.mk 29 30 # Define non-platform/compiler specific settings 31 OUT_COMP_CLASS = $(OUT_CLASS)/OOoBeanViewer 32 33 # normally the idl file should be stored in a directory tree fitting the module structure, 34 # for the example we know the module structure 35 PACKAGE = com/sun/star/comp/beans 36 37 JAVAFILES = \ 38 OOoBeanViewer.java \ 39 40 CLASSFILES = $(patsubst %.java,$(OUT_COMP_CLASS)/$(PACKAGE)/%.class,$(JAVAFILES)) 41 42 SDK_CLASSPATH = $(subst $(EMPTYSTRING) $(PATH_SEPARATOR),$(PATH_SEPARATOR),$(URE_CLASSES_DIR)/jurt.jar\ 43 $(PATH_SEPARATOR)$(URE_CLASSES_DIR)/ridl.jar\ 44 $(PATH_SEPARATOR)$(URE_CLASSES_DIR)/juh.jar\ 45 $(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)/unoil.jar\ 46 $(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)/officebean.jar\ 47 $(PATH_SEPARATOR)$(OUT_COMP_CLASS)) 48 49 # Targets 50 .PHONY: ALL 51 ALL : \ 52 OOoBeanViewer 53 54 include $(SETTINGS)/stdtarget.mk 55 56 $(CLASSFILES) : $(JAVAFILES) 57 -$(MKDIR) $(subst /,$(PS),$(@D)) 58 javac $(JAVAC_FLAGS) -classpath "$(SDK_CLASSPATH)" -d $(OUT_COMP_CLASS) $(JAVAFILES) 59 60 OOoBeanViewer: $(CLASSFILES) 61 @echo -------------------------------------------------------------------------------- 62 @echo Please use the following command to execute the example! 63 @echo - 64 @echo $(MAKE) OOoBeanViewer.run 65 @echo -------------------------------------------------------------------------------- 66 67 %.run: $(CLASSFILES) 68 $(SDK_JAVA) -classpath "$(SDK_CLASSPATH)" $(subst /,.,$(PACKAGE)).$(basename $@) 69 70 %.dbg: $(JAR1_JAR) 71 jdb -classpath "$(SDK_CLASSPATH)" $(subst /,.,$(PACKAGE)).$(basename $@) 72 73 .PHONY: clean 74 clean : 75 -$(DELRECURSIVE) $(subst /,$(PS),$(OUT_COMP_CLASS)) 76 77