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=JavaStorageTestExample 12*cdf0e10cSrcweirOUT_COMP_CLASS = $(OUT_CLASS)/$(COMPONENT_NAME) 13*cdf0e10cSrcweir 14*cdf0e10cSrcweirJAVAFILES = \ 15*cdf0e10cSrcweir StorageFunctionality.java \ 16*cdf0e10cSrcweir TestHelper.java \ 17*cdf0e10cSrcweir StorageTest.java \ 18*cdf0e10cSrcweir Test01.java \ 19*cdf0e10cSrcweir Test02.java \ 20*cdf0e10cSrcweir Test03.java \ 21*cdf0e10cSrcweir Test04.java \ 22*cdf0e10cSrcweir Test05.java \ 23*cdf0e10cSrcweir Test06.java \ 24*cdf0e10cSrcweir Test07.java \ 25*cdf0e10cSrcweir Test08.java \ 26*cdf0e10cSrcweir Test09.java 27*cdf0e10cSrcweir 28*cdf0e10cSrcweirCLASSFILES = $(patsubst %.java,$(OUT_COMP_CLASS)/%.class,$(JAVAFILES)) 29*cdf0e10cSrcweir 30*cdf0e10cSrcweirSDK_CLASSPATH = $(subst $(EMPTYSTRING) $(PATH_SEPARATOR),$(PATH_SEPARATOR),$(CLASSPATH)\ 31*cdf0e10cSrcweir $(PATH_SEPARATOR)$(OUT_COMP_CLASS)) 32*cdf0e10cSrcweir 33*cdf0e10cSrcweir 34*cdf0e10cSrcweir# Targets 35*cdf0e10cSrcweir.PHONY: ALL 36*cdf0e10cSrcweirALL : \ 37*cdf0e10cSrcweir JavaStorageTestExample 38*cdf0e10cSrcweir 39*cdf0e10cSrcweirinclude $(SETTINGS)/stdtarget.mk 40*cdf0e10cSrcweir 41*cdf0e10cSrcweir$(CLASSFILES) : $(JAVAFILES) 42*cdf0e10cSrcweir -$(MKDIR) $(subst /,$(PS),$(@D)) 43*cdf0e10cSrcweir $(SDK_JAVAC) $(JAVAC_FLAGS) -classpath "$(SDK_CLASSPATH)" -d $(OUT_COMP_CLASS) $(JAVAFILES) 44*cdf0e10cSrcweir 45*cdf0e10cSrcweirJavaStorageTestExample : $(CLASSFILES) 46*cdf0e10cSrcweir @echo -------------------------------------------------------------------------------- 47*cdf0e10cSrcweir @echo Please use following command to execute the example! 48*cdf0e10cSrcweir @echo ------ 49*cdf0e10cSrcweir @echo $(MAKE) StorageFunctionality.run 50*cdf0e10cSrcweir @echo -------------------------------------------------------------------------------- 51*cdf0e10cSrcweir 52*cdf0e10cSrcweir%.run: $(OUT_COMP_CLASS)/%.class 53*cdf0e10cSrcweir $(SDK_JAVA) -classpath "$(SDK_CLASSPATH)" $(basename $@) 54*cdf0e10cSrcweir 55*cdf0e10cSrcweir.PHONY: clean 56*cdf0e10cSrcweirclean : 57*cdf0e10cSrcweir -$(DELRECURSIVE) $(subst /,$(PS),$(OUT_COMP_CLASS)) 58*cdf0e10cSrcweir 59