Update ooo320-m1
[ooovba.git] / odk / examples / java / Storage / Makefile
blob663f22dfe3e7d6dbc1907983e7d603e21bafd779
1 # Builds the Java Storage test example of the SDK.
3 PRJ=../../..
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)
14 JAVAFILES = \
15 StorageFunctionality.java \
16 TestHelper.java \
17 StorageTest.java \
18 Test01.java \
19 Test02.java \
20 Test03.java \
21 Test04.java \
22 Test05.java \
23 Test06.java \
24 Test07.java \
25 Test08.java \
26 Test09.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))
34 # Targets
35 .PHONY: ALL
36 ALL : \
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!
48 @echo ------
49 @echo $(MAKE) StorageFunctionality.run
50 @echo --------------------------------------------------------------------------------
52 %.run: $(OUT_COMP_CLASS)/%.class
53 $(SDK_JAVA) -classpath "$(SDK_CLASSPATH)" $(basename $@)
55 .PHONY: clean
56 clean :
57 -$(DELRECURSIVE) $(subst /,$(PS),$(OUT_COMP_CLASS))