LOCAL_PATH := $(call my-dir)

###########################
#
# rl_json shared library
#
###########################

include $(CLEAR_VARS)

LOCAL_MODULE := rl_json

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

include $(tcl_path)/tcl-config.mk

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

LOCAL_C_INCLUDES := $(tcl_includes) $(tk_includes) $(LOCAL_PATH)/generic

LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES)

LOCAL_SRC_FILES := \
	generic/parser.c \
	generic/rl_json.c \
	generic/rl_jsonStubInit.c

LOCAL_CFLAGS := $(tcl_cflags) $(tk_cflags) \
	-DPACKAGE_NAME="\"rl_json\"" \
	-DPACKAGE_VERSION="\"0.9.12\"" \
	-O2

LOCAL_SHARED_LIBRARIES := libtcl

LOCAL_LDLIBS := -llog

include $(BUILD_SHARED_LIBRARY)
