31 lines
891 B
Makefile
31 lines
891 B
Makefile
PRJ=$(ROOT)/..
|
|
SETTINGS=$(OO_SDK_HOME)/settings
|
|
include $(SETTINGS)/settings.mk
|
|
include $(SETTINGS)/std.mk
|
|
include $(SETTINGS)/dk.mk
|
|
|
|
OUT_COMP_JAVA = $(OUT_CLASS)/$(patsubst .,/,$(PACKAGE))
|
|
JAVAC=$(JAVA_HOME)/bin/javac
|
|
JAVA=$(JAVA_HOME)/bin/java
|
|
CLASS_FILES = $(patsubst %.java, %.class, $(JAVAFILES))
|
|
CLASSPATH = $(subst $(EMPTYSTRING) $(PATH_SEPARATOR),$(PATH_SEPARATOR),$(OFFICE_CLASSES_DIR)/jurt.jar\
|
|
$(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)/unoil.jar\
|
|
$(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)/ridl.jar\
|
|
$(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)/juh.jar\
|
|
$(PATH_SEPARATOR)$(OUT_COMP_JAVA)\
|
|
$(PATH_SEPARATOR).\
|
|
$(PATH_SEPARATOR)$(ROOT)\
|
|
)
|
|
|
|
subdirs:
|
|
$(foreach dir,$(SUBDIRS), cd $(dir);$(MAKE);cd ..;)
|
|
|
|
clean:
|
|
-rm *.class *.jar
|
|
$(foreach dir,$(SUBDIRS), cd $(dir);$(MAKE) clean ; cd ..;)
|
|
|
|
|
|
%.class : %.java
|
|
$(JAVAC) -classpath $(CLASSPATH) $<
|
|
|
|
.PHONY: all package clean subdirs
|