Prepare build system for new core.

This commit is contained in:
Christian Speckner 2016-10-30 21:00:08 +01:00
parent c642de2671
commit 2075ff082a
3 changed files with 34 additions and 4 deletions

View File

@ -4,7 +4,8 @@
"-std=c++11", "-std=c++11",
"-I/home/cnspeckn/git/stella/src/common", "-I/home/cnspeckn/git/stella/src/common",
"-I/home/cnspeckn/git/stella/src/emucore", "-I/home/cnspeckn/git/stella/src/emucore",
"-I/home/cnspeckn/git/stella/src/emucore/tia/default_core" "-I/home/cnspeckn/git/stella/src/emucore/tia/default_core",
"-I/home/cnspeckn/git/stella/src/emucore/tia/6502ts_core"
], ],
"editor.tabSize": 2, "editor.tabSize": 2,
"files.trimTrailingWhitespace": false, "files.trimTrailingWhitespace": false,

26
configure vendored
View File

@ -20,12 +20,13 @@ _zlib=auto
# default option behaviour yes/no # default option behaviour yes/no
_build_windowed=yes _build_windowed=yes
_build_sound=yes _build_sound=yes
_build_debugger=yes _build_debugger=false
_build_joystick=yes _build_joystick=yes
_build_cheats=yes _build_cheats=yes
_build_thumb=yes _build_thumb=yes
_build_static=no _build_static=no
_build_profile=no _build_profile=no
_build_6502ts_tia=yes
# more defaults # more defaults
_ranlib=ranlib _ranlib=ranlib
@ -193,8 +194,10 @@ Installation directories:
Optional Features: Optional Features:
--enable-sound enable/disable sound support [enabled] --enable-sound enable/disable sound support [enabled]
--disable-sound --disable-sound
--enable-debugger enable/disable all debugger options [enabled] --enable-debugger enable/disable all debugger options [disabled]
--disable-debugger --disable-debugger
--enable-6502ts-tia enable/disable support for 6502.ts TIA core [enabled]
--disable-6502ts-tia
--enable-joystick enable/disable joystick support [enabled] --enable-joystick enable/disable joystick support [enabled]
--disable-joystick --disable-joystick
--enable-cheats enable/disable cheatcode support [enabled] --enable-cheats enable/disable cheatcode support [enabled]
@ -235,6 +238,8 @@ for ac_option in $@; do
--disable-sound) _build_sound=no ;; --disable-sound) _build_sound=no ;;
--enable-debugger) _build_debugger=yes ;; --enable-debugger) _build_debugger=yes ;;
--disable-debugger) _build_debugger=no ;; --disable-debugger) _build_debugger=no ;;
--enable-6502ts-tia) _build_6502ts_tia=yes;;
--disable-6502ts-tia) _build_6502ts_tia=no ;;
--enable-joystick) _build_joystick=yes ;; --enable-joystick) _build_joystick=yes ;;
--disable-joystick) _build_joystick=no ;; --disable-joystick) _build_joystick=no ;;
--enable-cheats) _build_cheats=yes ;; --enable-cheats) _build_cheats=yes ;;
@ -615,7 +620,15 @@ else
echo echo
fi fi
if test "$_build_joystick" = yes ; then if test "$_build_6502ts_tia" = "yes" ; then
echo_n " Support for 6502.ts TIA core enabled"
echo
else
echo_n " Support for 6502.ts TIA core disabled"
echo
fi
if test "$_build_6502ts_tia" = yes ; then
echo_n " Joystick support enabled" echo_n " Joystick support enabled"
echo echo
else else
@ -677,6 +690,7 @@ COMMON="$SRC/common"
TV="$SRC/common/tv_filters" TV="$SRC/common/tv_filters"
GUI="$SRC/gui" GUI="$SRC/gui"
DBG="$SRC/debugger" DBG="$SRC/debugger"
TIA_6502TS="$SRC/emucore/tia/core_6502ts"
DBGGUI="$SRC/debugger/gui" DBGGUI="$SRC/debugger/gui"
YACC="$SRC/yacc" YACC="$SRC/yacc"
CHEAT="$SRC/cheat" CHEAT="$SRC/cheat"
@ -741,6 +755,12 @@ if test "$_build_debugger" = yes ; then
INCLUDES="$INCLUDES -I$DBG -I$DBGGUI -I$YACC" INCLUDES="$INCLUDES -I$DBG -I$DBGGUI -I$YACC"
fi fi
if test "$_build_6502ts_tia" = yes ; then
DEFINES="$DEFINES -DSUPPORT_6502TS_TIA"
MODULES="$MODULES $TIA_6502TS"
INCLUDES="$INCLUDES -I$TIA_6502TS"
fi
if test "$_build_joystick" = yes ; then if test "$_build_joystick" = yes ; then
DEFINES="$DEFINES -DJOYSTICK_SUPPORT" DEFINES="$DEFINES -DJOYSTICK_SUPPORT"
fi fi

View File

@ -0,0 +1,9 @@
MODULE := src/emucore/tia/core_6502ts
MODULE_OBJS :=
MODULE_DIRS += \
src/emucore/tia/core_6502ts
# Include common rules
include $(srcdir)/common.rules