1*45ef6fe1SAndrew Rist############################################################### 2*45ef6fe1SAndrew Rist# 3*45ef6fe1SAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 4*45ef6fe1SAndrew Rist# or more contributor license agreements. See the NOTICE file 5*45ef6fe1SAndrew Rist# distributed with this work for additional information 6*45ef6fe1SAndrew Rist# regarding copyright ownership. The ASF licenses this file 7*45ef6fe1SAndrew Rist# to you under the Apache License, Version 2.0 (the 8*45ef6fe1SAndrew Rist# "License"); you may not use this file except in compliance 9*45ef6fe1SAndrew Rist# with the License. You may obtain a copy of the License at 10*45ef6fe1SAndrew Rist# 11*45ef6fe1SAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 12*45ef6fe1SAndrew Rist# 13*45ef6fe1SAndrew Rist# Unless required by applicable law or agreed to in writing, 14*45ef6fe1SAndrew Rist# software distributed under the License is distributed on an 15*45ef6fe1SAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*45ef6fe1SAndrew Rist# KIND, either express or implied. See the License for the 17*45ef6fe1SAndrew Rist# specific language governing permissions and limitations 18*45ef6fe1SAndrew Rist# under the License. 19*45ef6fe1SAndrew Rist# 20*45ef6fe1SAndrew Rist############################################################### 21cdf0e10cSrcweirPRJ=$(ROOT)/.. 22cdf0e10cSrcweirSETTINGS=$(OO_SDK_HOME)/settings 23cdf0e10cSrcweirinclude $(SETTINGS)/settings.mk 24cdf0e10cSrcweirinclude $(SETTINGS)/std.mk 25cdf0e10cSrcweirinclude $(SETTINGS)/dk.mk 26cdf0e10cSrcweir 27cdf0e10cSrcweirOUT_COMP_JAVA = $(OUT_CLASS)/$(patsubst .,/,$(PACKAGE)) 28cdf0e10cSrcweirJAVAC=$(JAVA_HOME)/bin/javac 29cdf0e10cSrcweirJAVA=$(JAVA_HOME)/bin/java 30cdf0e10cSrcweirCLASS_FILES = $(patsubst %.java, %.class, $(JAVAFILES)) 31cdf0e10cSrcweirCLASSPATH = $(subst $(EMPTYSTRING) $(PATH_SEPARATOR),$(PATH_SEPARATOR),$(OFFICE_CLASSES_DIR)/jurt.jar\ 32cdf0e10cSrcweir $(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)/unoil.jar\ 33cdf0e10cSrcweir $(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)/ridl.jar\ 34cdf0e10cSrcweir $(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)/juh.jar\ 35cdf0e10cSrcweir $(PATH_SEPARATOR)$(OUT_COMP_JAVA)\ 36cdf0e10cSrcweir $(PATH_SEPARATOR).\ 37cdf0e10cSrcweir $(PATH_SEPARATOR)$(ROOT)\ 38cdf0e10cSrcweir ) 39cdf0e10cSrcweir 40cdf0e10cSrcweirsubdirs: 41cdf0e10cSrcweir $(foreach dir,$(SUBDIRS), cd $(dir);$(MAKE);cd ..;) 42cdf0e10cSrcweir 43cdf0e10cSrcweirclean: 44cdf0e10cSrcweir -rm *.class *.jar 45cdf0e10cSrcweir $(foreach dir,$(SUBDIRS), cd $(dir);$(MAKE) clean ; cd ..;) 46cdf0e10cSrcweir 47cdf0e10cSrcweir 48cdf0e10cSrcweir%.class : %.java 49cdf0e10cSrcweir $(JAVAC) -classpath $(CLASSPATH) $< 50cdf0e10cSrcweir 51cdf0e10cSrcweir.PHONY: all package clean subdirs 52