2015-02-18 11:34:09 -08:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Common emulator sources and build settings
|
|
|
|
|
2015-03-10 13:15:36 -07:00
|
|
|
APPLE2_SRC_PATH := apple2ix-src
|
2015-02-18 11:34:09 -08:00
|
|
|
|
|
|
|
APPLE2_X86_SRC := \
|
|
|
|
$(APPLE2_SRC_PATH)/x86/glue.S $(APPLE2_SRC_PATH)/x86/cpu.S
|
|
|
|
|
|
|
|
APPLE2_ARM_SRC := \
|
|
|
|
$(APPLE2_SRC_PATH)/arm/glue.S $(APPLE2_SRC_PATH)/arm/cpu.S
|
|
|
|
|
|
|
|
APPLE2_VIDEO_SRC = \
|
|
|
|
$(APPLE2_SRC_PATH)/video/glvideo.c \
|
2015-04-12 15:35:16 -07:00
|
|
|
$(APPLE2_SRC_PATH)/video/glnode.c \
|
2015-04-11 12:29:44 -07:00
|
|
|
$(APPLE2_SRC_PATH)/video/glhudmodel.c \
|
2015-04-18 14:53:01 -07:00
|
|
|
$(APPLE2_SRC_PATH)/video/glalert.c \
|
2015-02-18 11:34:09 -08:00
|
|
|
$(APPLE2_SRC_PATH)/video/gltouchjoy.c \
|
2015-08-15 22:02:51 -07:00
|
|
|
$(APPLE2_SRC_PATH)/video/gltouchjoy_joy.c \
|
|
|
|
$(APPLE2_SRC_PATH)/video/gltouchjoy_kpad.c \
|
2015-04-19 14:31:30 -07:00
|
|
|
$(APPLE2_SRC_PATH)/video/gltouchkbd.c \
|
2015-04-26 18:40:05 -07:00
|
|
|
$(APPLE2_SRC_PATH)/video/gltouchmenu.c \
|
2015-02-18 11:34:09 -08:00
|
|
|
$(APPLE2_SRC_PATH)/video_util/matrixUtil.c \
|
|
|
|
$(APPLE2_SRC_PATH)/video_util/modelUtil.c \
|
|
|
|
$(APPLE2_SRC_PATH)/video_util/sourceUtil.c \
|
|
|
|
$(APPLE2_SRC_PATH)/video_util/vectorUtil.c
|
|
|
|
|
|
|
|
APPLE2_AUDIO_SRC = \
|
2015-06-25 21:32:37 -07:00
|
|
|
$(APPLE2_SRC_PATH)/audio/soundcore.c $(APPLE2_SRC_PATH)/audio/soundcore-opensles.c $(APPLE2_SRC_PATH)/audio/speaker.c \
|
2015-07-07 21:40:48 -07:00
|
|
|
$(APPLE2_SRC_PATH)/audio/mockingboard.c $(APPLE2_SRC_PATH)/audio/AY8910.c
|
2015-02-18 11:34:09 -08:00
|
|
|
|
|
|
|
APPLE2_META_SRC = \
|
2015-02-18 13:42:28 -08:00
|
|
|
$(APPLE2_SRC_PATH)/meta/debug.c $(APPLE2_SRC_PATH)/meta/debugger.c $(APPLE2_SRC_PATH)/meta/opcodes.c \
|
2015-10-04 14:21:28 -07:00
|
|
|
$(APPLE2_SRC_PATH)/meta/lintrace.c $(APPLE2_SRC_PATH)/test/sha1.c $(APPLE2_SRC_PATH)/json_parse.c \
|
|
|
|
$(APPLE2_SRC_PATH)/../externals/jsmn/jsmn.c
|
2015-02-18 11:34:09 -08:00
|
|
|
|
|
|
|
APPLE2_MAIN_SRC = \
|
|
|
|
$(APPLE2_SRC_PATH)/font.c $(APPLE2_SRC_PATH)/rom.c $(APPLE2_SRC_PATH)/misc.c $(APPLE2_SRC_PATH)/display.c $(APPLE2_SRC_PATH)/vm.c \
|
|
|
|
$(APPLE2_SRC_PATH)/timing.c $(APPLE2_SRC_PATH)/zlib-helpers.c $(APPLE2_SRC_PATH)/joystick.c $(APPLE2_SRC_PATH)/keys.c \
|
2015-09-06 23:43:26 -07:00
|
|
|
$(APPLE2_SRC_PATH)/interface.c $(APPLE2_SRC_PATH)/disk.c $(APPLE2_SRC_PATH)/cpu-supp.c \
|
|
|
|
jnihooks.c jniprefs.c androidkeys.c
|
2015-02-18 11:34:09 -08:00
|
|
|
|
2016-01-03 13:59:52 -08:00
|
|
|
APPLE2_OPTIM_CFLAGS := -O2
|
2015-11-08 21:11:03 -08:00
|
|
|
APPLE2_BASE_CFLAGS := -DAPPLE2IX=1 -DINTERFACE_TOUCH=1 -DMOBILE_DEVICE=1 -DVIDEO_OPENGL=1 -DDEBUGGER=1 -DAUDIO_ENABLED=1 -std=gnu11 -DPREVENT_TEXTREL=1 -fPIC $(APPLE2_OPTIM_CFLAGS) -I$(APPLE2_SRC_PATH)
|
2016-02-20 13:41:19 -08:00
|
|
|
APPLE2_BASE_LDLIBS := -llog -landroid -lGLESv2 -lz -lOpenSLES -latomic
|
2015-02-18 11:34:09 -08:00
|
|
|
|
2015-07-11 14:37:41 -07:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += cpufeatures
|
|
|
|
|