2 # This file is part of the LibreOffice project.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 # This file incorporates work covered by the following license notice:
10 # Licensed to the Apache Software Foundation (ASF) under one or more
11 # contributor license agreements. See the NOTICE file distributed
12 # with this work for additional information regarding copyright
13 # ownership. The ASF licenses this file to you under the Apache
14 # License, Version 2.0 (the "License"); you may not use this file
15 # except in compliance with the License. You may obtain a copy of
16 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 # Builds the Java Storage test example of the SDK.
22 SETTINGS
=$(PRJ
)/settings
24 include $(SETTINGS
)/settings.mk
25 include $(SETTINGS
)/std.mk
27 # Define non-platform/compiler specific settings
28 COMPONENT_NAME
=JavaStorageTestExample
29 OUT_COMP_CLASS
= $(OUT_CLASS
)/$(COMPONENT_NAME
)
32 StorageFunctionality.java \
45 CLASSFILES
= $(patsubst %.java
,$(OUT_COMP_CLASS
)/%.class
,$(JAVAFILES
))
47 SDK_CLASSPATH
= $(subst $(EMPTYSTRING
) $(PATH_SEPARATOR
),$(PATH_SEPARATOR
),$(CLASSPATH
)\
48 $(PATH_SEPARATOR
)$(OUT_COMP_CLASS
))
54 JavaStorageTestExample
56 include $(SETTINGS
)/stdtarget.mk
58 $(CLASSFILES
) : $(JAVAFILES
)
59 -$(MKDIR
) $(subst /,$(PS
),$(@D
))
60 $(SDK_JAVAC
) $(JAVAC_FLAGS
) -classpath
"$(SDK_CLASSPATH)" -d
$(OUT_COMP_CLASS
) $(JAVAFILES
)
62 JavaStorageTestExample
: $(CLASSFILES
)
63 @echo
--------------------------------------------------------------------------------
64 @echo Please use following command to execute the example
!
66 @echo
$(MAKE
) StorageFunctionality.run
67 @echo
--------------------------------------------------------------------------------
69 %.run
: $(OUT_COMP_CLASS
)/%.class
70 $(SDK_JAVA
) -classpath
"$(SDK_CLASSPATH)" $(basename $@
)
74 -$(DELRECURSIVE
) $(subst /,$(PS
),$(OUT_COMP_CLASS
))