1PRJ=$(ROOT)/.. 2SETTINGS=$(OO_SDK_HOME)/settings 3include $(SETTINGS)/settings.mk 4include $(SETTINGS)/std.mk 5include $(SETTINGS)/dk.mk 6 7OUT_COMP_JAVA = $(OUT_CLASS)/$(patsubst .,/,$(PACKAGE)) 8JAVAC=$(JAVA_HOME)/bin/javac 9JAVA=$(JAVA_HOME)/bin/java 10CLASS_FILES = $(patsubst %.java, %.class, $(JAVAFILES)) 11CLASSPATH = $(subst $(EMPTYSTRING) $(PATH_SEPARATOR),$(PATH_SEPARATOR),$(OFFICE_CLASSES_DIR)/jurt.jar\ 12 $(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)/unoil.jar\ 13 $(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)/ridl.jar\ 14 $(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)/juh.jar\ 15 $(PATH_SEPARATOR)$(OUT_COMP_JAVA)\ 16 $(PATH_SEPARATOR).\ 17 $(PATH_SEPARATOR)$(ROOT)\ 18 ) 19 20subdirs: 21 $(foreach dir,$(SUBDIRS), cd $(dir);$(MAKE);cd ..;) 22 23clean: 24 -rm *.class *.jar 25 $(foreach dir,$(SUBDIRS), cd $(dir);$(MAKE) clean ; cd ..;) 26 27 28%.class : %.java 29 $(JAVAC) -classpath $(CLASSPATH) $< 30 31.PHONY: all package clean subdirs 32