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