LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := x128

CG_SUBDIRS := .

# Add more subdirs here, like src/subdir1 src/subdir2

MY_PATH := $(LOCAL_PATH)

CG_SRCDIR := $(LOCAL_PATH)

LOCAL_CFLAGS := -DANDROID_COMPILE -D__X128__

LOCAL_C_INCLUDES :=	$(LOCAL_PATH)/../locnet/include \
				$(LOCAL_PATH)/../sdl/include \
				$(LOCAL_PATH)/../../../../../../src/ \
				$(LOCAL_PATH)/../../../../../../src/arch/sdl \
				$(LOCAL_PATH)/../.. \
				$(LOCAL_PATH)

LOCAL_PATH := $(MY_PATH)

LOCAL_CPPFLAGS := $(LOCAL_CFLAGS)
LOCAL_CXXFLAGS := $(LOCAL_CFLAGS)

#Change C++ file extension as appropriate
LOCAL_CPP_EXTENSION := .cpp

LOCAL_SRC_FILES := ../locnet/locnet_loader.cpp

LOCAL_STATIC_LIBRARIES := \
	locnet_al \
	vice_commonall \
	vice_x128 \
	vice_common \
	vice_tape \
	vice_vicii \
	vice_c64cart \
	vice_iec \
	vice_ieeepar \
	vice_c64exp \
	vice_commoncart \
	vice_commonall \
	vice_common

LOCAL_LDLIBS := -lz -llog

LOCAL_ARM_MODE := arm

include $(BUILD_SHARED_LIBRARY)
