2015-02-18 19:34:09 +00:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Common emulator sources and build settings
|
|
|
|
|
2015-03-10 20:15:36 +00:00
|
|
|
APPLE2_SRC_PATH := apple2ix-src
|
2015-02-18 19:34:09 +00:00
|
|
|
|
|
|
|
APPLE2_X86_SRC := \
|
2017-08-01 00:47:58 +00:00
|
|
|
$(APPLE2_SRC_PATH)/x86/cpu.S \
|
|
|
|
$(APPLE2_SRC_PATH)/x86/glue.S
|
2015-02-18 19:34:09 +00:00
|
|
|
|
|
|
|
APPLE2_ARM_SRC := \
|
2017-08-01 00:47:58 +00:00
|
|
|
$(APPLE2_SRC_PATH)/arm/cpu.S \
|
|
|
|
$(APPLE2_SRC_PATH)/arm/glue.S
|
2015-02-18 19:34:09 +00:00
|
|
|
|
|
|
|
APPLE2_VIDEO_SRC = \
|
2015-04-18 21:53:01 +00:00
|
|
|
$(APPLE2_SRC_PATH)/video/glalert.c \
|
2017-08-01 00:47:58 +00:00
|
|
|
$(APPLE2_SRC_PATH)/video/glhudmodel.c \
|
|
|
|
$(APPLE2_SRC_PATH)/video/glnode.c \
|
2015-02-18 19:34:09 +00:00
|
|
|
$(APPLE2_SRC_PATH)/video/gltouchjoy.c \
|
2015-08-16 05:02:51 +00:00
|
|
|
$(APPLE2_SRC_PATH)/video/gltouchjoy_joy.c \
|
|
|
|
$(APPLE2_SRC_PATH)/video/gltouchjoy_kpad.c \
|
2015-04-19 21:31:30 +00:00
|
|
|
$(APPLE2_SRC_PATH)/video/gltouchkbd.c \
|
2015-04-27 01:40:05 +00:00
|
|
|
$(APPLE2_SRC_PATH)/video/gltouchmenu.c \
|
2017-08-01 00:47:58 +00:00
|
|
|
$(APPLE2_SRC_PATH)/video/glvideo.c \
|
2018-11-04 22:07:30 +00:00
|
|
|
$(APPLE2_SRC_PATH)/video/ntsc.c \
|
2017-09-14 03:25:27 +00:00
|
|
|
$(APPLE2_SRC_PATH)/video/video.c \
|
2015-02-18 19:34:09 +00: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 = \
|
2017-08-01 00:47:58 +00:00
|
|
|
$(APPLE2_SRC_PATH)/audio/AY8910.c \
|
|
|
|
$(APPLE2_SRC_PATH)/audio/mockingboard.c \
|
|
|
|
$(APPLE2_SRC_PATH)/audio/soundcore.c \
|
|
|
|
$(APPLE2_SRC_PATH)/audio/soundcore-opensles.c \
|
|
|
|
$(APPLE2_SRC_PATH)/audio/speaker.c
|
2015-02-18 19:34:09 +00:00
|
|
|
|
|
|
|
APPLE2_META_SRC = \
|
2017-08-01 00:47:58 +00:00
|
|
|
$(APPLE2_SRC_PATH)/meta/debug.c \
|
|
|
|
$(APPLE2_SRC_PATH)/meta/debugger.c \
|
2018-11-23 18:35:38 +00:00
|
|
|
$(APPLE2_SRC_PATH)/meta/systrace.c \
|
2017-08-01 00:47:58 +00:00
|
|
|
$(APPLE2_SRC_PATH)/meta/log.c \
|
2017-08-20 05:53:51 +00:00
|
|
|
$(APPLE2_SRC_PATH)/meta/memmngt.c \
|
2017-08-01 00:47:58 +00:00
|
|
|
$(APPLE2_SRC_PATH)/meta/opcodes.c \
|
|
|
|
$(APPLE2_SRC_PATH)/test/sha1.c \
|
2015-02-18 19:34:09 +00:00
|
|
|
|
|
|
|
APPLE2_MAIN_SRC = \
|
2017-08-01 00:47:58 +00:00
|
|
|
androidkeys.c \
|
|
|
|
jnihooks.c \
|
|
|
|
$(APPLE2_SRC_PATH)/cpu-supp.c \
|
|
|
|
$(APPLE2_SRC_PATH)/disk.c \
|
|
|
|
$(APPLE2_SRC_PATH)/display.c \
|
|
|
|
$(APPLE2_SRC_PATH)/font.c \
|
|
|
|
$(APPLE2_SRC_PATH)/interface.c \
|
|
|
|
$(APPLE2_SRC_PATH)/joystick.c \
|
|
|
|
$(APPLE2_SRC_PATH)/json_parse.c \
|
|
|
|
$(APPLE2_SRC_PATH)/keys.c \
|
|
|
|
$(APPLE2_SRC_PATH)/misc.c \
|
|
|
|
$(APPLE2_SRC_PATH)/prefs.c \
|
|
|
|
$(APPLE2_SRC_PATH)/rom.c \
|
|
|
|
$(APPLE2_SRC_PATH)/timing.c \
|
|
|
|
$(APPLE2_SRC_PATH)/vm.c \
|
|
|
|
$(APPLE2_SRC_PATH)/zlib-helpers.c \
|
|
|
|
$(APPLE2_SRC_PATH)/../externals/jsmn/jsmn.c
|
2015-02-18 19:34:09 +00:00
|
|
|
|
2016-05-06 04:55:12 +00:00
|
|
|
APPLE2_OPTIM_CFLAGS := -Os
|
2016-07-23 19:00:20 +00:00
|
|
|
APPLE2_BASE_CFLAGS := -DAPPLE2IX=1 -DINTERFACE_TOUCH=1 -DMOBILE_DEVICE=1 -DVIDEO_OPENGL=1 -std=gnu11 -fPIC $(APPLE2_OPTIM_CFLAGS) -I$(APPLE2_SRC_PATH)
|
2016-04-29 04:43:01 +00:00
|
|
|
APPLE2_BASE_LDLIBS := -Wl,-z,text -Wl,-z,noexecstack -llog -landroid -lGLESv2 -lz -lOpenSLES -latomic
|
2015-02-18 19:34:09 +00:00
|
|
|
|
2015-07-11 21:37:41 +00:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += cpufeatures
|
|
|
|
|