LOCAL_PATH := $(call my-dir)

###########################
#
# tclJBlend shared library
#
###########################

include $(CLEAR_VARS)

tcl_path := $(LOCAL_PATH)/../tcl
borg_path := $(LOCAL_PATH)/../src

include $(tcl_path)/tcl-config.mk

LOCAL_ADDITIONAL_DEPENDENCIES += $(tcl_path)/tcl-config.mk

LOCAL_MODULE := tclJBlend

LOCAL_C_INCLUDES := \
	$(tcl_includes) $(borg_path) \
	$(LOCAL_PATH)/prebuilt \
	$(LOCAL_PATH)/src/native

LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES)

LOCAL_SRC_FILES := \
	src/native/javaCmd.c \
	src/native/javaIdle.c \
	src/native/javaInterp.c \
	src/native/javaObj.c \
	src/native/javaList.c \
	src/native/javaNotifier.c \
	src/native/javaTimer.c \
	src/native/javaUtil.c

LOCAL_CFLAGS := $(tcl_cflags) \
	-DPACKAGE_NAME="\"tclJBlend\"" \
	-DPACKAGE_VERSION="\"2.1.0\"" \
	-O2

LOCAL_SHARED_LIBRARIES := libtcl libmain

LOCAL_LDLIBS :=

include $(BUILD_SHARED_LIBRARY)
