]> rtime.felk.cvut.cz Git - orte.git/blob - orte/java/Makefile.omk
ROBOT_DEMO: change name to RoboDruid and add CTU logo
[orte.git] / orte / java / Makefile.omk
1 #*******************************************************************
2 # The JAVA ORTE Project is distributed under the
3 # Library Gnu General Public Licence.
4 # See file COPYING for details.
5 #
6 #*******************************************************************
7
8 default_CONFIG = CONFIG_OC_JAVA_ORTE=n
9
10 ifeq ($(CONFIG_OC_JAVA_ORTE),y)
11
12 renamed_include_HEADERS = \
13 rtpseye.sh->../bin/lib/rtpseye.sh
14
15 ifndef ANT
16 TRY_ANT=/opt/ant/bin/ant        # Ant is searched here if it isn't found in $PATH
17 ANT=$(shell if [ -n "`which ant 2>/dev/null`" ]; then which ant; else [ -x $(TRY_ANT) ] && echo $(TRY_ANT); fi)
18 ifeq ($(ANT),)
19
20 $(warning You need Ant in order to compile this. If you have it in non-standard \
21         location, specify it in an ANT variable.)
22 $(error Ant not found)
23 endif
24 endif
25
26 ifndef JAVA_HOME
27 JAVA_HOME=/opt/java
28 endif
29
30 export JAVA_HOME
31
32 .PHONY: jar-orte
33
34 utils-pass-local: jar-orte
35
36 jar-orte:
37         $(ANT) -Djava_class_dir=$(USER_OBJS_DIR)/ -Djava_lib_dir=$(USER_BIN_DIR)/ \
38                -buildfile $(srcdir)/build.xml $@
39
40 #clean-java:
41 clean-custom:
42         $(ANT) -Djava_class_dir=$(USER_OBJS_DIR)/ -Djava_lib_dir=$(USER_BIN_DIR)/ \
43                -buildfile $(srcdir)/build.xml clean
44
45 endif