summaryrefslogtreecommitdiff
path: root/odk/examples
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-05-18 12:31:12 +0000
committerRüdiger Timm <rt@openoffice.org>2004-05-18 12:31:12 +0000
commit98a44c6ffaa28fdf9d1122d9ba1efc8cd84b03b2 (patch)
tree1f2f12fa0d0c59447d0465ab025213c10724a273 /odk/examples
parent27ad2139ff587d0f9e9caf1c9e2b10ca50aef741 (diff)
INTEGRATION: CWS sdk13 (1.12.94); FILE MERGED
2004/05/05 09:31:45 jsc 1.12.94.1: #116658# merge cinnabar changes
Diffstat (limited to 'odk/examples')
-rw-r--r--odk/examples/java/MinimalComponent/Makefile74
1 files changed, 33 insertions, 41 deletions
diff --git a/odk/examples/java/MinimalComponent/Makefile b/odk/examples/java/MinimalComponent/Makefile
index 9f6706721c2a..e38d2f11bbc7 100644
--- a/odk/examples/java/MinimalComponent/Makefile
+++ b/odk/examples/java/MinimalComponent/Makefile
@@ -2,9 +2,9 @@
#
# $RCSfile: Makefile,v $
#
-# $Revision: 1.12 $
+# $Revision: 1.13 $
#
-# last change: $Author: vg $ $Date: 2003-07-09 10:41:23 $
+# last change: $Author: rt $ $Date: 2004-05-18 13:31:12 $
#
# The Contents of this file are made available subject to the terms of
# the BSD license.
@@ -48,18 +48,18 @@ include $(SETTINGS)/std.mk
include $(SETTINGS)/dk.mk
# Define non-platform/compiler specific settings
-COMPONENT1_NAME=MinimalComponent
-OUT_COMP_CLASS=$(OUT_CLASS)/$(COMPONENT1_NAME)
-OUT_COMP_GEN=$(OUT_MISC)/$(COMPONENT1_NAME)
-COMPONENT1_RDB_NAME=$(COMPONENT1_NAME).uno.rdb
-COMPONENT1_RDB=$(OUT_COMP_GEN)/$(COMPONENT1_RDB_NAME)
-COMPONENT1_PACKAGE=$(OUT_BIN)/$(COMPONENT1_NAME).uno.zip
-COMPONENT1_PACKAGE_URL=$(subst \\,\,"$(COMPONENT_PACKAGE_DIR)$(PS)$(COMPONENT1_NAME).uno.zip")
-COMPONENT1_JAR_NAME=$(COMPONENT1_NAME).uno.jar
-COMPONENT1_JAR=$(OUT_CLASS)/$(COMPONENT1_JAR_NAME)
-COMPONENT1_MANIFESTFILE=$(OUT_COMP_CLASS)/$(COMPONENT1_NAME).uno.Manifest
-
-REGISTERFLAG=$(OUT_MISC)$(PS)java_$(COMPONENT1_NAME)_register_component.flag
+COMPONENT_NAME=MinimalComponent
+OUT_COMP_CLASS=$(OUT_CLASS)/$(COMPONENT_NAME)
+OUT_COMP_GEN=$(OUT_MISC)/$(COMPONENT_NAME)
+COMPONENT_RDB_NAME=$(COMPONENT_NAME).uno.rdb
+COMPONENT_RDB=$(OUT_COMP_GEN)/$(COMPONENT_RDB_NAME)
+COMPONENT_PACKAGE=$(OUT_BIN)/$(COMPONENT_NAME).uno.zip
+COMPONENT_PACKAGE_URL=$(subst \\,\,"$(COMPONENT_PACKAGE_DIR)$(PS)$(COMPONENT_NAME).uno.zip")
+COMPONENT_JAR_NAME=$(COMPONENT_NAME).uno.jar
+COMPONENT_JAR=$(OUT_CLASS)/$(COMPONENT_JAR_NAME)
+COMPONENT_MANIFESTFILE=$(OUT_COMP_CLASS)/$(COMPONENT_NAME).uno.Manifest
+
+REGISTERFLAG=$(OUT_MISC)$(PS)java_$(COMPONENT_NAME)_register_component.flag
IDLFILES = MinimalComponent.idl
@@ -70,22 +70,14 @@ PACKAGE = org/OpenOffice
JAVAFILES = MinimalComponent.java \
TestMinimalComponent.java
-#GENJAVAFILES = $(patsubst %.idl,$(OUT_COMP_GEN)/$(PACKAGE)/%.java,$(IDLFILES))
GENURDFILES = $(patsubst %.idl,$(OUT_COMP_GEN)/%.urd,$(IDLFILES))
CLASSFILES = $(patsubst %.java,$(OUT_COMP_CLASS)/%.class,$(JAVAFILES))
-#CLASSFILES += $(subst $(OUT_COMP_GEN),$(OUT_COMP_CLASS),$(GENJAVAFILES:.java=.class))
-$(COMPONENT1_NAME)_CLASSFILES = $(COMPONENT1_NAME).class \
- $(COMPONENT1_NAME)$(QUOTE)$$$(COMPONENT1_NAME)Implementation.class
+$(COMPONENT_NAME)_CLASSFILES = $(COMPONENT_NAME).class \
+ $(COMPONENT_NAME)$(QUOTE)$$$(COMPONENT_NAME)Implementation.class
-#$(COMPONENT1_NAME)_CLASSFILES += $(subst $(OUT_COMP_GEN)/,,$(GENJAVAFILES:.java=.class))
-
-SDK_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)/sandbox.jar\
- $(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)/juh.jar\
+SDK_CLASSPATH = $(subst $(EMPTYSTRING) $(PATH_SEPARATOR),$(PATH_SEPARATOR),$(CLASSPATH)\
$(PATH_SEPARATOR)$(OUT_COMP_CLASS))
@@ -101,36 +93,36 @@ $(OUT_COMP_CLASS)/%.Manifest :
$(OUT_COMP_GEN)/%.urd : %.idl
-$(MKDIR) $(subst /,$(PS),$(@D))
- idlc -C -I. -I$(IDL_DIR) -O$(OUT_COMP_GEN) $<
+ $(IDLC) -C -I. -I$(IDL_DIR) -O$(OUT_COMP_GEN) $<
$(OUT_COMP_GEN)/%.rdb : $(GENURDFILES)
-$(MKDIR) $(subst /,$(PS),$(@D))
-$(DEL) $(subst /,$(PS),$@)
- regmerge $@ /UCR $(GENURDFILES)
+ $(REGMERGE) $@ /UCR $(GENURDFILES)
-$(OUT_COMP_GEN)/%.java : $(COMPONENT1_RDB)
+$(OUT_COMP_GEN)/%.java : $(COMPONENT_RDB)
-$(MKDIR) $(subst /,$(PS),$(@D))
- javamaker -BUCR -nD -T$(subst /,.,$(patsubst $(OUT_COMP_GEN)/%.java,%,$@)) -O$(OUT_COMP_GEN) $(COMPONENT1_RDB) $(DKREGISTRYNAME)
+ $(JAVAMAKER) -BUCR -nD -T$(subst /,.,$(patsubst $(OUT_COMP_GEN)/%.java,%,$@)) -O$(OUT_COMP_GEN) $(COMPONENT_RDB) $(DKREGISTRYNAME)
$(CLASSFILES) : $(JAVAFILES) $(GENJAVAFILES)
-$(MKDIR) $(subst /,$(PS),$(@D))
- javac $(JAVAC_FLAGS) -classpath "$(SDK_CLASSPATH)" -d $(OUT_COMP_CLASS) $(GENJAVAFILES) $(JAVAFILES)
+ $(SDK_JAVAC) $(JAVAC_FLAGS) -classpath "$(SDK_CLASSPATH)" -d $(OUT_COMP_CLASS) $(GENJAVAFILES) $(JAVAFILES)
-$(OUT_CLASS)/%.jar : $(OUT_COMP_CLASS)/%.Manifest $(CLASSFILES)
+$(COMPONENT_JAR) : $(COMPONENT_MANIFESTFILE) $(CLASSFILES)
-$(MKDIR) $(subst /,$(PS),$(@D))
- cd $(subst /,$(PS),$(OUT_COMP_CLASS)) && jar cvfm ../$(@F) $(<F) $($(basename $(basename $(@F)))_CLASSFILES)
+ cd $(subst /,$(PS),$(OUT_COMP_CLASS)) && $(SDK_JAR) cvfm ../$(@F) $(<F) $($(basename $(basename $(@F)))_CLASSFILES)
-$(OUT_BIN)/%.zip : $(OUT_COMP_GEN)/%.rdb $(OUT_CLASS)/%.jar
+$(COMPONENT_PACKAGE) : $(COMPONENT_RDB) $(COMPONENT_JAR)
-$(MKDIR) $(subst /,$(PS),$(@D))
$(COPY) $(subst /,$(PS),$<) $(subst /,$(PS),$(OUT_CLASS))
- cd $(subst /,$(PS),$(OUT_CLASS)) && jar cvfM ../bin/$(@F) $(^F)
+ cd $(subst /,$(PS),$(OUT_CLASS)) && $(SDK_JAR) cvfM ../bin/$(@F) $(^F)
$(DEL) $(subst /,$(PS),$(OUT_CLASS)/$(<F))
-$(REGISTERFLAG) : $(COMPONENT1_PACKAGE)
-ifneq "$(SDK_AUTO_DEPLOYMENT)" ""
+$(REGISTERFLAG) : $(COMPONENT_PACKAGE)
+ifeq "$(SDK_AUTO_DEPLOYMENT)" "YES"
-$(MKDIR) $(subst /,$(PS),$(@D))
-$(DEL) $(subst /,$(PS),$@)
- $(DEPLOYTOOL) $(COMPONENT1_PACKAGE_URL)
+ $(DEPLOYTOOL) $(COMPONENT_PACKAGE_URL)
@echo flagged > $(subst /,$(PS),$@)
else
@echo --------------------------------------------------------------------------------
@@ -152,12 +144,12 @@ JavaMinimalComponentExample : $(REGISTERFLAG)
@echo --------------------------------------------------------------------------------
%.run: $(OUT_COMP_CLASS)/%.class
- java -classpath "$(SDK_CLASSPATH)" $(basename $@)
+ $(SDK_JAVA) -classpath "$(SDK_CLASSPATH)" $(basename $@)
.PHONY: clean
clean :
-$(DELRECURSIVE) $(subst /,$(PS),$(OUT_COMP_CLASS))
-$(DELRECURSIVE) $(subst /,$(PS),$(OUT_COMP_GEN))
- -$(DEL) $(subst /,$(PS),$(COMPONENT1_PACKAGE_URL))
- -$(DEL) $(subst /,$(PS),$(COMPONENT1_JAR))
- -$(DEL) $(subst /,$(PS),$(REGISTERFLAG))
+ -$(DEL) $(subst \\,\,$(subst /,$(PS),$(COMPONENT_PACKAGE_URL)))
+ -$(DEL) $(subst \\,\,$(subst /,$(PS),$(COMPONENT_JAR)))
+ -$(DEL) $(subst \\,\,$(subst /,$(PS),$(REGISTERFLAG)))