mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-25 10:29:51 +00:00
Cleaning up build scripts with Bincue for Windows and *nix
This commit is contained in:
parent
a5e7e80cda
commit
80399941b2
@ -100,7 +100,7 @@ define GUI_SRCS_LIST_TO_OBJS
|
|||||||
endef
|
endef
|
||||||
GUI_OBJS = $(GUI_SRCS_LIST_TO_OBJS)
|
GUI_OBJS = $(GUI_SRCS_LIST_TO_OBJS)
|
||||||
ifeq ($(USE_BINCUE),yes)
|
ifeq ($(USE_BINCUE),yes)
|
||||||
GUI_OBJS += bincue_unix.o
|
GUI_OBJS += bincue.o
|
||||||
endif
|
endif
|
||||||
GUI_SRCS := $(GUI_SRCS:%=@top_srcdir@/%)
|
GUI_SRCS := $(GUI_SRCS:%=@top_srcdir@/%)
|
||||||
|
|
||||||
|
@ -898,7 +898,7 @@ fi
|
|||||||
dnl BINCUE overrides
|
dnl BINCUE overrides
|
||||||
|
|
||||||
if [[ "x$have_bincue" = "xyes" ]]; then
|
if [[ "x$have_bincue" = "xyes" ]]; then
|
||||||
EXTRASYSSRCS="$EXTRASYSSRCS bincue_unix.cpp"
|
EXTRASYSSRCS="$EXTRASYSSRCS bincue.cpp"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl libvhd overrides
|
dnl libvhd overrides
|
||||||
|
@ -31,6 +31,8 @@ SLIRP_SRCS = \
|
|||||||
../slirp/ip_input.c ../slirp/socket.c ../slirp/udp.c
|
../slirp/ip_input.c ../slirp/socket.c ../slirp/udp.c
|
||||||
SLIRP_OBJS = $(SLIRP_SRCS:../slirp/%.c=$(OBJ_DIR)/slirp-%.o)
|
SLIRP_OBJS = $(SLIRP_SRCS:../slirp/%.c=$(OBJ_DIR)/slirp-%.o)
|
||||||
|
|
||||||
|
USE_BINCUE = @USE_BINCUE@
|
||||||
|
|
||||||
LN_S = @LN_S@
|
LN_S = @LN_S@
|
||||||
WINDRES = @WINDRES@
|
WINDRES = @WINDRES@
|
||||||
CC = @CC@
|
CC = @CC@
|
||||||
@ -42,6 +44,7 @@ DEFS = @DEFS@ @DEFINES@
|
|||||||
LDFLAGS = @LDFLAGS@ -Wl,-Bstatic
|
LDFLAGS = @LDFLAGS@ -Wl,-Bstatic
|
||||||
LIBS = @LIBS@ -lws2_32 -lwsock32 -liphlpapi
|
LIBS = @LIBS@ -lws2_32 -lwsock32 -liphlpapi
|
||||||
CPUSRCS = @CPUSRCS@
|
CPUSRCS = @CPUSRCS@
|
||||||
|
EXTRASRCS = @EXTRASRCS@
|
||||||
|
|
||||||
HOST_CC = gcc
|
HOST_CC = gcc
|
||||||
HOST_CXX = g++
|
HOST_CXX = g++
|
||||||
@ -68,7 +71,7 @@ SRCS = ../main.cpp main_windows.cpp ../prefs.cpp ../prefs_items.cpp prefs_window
|
|||||||
../extfs.cpp extfs_windows.cpp ../user_strings.cpp user_strings_windows.cpp \
|
../extfs.cpp extfs_windows.cpp ../user_strings.cpp user_strings_windows.cpp \
|
||||||
vm_alloc.cpp sigsegv.cpp posix_emu.cpp util_windows.cpp \
|
vm_alloc.cpp sigsegv.cpp posix_emu.cpp util_windows.cpp \
|
||||||
../dummy/prefs_editor_dummy.cpp BasiliskII.rc \
|
../dummy/prefs_editor_dummy.cpp BasiliskII.rc \
|
||||||
$(CDENABLESRCS) $(ROUTERSRCS) $(CPUSRCS) $(SLIRP_OBJS)
|
$(CDENABLESRCS) $(ROUTERSRCS) $(CPUSRCS) $(EXTRASRCS) $(SLIRP_OBJS)
|
||||||
|
|
||||||
UI_SRCS = ../prefs.cpp prefs_windows.cpp prefs_editor_gtk.cpp xpram_windows.cpp \
|
UI_SRCS = ../prefs.cpp prefs_windows.cpp prefs_editor_gtk.cpp xpram_windows.cpp \
|
||||||
../prefs_items.cpp ../user_strings.cpp user_strings_windows.cpp util_windows.cpp \
|
../prefs_items.cpp ../user_strings.cpp user_strings_windows.cpp util_windows.cpp \
|
||||||
@ -109,6 +112,9 @@ define UI_SRCS_LIST_TO_OBJS
|
|||||||
$(basename $(notdir $(file))))))
|
$(basename $(notdir $(file))))))
|
||||||
endef
|
endef
|
||||||
UI_OBJS = $(UI_SRCS_LIST_TO_OBJS)
|
UI_OBJS = $(UI_SRCS_LIST_TO_OBJS)
|
||||||
|
ifeq ($(USE_BINCUE),yes)
|
||||||
|
UI_OBJS += bincue.o
|
||||||
|
endif
|
||||||
|
|
||||||
SRC_PATHS += $(sort $(foreach file, $(SRCS), $(dir $(file))))
|
SRC_PATHS += $(sort $(foreach file, $(SRCS), $(dir $(file))))
|
||||||
VPATH :=
|
VPATH :=
|
||||||
|
@ -36,6 +36,9 @@ AC_ARG_ENABLE(fpe,
|
|||||||
dnl External packages.
|
dnl External packages.
|
||||||
AC_ARG_WITH(gtk, [ --with-gtk use GTK user interface [default=yes]], [WANT_GTK=$withval], [WANT_GTK=yes])
|
AC_ARG_WITH(gtk, [ --with-gtk use GTK user interface [default=yes]], [WANT_GTK=$withval], [WANT_GTK=yes])
|
||||||
|
|
||||||
|
AC_ARG_WITH(bincue,
|
||||||
|
AS_HELP_STRING([--with-bincue], [Allow cdrom image files in bin/cue mode]))
|
||||||
|
|
||||||
dnl Addressing modes.
|
dnl Addressing modes.
|
||||||
AC_ARG_ENABLE(addressing,
|
AC_ARG_ENABLE(addressing,
|
||||||
[ --enable-addressing=AM specify the addressing mode to use [default=fastest]],
|
[ --enable-addressing=AM specify the addressing mode to use [default=fastest]],
|
||||||
@ -85,6 +88,13 @@ AC_SUBST(WANT_GTK)
|
|||||||
dnl We use 64-bit file size support if possible.
|
dnl We use 64-bit file size support if possible.
|
||||||
AC_SYS_LARGEFILE
|
AC_SYS_LARGEFILE
|
||||||
|
|
||||||
|
dnl BINCUE
|
||||||
|
AS_IF([test "x$with_bincue" = "xyes" ], [have_bincue=yes], [have_bincue=no])
|
||||||
|
AS_IF([test "x$have_bincue" = "xyes" ], [
|
||||||
|
DEFINES="$DEFINES -DBINCUE"
|
||||||
|
AC_SUBST(USE_BINCUE, yes)
|
||||||
|
], [AC_SUBST(USE_BINCUE, no)])
|
||||||
|
|
||||||
dnl Checks for header files.
|
dnl Checks for header files.
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
|
|
||||||
@ -304,6 +314,11 @@ elif [[ "x$HAVE_GCC30" = "xyes" -a "x$HAVE_X86_64" = "xyes" ]]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl BINCUE overrides
|
||||||
|
if [[ "x$have_bincue" = "xyes" ]]; then
|
||||||
|
EXTRASRCS="$EXTRASRCS bincue.cpp"
|
||||||
|
fi
|
||||||
|
|
||||||
dnl Enable JIT compiler, if possible.
|
dnl Enable JIT compiler, if possible.
|
||||||
if [[ "x$WANT_JIT" = "xyes" -a "x$CAN_JIT" ]]; then
|
if [[ "x$WANT_JIT" = "xyes" -a "x$CAN_JIT" ]]; then
|
||||||
JITSRCS="$JITSRCS ../uae_cpu/compiler/compemu_support.cpp ../uae_cpu/compiler/compemu_fpp.cpp compstbl.o cpustbl_nf.o"
|
JITSRCS="$JITSRCS ../uae_cpu/compiler/compemu_support.cpp ../uae_cpu/compiler/compemu_fpp.cpp compstbl.o cpustbl_nf.o"
|
||||||
@ -552,6 +567,7 @@ dnl Generate Makefile.
|
|||||||
AC_SUBST(DEFINES)
|
AC_SUBST(DEFINES)
|
||||||
AC_SUBST(CPUINCLUDES)
|
AC_SUBST(CPUINCLUDES)
|
||||||
AC_SUBST(CPUSRCS)
|
AC_SUBST(CPUSRCS)
|
||||||
|
AC_SUBST(EXTRASRCS)
|
||||||
AC_CONFIG_FILES([Makefile])
|
AC_CONFIG_FILES([Makefile])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
@ -564,6 +580,7 @@ echo JIT debug mode ......................... : $WANT_JIT_DEBUG
|
|||||||
echo Floating-Point emulation core .......... : $FPE_CORE
|
echo Floating-Point emulation core .......... : $FPE_CORE
|
||||||
echo Assembly optimizations ................. : $ASM_OPTIMIZATIONS
|
echo Assembly optimizations ................. : $ASM_OPTIMIZATIONS
|
||||||
echo Addressing mode ........................ : $ADDRESSING_MODE
|
echo Addressing mode ........................ : $ADDRESSING_MODE
|
||||||
|
echo BINCUE support ......................... : $have_bincue
|
||||||
echo GTK user interface ..................... : $WANT_GTK
|
echo GTK user interface ..................... : $WANT_GTK
|
||||||
echo
|
echo
|
||||||
echo "Configuration done. Now type \"make\" (or \"gmake\")."
|
echo "Configuration done. Now type \"make\" (or \"gmake\")."
|
||||||
|
@ -106,7 +106,7 @@ define GUI_SRCS_LIST_TO_OBJS
|
|||||||
endef
|
endef
|
||||||
GUI_OBJS = $(GUI_SRCS_LIST_TO_OBJS)
|
GUI_OBJS = $(GUI_SRCS_LIST_TO_OBJS)
|
||||||
ifeq ($(USE_BINCUE),yes)
|
ifeq ($(USE_BINCUE),yes)
|
||||||
GUI_OBJS += bincue_unix.o
|
GUI_OBJS += bincue.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define DYNGENSRCS_LIST_TO_OBJS
|
define DYNGENSRCS_LIST_TO_OBJS
|
||||||
|
@ -781,7 +781,7 @@ fi
|
|||||||
dnl BINCUE overrides
|
dnl BINCUE overrides
|
||||||
|
|
||||||
if [[ "x$have_bincue" = "xyes" ]]; then
|
if [[ "x$have_bincue" = "xyes" ]]; then
|
||||||
EXTRASYSSRCS="$EXTRASYSSRCS bincue_unix.cpp"
|
EXTRASYSSRCS="$EXTRASYSSRCS bincue.cpp"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl libvhd overrides
|
dnl libvhd overrides
|
||||||
|
@ -29,6 +29,8 @@ SLIRP_SRCS = \
|
|||||||
../slirp/ip_input.c ../slirp/socket.c ../slirp/udp.c
|
../slirp/ip_input.c ../slirp/socket.c ../slirp/udp.c
|
||||||
SLIRP_OBJS = $(SLIRP_SRCS:../slirp/%.c=$(OBJ_DIR)/slirp-%.o)
|
SLIRP_OBJS = $(SLIRP_SRCS:../slirp/%.c=$(OBJ_DIR)/slirp-%.o)
|
||||||
|
|
||||||
|
USE_BINCUE = @USE_BINCUE@
|
||||||
|
|
||||||
LN_S = @LN_S@
|
LN_S = @LN_S@
|
||||||
WINDRES = @WINDRES@
|
WINDRES = @WINDRES@
|
||||||
CC = @CC@
|
CC = @CC@
|
||||||
@ -41,6 +43,7 @@ LDFLAGS = @LDFLAGS@ -Wl,-Bstatic
|
|||||||
#TODO remove pthread part of that if irrelevant
|
#TODO remove pthread part of that if irrelevant
|
||||||
LIBS = @LIBS@ -lws2_32 -lwsock32 -liphlpapi
|
LIBS = @LIBS@ -lws2_32 -lwsock32 -liphlpapi
|
||||||
CPUSRCS = @CPUSRCS@
|
CPUSRCS = @CPUSRCS@
|
||||||
|
EXTRASRCS = @EXTRASRCS@
|
||||||
PERL = @PERL@
|
PERL = @PERL@
|
||||||
|
|
||||||
USE_DYNGEN = @USE_DYNGEN@
|
USE_DYNGEN = @USE_DYNGEN@
|
||||||
@ -66,14 +69,14 @@ SRCS = ../main.cpp main_windows.cpp ../prefs.cpp ../prefs_items.cpp prefs_window
|
|||||||
sys_windows.cpp cdenable/cache.cpp cdenable/eject_nt.cpp cdenable/ntcd.cpp \
|
sys_windows.cpp cdenable/cache.cpp cdenable/eject_nt.cpp cdenable/ntcd.cpp \
|
||||||
../rom_patches.cpp ../rsrc_patches.cpp ../emul_op.cpp ../name_registry.cpp \
|
../rom_patches.cpp ../rsrc_patches.cpp ../emul_op.cpp ../name_registry.cpp \
|
||||||
../macos_util.cpp ../timer.cpp timer_windows.cpp ../xpram.cpp xpram_windows.cpp \
|
../macos_util.cpp ../timer.cpp timer_windows.cpp ../xpram.cpp xpram_windows.cpp \
|
||||||
../adb.cpp ../sony.cpp ../disk.cpp ../cdrom.cpp ../bincue.cpp ../scsi.cpp ../dummy/scsi_dummy.cpp \
|
../adb.cpp ../sony.cpp ../disk.cpp ../cdrom.cpp ../scsi.cpp ../dummy/scsi_dummy.cpp \
|
||||||
../gfxaccel.cpp ../video.cpp ../SDL/video_sdl.cpp ../SDL/video_sdl2.cpp video_blit.cpp \
|
../gfxaccel.cpp ../video.cpp ../SDL/video_sdl.cpp ../SDL/video_sdl2.cpp video_blit.cpp \
|
||||||
../audio.cpp ../SDL/audio_sdl.cpp ../ether.cpp ether_windows.cpp \
|
../audio.cpp ../SDL/audio_sdl.cpp ../ether.cpp ether_windows.cpp \
|
||||||
../thunks.cpp ../serial.cpp serial_windows.cpp ../extfs.cpp extfs_windows.cpp \
|
../thunks.cpp ../serial.cpp serial_windows.cpp ../extfs.cpp extfs_windows.cpp \
|
||||||
about_window_windows.cpp ../user_strings.cpp user_strings_windows.cpp \
|
about_window_windows.cpp ../user_strings.cpp user_strings_windows.cpp \
|
||||||
../dummy/prefs_editor_dummy.cpp clip_windows.cpp util_windows.cpp \
|
../dummy/prefs_editor_dummy.cpp clip_windows.cpp util_windows.cpp \
|
||||||
vm_alloc.cpp sigsegv.cpp posix_emu.cpp SheepShaver.rc \
|
vm_alloc.cpp sigsegv.cpp posix_emu.cpp SheepShaver.rc \
|
||||||
$(CPUSRCS) $(ROUTERSRCS) $(SLIRP_OBJS)
|
$(CPUSRCS) $(ROUTERSRCS) $(EXTRASRCS) $(SLIRP_OBJS)
|
||||||
|
|
||||||
UI_SRCS = ../prefs.cpp prefs_windows.cpp prefs_editor_gtk.cpp xpram_windows.cpp \
|
UI_SRCS = ../prefs.cpp prefs_windows.cpp prefs_editor_gtk.cpp xpram_windows.cpp \
|
||||||
../prefs_items.cpp ../user_strings.cpp user_strings_windows.cpp util_windows.cpp \
|
../prefs_items.cpp ../user_strings.cpp user_strings_windows.cpp util_windows.cpp \
|
||||||
@ -115,6 +118,9 @@ define UI_SRCS_LIST_TO_OBJS
|
|||||||
$(basename $(notdir $(file))))))
|
$(basename $(notdir $(file))))))
|
||||||
endef
|
endef
|
||||||
UI_OBJS = $(UI_SRCS_LIST_TO_OBJS)
|
UI_OBJS = $(UI_SRCS_LIST_TO_OBJS)
|
||||||
|
ifeq ($(USE_BINCUE),yes)
|
||||||
|
UI_OBJS += bincue.o
|
||||||
|
endif
|
||||||
|
|
||||||
define DYNGENSRCS_LIST_TO_OBJS
|
define DYNGENSRCS_LIST_TO_OBJS
|
||||||
$(addprefix $(OBJ_DIR)/, $(addsuffix .ho, $(foreach file, $(DYNGENSRCS), \
|
$(addprefix $(OBJ_DIR)/, $(addsuffix .ho, $(foreach file, $(DYNGENSRCS), \
|
||||||
|
@ -16,6 +16,9 @@ AC_ARG_ENABLE(jit, [ --enable-jit enable JIT compiler [defa
|
|||||||
AC_ARG_WITH(gtk, [ --with-gtk use GTK user interface [default=yes]], [WANT_GTK=$withval], [WANT_GTK=yes])
|
AC_ARG_WITH(gtk, [ --with-gtk use GTK user interface [default=yes]], [WANT_GTK=$withval], [WANT_GTK=yes])
|
||||||
AC_ARG_ENABLE(vosf, [ --enable-vosf enable video on SEGV signals [default=yes]], [WANT_VOSF=$enableval], [WANT_VOSF=yes])
|
AC_ARG_ENABLE(vosf, [ --enable-vosf enable video on SEGV signals [default=yes]], [WANT_VOSF=$enableval], [WANT_VOSF=yes])
|
||||||
|
|
||||||
|
AC_ARG_WITH(bincue,
|
||||||
|
AS_HELP_STRING([--with-bincue], [Allow cdrom image files in bin/cue mode]))
|
||||||
|
|
||||||
dnl Checks for programs.
|
dnl Checks for programs.
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_PROG_CPP
|
AC_PROG_CPP
|
||||||
@ -199,6 +202,18 @@ cygwin)
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
dnl BINCUE
|
||||||
|
AS_IF([test "x$with_bincue" = "xyes" ], [have_bincue=yes], [have_bincue=no])
|
||||||
|
AS_IF([test "x$have_bincue" = "xyes" ], [
|
||||||
|
DEFINES="$DEFINES -DBINCUE"
|
||||||
|
AC_SUBST(USE_BINCUE, yes)
|
||||||
|
], [AC_SUBST(USE_BINCUE, no)])
|
||||||
|
|
||||||
|
dnl BINCUE overrides
|
||||||
|
if [[ "x$have_bincue" = "xyes" ]]; then
|
||||||
|
EXTRASRCS="$EXTRASRCS bincue.cpp"
|
||||||
|
fi
|
||||||
|
|
||||||
dnl CPU emulator sources
|
dnl CPU emulator sources
|
||||||
CPUSRCS="\
|
CPUSRCS="\
|
||||||
../kpx_cpu/src/mathlib/ieeefp.cpp \
|
../kpx_cpu/src/mathlib/ieeefp.cpp \
|
||||||
@ -278,6 +293,7 @@ AC_SUBST(USE_PREGENERATED_DYNGEN)
|
|||||||
AC_SUBST(DYNGENSRCS)
|
AC_SUBST(DYNGENSRCS)
|
||||||
AC_SUBST(DYNGEN_OP_FLAGS)
|
AC_SUBST(DYNGEN_OP_FLAGS)
|
||||||
AC_SUBST(CPUSRCS)
|
AC_SUBST(CPUSRCS)
|
||||||
|
AC_SUBST(EXTRASRCS)
|
||||||
AC_OUTPUT([Makefile])
|
AC_OUTPUT([Makefile])
|
||||||
|
|
||||||
dnl Print summary.
|
dnl Print summary.
|
||||||
@ -286,6 +302,7 @@ echo SheepShaver configuration summary:
|
|||||||
echo
|
echo
|
||||||
echo Enable JIT compiler .............. : $WANT_JIT
|
echo Enable JIT compiler .............. : $WANT_JIT
|
||||||
echo GTK user interface ............... : $WANT_GTK
|
echo GTK user interface ............... : $WANT_GTK
|
||||||
|
echo BINCUE support ......................... : $have_bincue
|
||||||
echo Enable VOSF ...................... : $WANT_VOSF
|
echo Enable VOSF ...................... : $WANT_VOSF
|
||||||
echo
|
echo
|
||||||
echo "Configuration done. Now type \"make\"."
|
echo "Configuration done. Now type \"make\"."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user