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 23 24PRJ := ..$/..$/.. 25PRJNAME := bean 26TARGET := oooapplet 27PACKAGE = oooapplet 28 29.INCLUDE: settings.mk 30 31#----- compile .java files ----------------------------------------- 32 33JARFILES = officebean.jar ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar 34JAVAFILES = OOoViewer.java 35JAVACLASSFILES = $(foreach,i,$(JAVAFILES) $(CLASSDIR)$/$(PACKAGE)$/$(i:b).class) 36 37 38JARCLASSDIRS = \ 39 oooapplet 40 41JARTARGET = $(TARGET).jar 42JARCOMPRESS = TRUE 43 44#----- make a jar from compiled files ------------------------------ 45 46 47.INCLUDE: target.mk 48 49 50ALLTAR : \ 51 COPY_FILES \ 52 RUNINSTRUCTIONS 53 54 55COPY_FILES: example.html 56 $(GNUCOPY) -p $< $(CLASSDIR) 57# --- Targets ------------------------------------------------------ 58 59 60.IF "$(GUI)"=="WNT" 61RUN: 62 firefox "$(CLASSDIR)$/example.html?$(office)" 63.ELSE 64TESTURL="file:///$(PWD)$/$(CLASSDIR)$/example.html?$(office)" 65RUN: 66 firefox ${TESTURL:s/\///} 67.ENDIF 68 69run: RUN 70 71 72 73RUNINSTRUCTIONS : 74 @echo . 75 @echo ########################### N O T E ###################################### 76 @echo . 77 @echo "Add to the java runtime settings for applets in the control panel these lines:" 78 @echo "-Djava.security.policy=$(PWD)$/bean.policy" 79 @echo "To run the test you have to provide the office location." 80 @echo Example: 81 @echo dmake run office="d:\\myOffice" 82 @echo . 83 84 85