1# Builds the Java Storage test example of the SDK. 2 3PRJ=../../../.. 4SETTINGS=$(PRJ)/settings 5 6include $(SETTINGS)/settings.mk 7include $(SETTINGS)/std.mk 8include $(SETTINGS)/dk.mk 9 10# Define non-platform/compiler specific settings 11COMPONENT_NAME=EmbedDocument.Container1 12OUT_COMP_CLASS = $(OUT_CLASS)/$(COMPONENT_NAME) 13 14JAVAFILES = \ 15 EmbedContApp.java\ 16 EmbedContFrame.java 17 18CLASSFILES = $(patsubst %.java,$(OUT_COMP_CLASS)/%.class,$(JAVAFILES)) 19 20SDK_CLASSPATH = $(subst $(EMPTYSTRING) $(PATH_SEPARATOR),$(PATH_SEPARATOR),$(CLASSPATH)\ 21 $(PATH_SEPARATOR)$(OUT_COMP_CLASS)) 22 23 24# Targets 25.PHONY: ALL 26ALL : \ 27 JavaStorageTestExample 28 29include $(SETTINGS)/stdtarget.mk 30 31$(CLASSFILES) : $(JAVAFILES) 32 -$(MKDIR) $(subst /,$(PS),$(@D)) 33 $(SDK_JAVAC) $(JAVAC_FLAGS) -classpath "$(SDK_CLASSPATH)" -d $(OUT_COMP_CLASS) $(JAVAFILES) 34 35JavaStorageTestExample : $(CLASSFILES) 36 @echo -------------------------------------------------------------------------------- 37 @echo Please use following command to execute the example! 38 @echo ------ 39 @echo $(MAKE) EmbedContFrame.run 40 @echo -------------------------------------------------------------------------------- 41 42%.run: $(OUT_COMP_CLASS)/%.class 43 $(SDK_JAVA) -classpath "$(SDK_CLASSPATH)" $(basename $@) 44 45.PHONY: clean 46clean : 47 -$(DELRECURSIVE) $(subst /,$(PS),$(OUT_COMP_CLASS)) 48 49