1 # Builds the Java Storage test example of the SDK.
4 SETTINGS
=$(PRJ
)/settings
6 include $(SETTINGS
)/settings.mk
7 include $(SETTINGS
)/std.mk
8 include $(SETTINGS
)/dk.mk
10 # Define non-platform/compiler specific settings
11 COMPONENT_NAME
=JavaStorageTestExample
12 OUT_COMP_CLASS
= $(OUT_CLASS
)/$(COMPONENT_NAME
)
15 StorageFunctionality.java \
28 CLASSFILES
= $(patsubst %.java
,$(OUT_COMP_CLASS
)/%.class
,$(JAVAFILES
))
30 SDK_CLASSPATH
= $(subst $(EMPTYSTRING
) $(PATH_SEPARATOR
),$(PATH_SEPARATOR
),$(CLASSPATH
)\
31 $(PATH_SEPARATOR
)$(OUT_COMP_CLASS
))
37 JavaStorageTestExample
39 include $(SETTINGS
)/stdtarget.mk
41 $(CLASSFILES
) : $(JAVAFILES
)
42 -$(MKDIR
) $(subst /,$(PS
),$(@D
))
43 $(SDK_JAVAC
) $(JAVAC_FLAGS
) -classpath
"$(SDK_CLASSPATH)" -d
$(OUT_COMP_CLASS
) $(JAVAFILES
)
45 JavaStorageTestExample
: $(CLASSFILES
)
46 @echo
--------------------------------------------------------------------------------
47 @echo Please use following command to execute the example
!
49 @echo
$(MAKE
) StorageFunctionality.run
50 @echo
--------------------------------------------------------------------------------
52 %.run
: $(OUT_COMP_CLASS
)/%.class
53 $(SDK_JAVA
) -classpath
"$(SDK_CLASSPATH)" $(basename $@
)
57 -$(DELRECURSIVE
) $(subst /,$(PS
),$(OUT_COMP_CLASS
))