1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22# Builds the Java Storage test example of the SDK.
23
24PRJ=../../../..
25SETTINGS=$(PRJ)/settings
26
27include $(SETTINGS)/settings.mk
28include $(SETTINGS)/std.mk
29include $(SETTINGS)/dk.mk
30
31# Define non-platform/compiler specific settings
32COMPONENT_NAME=EmbedDocument.Container1
33OUT_COMP_CLASS = $(OUT_CLASS)/$(COMPONENT_NAME)
34
35JAVAFILES  = \
36	EmbedContApp.java\
37	EmbedContFrame.java
38
39CLASSFILES = $(patsubst %.java,$(OUT_COMP_CLASS)/%.class,$(JAVAFILES))
40
41SDK_CLASSPATH = $(subst $(EMPTYSTRING) $(PATH_SEPARATOR),$(PATH_SEPARATOR),$(CLASSPATH)\
42		$(PATH_SEPARATOR)$(OUT_COMP_CLASS))
43
44
45# Targets
46.PHONY: ALL
47ALL : \
48    JavaStorageTestExample
49
50include $(SETTINGS)/stdtarget.mk
51
52$(CLASSFILES) : $(JAVAFILES)
53	-$(MKDIR) $(subst /,$(PS),$(@D))
54	$(SDK_JAVAC) $(JAVAC_FLAGS) -classpath "$(SDK_CLASSPATH)" -d $(OUT_COMP_CLASS) $(JAVAFILES)
55
56JavaStorageTestExample : $(CLASSFILES)
57	@echo --------------------------------------------------------------------------------
58	@echo Please use following command to execute the example!
59	@echo ------
60	@echo $(MAKE) EmbedContFrame.run
61	@echo --------------------------------------------------------------------------------
62
63%.run: $(OUT_COMP_CLASS)/%.class
64	$(SDK_JAVA) -classpath "$(SDK_CLASSPATH)" $(basename $@)
65
66.PHONY: clean
67clean :
68	-$(DELRECURSIVE) $(subst /,$(PS),$(OUT_COMP_CLASS))
69
70