Add static makefiles for reference.

This commit is contained in:
yksoft1 2018-10-21 02:24:05 +08:00
parent 63359bf0f4
commit 27e5cb1765
4 changed files with 924 additions and 0 deletions

View File

@ -0,0 +1,130 @@
# makefile for Emscripten SDL2
# Emscripten version 1.38.12, clang version 6.0.1
CC = emcc
CXX = em++
RM = rm -f
ifeq ($(EMSCRIPTEN_ROOT),)
#Set it yourself if EMSCRIPTEN_ROOT not there
EMSCRIPTEN_ROOT=c:/emsdk/emscripten/1.38.12
endif
#WebAssembly seemed to be a bit faster than asm.js
WASM=1
#Set maximum RAM that Emscripten use (in bytes).
EMSCRIPTEN_TOTAL_MEMORY=83886080
SDL_CONFIG ?= $(EMSCRIPTEN_ROOT)/system/bin/sdl2-config
SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags)
SDL_LIBS := $(shell $(SDL_CONFIG) --libs)
DBX_PATH = ../..
CFLAGS = -O3 -DNDEBUG -DEMTERPRETER_SYNC -Wstrict-overflow=0 -Wstrict-aliasing=0 -I. \
-I$(DBX_PATH) \
-I$(DBX_PATH)/include \
-I$(DBX_PATH)/src \
-I$(DBX_PATH)/src/aviwriter \
-I$(DBX_PATH)/src/xBRZ \
-I$(DBX_PATH)/src/hardware/snd_pc98/sound \
-I$(DBX_PATH)/src/hardware/snd_pc98/common \
-I$(DBX_PATH)/src/hardware/snd_pc98/generic \
-I$(DBX_PATH)/src/hardware/snd_pc98/sound/getsnd \
-I$(DBX_PATH)/src/hardware/snd_pc98/x11 \
-I$(DBX_PATH)/src/hardware/snd_pc98/cbus
CFLAGS += $(SDL_CFLAGS)
CXXFLAGS = -O3 -DNDEBUG -DEMTERPRETER_SYNC -std=gnu++11 -Wstrict-overflow=0 -Wstrict-aliasing=0 -I. \
-I$(DBX_PATH) \
-I$(DBX_PATH)/include \
-I$(DBX_PATH)/src \
-I$(DBX_PATH)/src/aviwriter \
-I$(DBX_PATH)/src/xBRZ \
-I$(DBX_PATH)/src/hardware/snd_pc98/sound \
-I$(DBX_PATH)/src/hardware/snd_pc98/common \
-I$(DBX_PATH)/src/hardware/snd_pc98/generic \
-I$(DBX_PATH)/src/hardware/snd_pc98/sound/getsnd \
-I$(DBX_PATH)/src/hardware/snd_pc98/x11 \
-I$(DBX_PATH)/src/hardware/snd_pc98/cbus
CXXFLAGS += $(SDL_CFLAGS)
LFLAGS =
TARGET = dosbox-x.bc
CPPSRCS = $(DBX_PATH)/src/dosbox.cpp \
$(wildcard $(DBX_PATH)/src/aviwriter/*.cpp) \
$(wildcard $(DBX_PATH)/src/builtin/*.cpp) \
$(wildcard $(DBX_PATH)/src/cpu/*.cpp) \
$(wildcard $(DBX_PATH)/src/debug/*.cpp) \
$(wildcard $(DBX_PATH)/src/dos/*.cpp) \
$(wildcard $(DBX_PATH)/src/fpu/*.cpp) \
$(wildcard $(DBX_PATH)/src/gui/*.cpp) \
$(wildcard $(DBX_PATH)/src/gui/*.c) \
$(wildcard $(DBX_PATH)/src/hardware/*.cpp) \
$(wildcard $(DBX_PATH)/src/hardware/parport/*.cpp) \
$(wildcard $(DBX_PATH)/src/hardware/reSID/*.cpp) \
$(wildcard $(DBX_PATH)/src/hardware/serialport/*.cpp) \
$(DBX_PATH)/src/hardware/snd_pc98/cbus/board86.c \
$(DBX_PATH)/src/hardware/snd_pc98/cbus/board26k.c \
$(wildcard $(DBX_PATH)/src/hardware/snd_pc98/common/*.c) \
$(wildcard $(DBX_PATH)/src/hardware/snd_pc98/generic/*.c) \
$(DBX_PATH)/src/hardware/snd_pc98/sound/opngeng.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/opngenc.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/pcm86g.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/pcm86c.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/tms3631g.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/tms3631c.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/psggeng.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/psggenc.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/adpcmg.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/adpcmc.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/rhythmc.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/fmboard.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/fmtimer.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/sound.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/soundrom.c \
$(wildcard $(DBX_PATH)/src/hardware/snd_pc98/sound/getsnd/*.c) \
$(wildcard $(DBX_PATH)/src/hardware/snd_pc98/x11/*.c) \
$(wildcard $(DBX_PATH)/src/ints/*.cpp) \
$(wildcard $(DBX_PATH)/src/libs/gui_tk/*.cpp) \
$(wildcard $(DBX_PATH)/src/misc/*.cpp) \
$(wildcard $(DBX_PATH)/src/output/*.cpp) \
$(wildcard $(DBX_PATH)/src/output/direct3d/*.cpp) \
$(wildcard $(DBX_PATH)/src/shell/*.cpp) \
$(wildcard $(DBX_PATH)/src/xBRZ/*.cpp)
OBJS = $(addsuffix .o,$(basename $(CPPSRCS)))
LIBS = -lm $(SDL_LIBS)
.SUFFIXES: .c.o
.SUFFIXES: .cpp.o
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(LFLAGS) -g -o $@ $(OBJS) $(LIBS)
.c.o:
$(CC) $(CFLAGS) -c -o $@ $<
.cpp.o:
$(CXX) $(CXXFLAGS) -c -o $@ $<
clean:
rm -f $(TARGET) $(OBJS)
html: $(TARGET)
ifeq ($(PRELOAD), 1)
$(CC) -O3 -s USE_SDL=2 -s WASM=$(WASM) -s TOTAL_MEMORY=$(EMSCRIPTEN_TOTAL_MEMORY) -s EMTERPRETIFY=1 -s EMTERPRETIFY_ASYNC=1 \
$(TARGET) \
--preload-file $(PREFILE) -o $(basename $(TARGET)).html
else
$(CC) -O3 -s USE_SDL=2 -s WASM=$(WASM) -s TOTAL_MEMORY=$(EMSCRIPTEN_TOTAL_MEMORY) -s EMTERPRETIFY=1 -s EMTERPRETIFY_ASYNC=1 \
$(TARGET) -o $(basename $(TARGET)).html
endif
#TODO: make an EMTERPRETIFY_WHITELIST file.

View File

@ -0,0 +1,345 @@
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/*
* Copyright (C) 2002-2013 The DOSBox Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* Define if building universal (internal helper macro) */
/* #undef AC_APPLE_UNIVERSAL_BUILD */
/* Compiling on BSD */
/* #undef BSD */
/* Determines if the compilers supports always_inline attribute. */
/* #undef C_ATTRIBUTE_ALWAYS_INLINE */
/* Determines if the compilers supports fastcall attribute. */
/* #undef C_ATTRIBUTE_FASTCALL */
/* Define to 1 to use FFMPEG libavcodec for video capture */
/* #undef C_AVCODEC */
/* Define to 1 to use inlined memory functions in cpu core */
/*#define C_CORE_INLINE 1*/
/* Define to 1 to use Direct3D shaders */
/* #undef C_D3DSHADERS */
/* Define to 1 to enable internal debugger, requires libcurses */
/* #undef C_DEBUG */
/* Define to 1 if you want parallel passthrough support (Win32, Linux). */
/*#define C_DIRECTLPT 1*/
/* Define to 1 if you want serial passthrough support (Win32, Posix and OS/2).
*/
/*#define C_DIRECTSERIAL 1*/
/* Define to 1 to use x86 dynamic cpu core */
/*#define C_DYNAMIC_X86 32*/
/* Define to 1 to enable fluidsynth MIDI synthesis */
/* #undef C_FLUIDSYNTH */
/* Force SDL drawn menus */
/*#define C_FORCE_MENU_SDLDRAW 1*/
/* Define to 1 to enable floating point emulation */
#define C_FPU 1
/* Determines if the compilers supports attributes for structures. */
#define C_HAS_ATTRIBUTE 1
/* Determines if the compilers supports __builtin_expect for branch
prediction. */
#define C_HAS_BUILTIN_EXPECT 1
/* Define to 1 if you have the mprotect function */
/* #undef C_HAVE_MPROTECT */
/* Define to 1 to enable heavy debugging, also have to enable C_DEBUG */
/* #undef C_HEAVY_DEBUG */
/* Targeting HX DOS extender */
/* #undef C_HX_DOS */
/* Define to 1 to enable IPX over Internet networking, requires SDL_net */
/*#define C_IPX 1*/
/* Define to 1 if you have libpng */
/*#define C_LIBPNG 1*/
/* Define to 1 to enable internal modem support, requires SDL_net */
/*#define C_MODEM 1*/
/* Define to 1 to enable MT32 emulation (x86/x86_64 only) */
/* #undef C_MT32 */
/* Define to 1 to enable NE2000 ethernet passthrough, requires libpcap */
/* #undef C_NE2000 */
/* Define to 1 to use opengl display output support */
//#define C_OPENGL 1
/* Set to 1 to enable SDL 1.x support */
#define C_SDL1 1
/* Set to 1 to enable SDL 2.x support */
#define C_SDL2 1
/* Indicate whether SDL_net is present */
/*#define C_SDL_NET 1*/
/* Define to 1 if you have setpriority support */
/* #undef C_SET_PRIORITY */
/* Define to 1 to enable screenshots, requires libpng */
/*#define C_SSHOT 1*/
/* The type of cpu this target has */
#define C_TARGETCPU X86
/* Define to 1 to use a unaligned memory access */
#define C_UNALIGNED_MEMORY 1
/* define to 1 if you have XKBlib.h and X11 lib */
/* #undef C_X11_XKB */
/* libm doesn't include powf */
/* #undef DB_HAVE_NO_POWF */
/* struct dirent has d_type */
/* #undef DIRENT_HAS_D_TYPE */
/* environ can be included */
#define ENVIRON_INCLUDED 1
/* environ can be linked */
#define ENVIRON_LINKED 1
/* Define to 1 to use ALSA for MIDI */
/* #undef HAVE_ALSA */
/* Define to 1 to use Direct3D 9 display output support */
/* #undef HAVE_D3D9_H */
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the `asound' library (-lasound). */
/* #undef HAVE_LIBASOUND */
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the <netinet/in.h> header file. */
/* #undef HAVE_NETINET_IN_H */
/* Define to 1 if you have the <pwd.h> header file. */
/* #undef HAVE_PWD_H */
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the <sys/socket.h> header file. */
/* #undef HAVE_SYS_SOCKET_H */
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Compiling on GNU/Linux */
/* #undef LINUX */
/* Compiling on Mac OS X */
/* #undef MACOSX */
/* Compiling on OS/2 EMX */
/* #undef OS2 */
#define C_EMSCRIPTEN 1
/* Name of package */
#define PACKAGE "dosbox-x"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "https://github.com/joncampbell123/dosbox-x/issues"
/* Define to the full name of this package. */
#define PACKAGE_NAME "dosbox-x"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "dosbox-x 0.82.10"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "dosbox-x"
/* Define to the home page for this package. */
#define PACKAGE_URL "http://dosbox-x.software"
/* Define to the version of this package. */
#define PACKAGE_VERSION "0.82.10"
/* The size of `int *', as computed by sizeof. */
#define SIZEOF_INT_P 4
/* The size of `unsigned char', as computed by sizeof. */
#define SIZEOF_UNSIGNED_CHAR 1
/* The size of `unsigned int', as computed by sizeof. */
#define SIZEOF_UNSIGNED_INT 4
/* The size of `unsigned long', as computed by sizeof. */
#define SIZEOF_UNSIGNED_LONG 4
/* The size of `unsigned long long', as computed by sizeof. */
#define SIZEOF_UNSIGNED_LONG_LONG 8
/* The size of `unsigned short', as computed by sizeof. */
#define SIZEOF_UNSIGNED_SHORT 2
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
/* #undef TM_IN_SYS_TIME */
/* Version number of package */
#define VERSION "0.82.10"
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#if defined AC_APPLE_UNIVERSAL_BUILD
# if defined __BIG_ENDIAN__
# define WORDS_BIGENDIAN 1
# endif
#else
# ifndef WORDS_BIGENDIAN
/* # undef WORDS_BIGENDIAN */
# endif
#endif
/* Number of bits in a file offset, on hosts where this is settable. */
#define _FILE_OFFSET_BITS 64
/* Define for large files, on AIX-style hosts. */
/* #undef _LARGE_FILES */
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus
/* #undef inline */
#endif
/* Define to `unsigned int' if <sys/types.h> does not define. */
/* #undef size_t */
/* Define to `int` if you don't have socklen_t */
/* #undef socklen_t */
#if C_ATTRIBUTE_ALWAYS_INLINE
#define INLINE inline __attribute__((always_inline))
#else
#define INLINE inline
#endif
#if C_ATTRIBUTE_FASTCALL
#define DB_FASTCALL __attribute__((fastcall))
#else
#define DB_FASTCALL
#endif
#if C_HAS_ATTRIBUTE
#define GCC_ATTRIBUTE(x) __attribute__ ((x))
#else
#define GCC_ATTRIBUTE(x) /* attribute not supported */
#endif
#if C_HAS_BUILTIN_EXPECT
#define GCC_UNLIKELY(x) __builtin_expect((x),0)
#define GCC_LIKELY(x) __builtin_expect((x),1)
#else
#define GCC_UNLIKELY(x) (x)
#define GCC_LIKELY(x) (x)
#endif
typedef double Real64;
#if SIZEOF_UNSIGNED_CHAR != 1
# error "sizeof (unsigned char) != 1"
#else
typedef unsigned char Bit8u;
typedef signed char Bit8s;
#endif
#if SIZEOF_UNSIGNED_SHORT != 2
# error "sizeof (unsigned short) != 2"
#else
typedef unsigned short Bit16u;
typedef signed short Bit16s;
#endif
#if SIZEOF_UNSIGNED_INT == 4
typedef unsigned int Bit32u;
typedef signed int Bit32s;
#elif SIZEOF_UNSIGNED_LONG == 4
typedef unsigned long Bit32u;
typedef signed long Bit32s;
#else
# error "can't find sizeof(type) of 4 bytes!"
#endif
#if SIZEOF_UNSIGNED_LONG == 8
typedef unsigned long Bit64u;
typedef signed long Bit64s;
#elif SIZEOF_UNSIGNED_LONG_LONG == 8
typedef unsigned long long Bit64u;
typedef signed long long Bit64s;
#else
# error "can't find data type of 8 bytes"
#endif
#if SIZEOF_INT_P == 4
typedef Bit32u Bitu;
typedef Bit32s Bits;
#else
typedef Bit64u Bitu;
typedef Bit64s Bits;
#endif

View File

@ -0,0 +1,106 @@
# makefile for mingw SDL2
# gcc version 6.3
CC = gcc
CXX = g++
STRIP = strip
RM = rm -f
DBX_PATH = ../..
CFLAGS = -O3 -DNDEBUG -Wstrict-overflow=0 -Wstrict-aliasing=0 -fomit-frame-pointer -mno-ms-bitfields -I. \
-I$(DBX_PATH) \
-I$(DBX_PATH)/include \
-I$(DBX_PATH)/src \
-I$(DBX_PATH)/src/aviwriter \
-I$(DBX_PATH)/src/xBRZ \
-I$(DBX_PATH)/src/hardware/snd_pc98/sound \
-I$(DBX_PATH)/src/hardware/snd_pc98/common \
-I$(DBX_PATH)/src/hardware/snd_pc98/generic \
-I$(DBX_PATH)/src/hardware/snd_pc98/sound/getsnd \
-I$(DBX_PATH)/src/hardware/snd_pc98/x11 \
-I$(DBX_PATH)/src/hardware/snd_pc98/cbus
CFLAGS += $(shell sdl2-config --cflags)
CXXFLAGS = -O3 -DNDEBUG -std=gnu++11 -Wstrict-overflow=0 -Wstrict-aliasing=0 -fomit-frame-pointer -mno-ms-bitfields -I. \
-I$(DBX_PATH) \
-I$(DBX_PATH)/include \
-I$(DBX_PATH)/src \
-I$(DBX_PATH)/src/aviwriter \
-I$(DBX_PATH)/src/xBRZ \
-I$(DBX_PATH)/src/hardware/snd_pc98/sound \
-I$(DBX_PATH)/src/hardware/snd_pc98/common \
-I$(DBX_PATH)/src/hardware/snd_pc98/generic \
-I$(DBX_PATH)/src/hardware/snd_pc98/sound/getsnd \
-I$(DBX_PATH)/src/hardware/snd_pc98/x11 \
-I$(DBX_PATH)/src/hardware/snd_pc98/cbus
CXXFLAGS += $(shell sdl2-config --cflags)
LFLAGS =
TARGET = dosbox-x.exe
CPPSRCS = $(DBX_PATH)/src/dosbox.cpp \
$(wildcard $(DBX_PATH)/src/aviwriter/*.cpp) \
$(wildcard $(DBX_PATH)/src/builtin/*.cpp) \
$(wildcard $(DBX_PATH)/src/cpu/*.cpp) \
$(wildcard $(DBX_PATH)/src/debug/*.cpp) \
$(wildcard $(DBX_PATH)/src/dos/*.cpp) \
$(wildcard $(DBX_PATH)/src/fpu/*.cpp) \
$(wildcard $(DBX_PATH)/src/gui/*.cpp) \
$(wildcard $(DBX_PATH)/src/gui/*.c) \
$(wildcard $(DBX_PATH)/src/hardware/*.cpp) \
$(wildcard $(DBX_PATH)/src/hardware/parport/*.cpp) \
$(wildcard $(DBX_PATH)/src/hardware/reSID/*.cpp) \
$(wildcard $(DBX_PATH)/src/hardware/serialport/*.cpp) \
$(DBX_PATH)/src/hardware/snd_pc98/cbus/board86.c \
$(DBX_PATH)/src/hardware/snd_pc98/cbus/board26k.c \
$(wildcard $(DBX_PATH)/src/hardware/snd_pc98/common/*.c) \
$(wildcard $(DBX_PATH)/src/hardware/snd_pc98/generic/*.c) \
$(DBX_PATH)/src/hardware/snd_pc98/sound/opngeng.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/opngenc.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/pcm86g.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/pcm86c.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/tms3631g.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/tms3631c.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/psggeng.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/psggenc.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/adpcmg.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/adpcmc.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/rhythmc.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/fmboard.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/fmtimer.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/sound.c \
$(DBX_PATH)/src/hardware/snd_pc98/sound/soundrom.c \
$(wildcard $(DBX_PATH)/src/hardware/snd_pc98/sound/getsnd/*.c) \
$(wildcard $(DBX_PATH)/src/hardware/snd_pc98/x11/*.c) \
$(wildcard $(DBX_PATH)/src/ints/*.cpp) \
$(wildcard $(DBX_PATH)/src/libs/gui_tk/*.cpp) \
$(wildcard $(DBX_PATH)/src/misc/*.cpp) \
$(wildcard $(DBX_PATH)/src/output/*.cpp) \
$(wildcard $(DBX_PATH)/src/output/direct3d/*.cpp) \
$(wildcard $(DBX_PATH)/src/shell/*.cpp) \
$(wildcard $(DBX_PATH)/src/xBRZ/*.cpp)
OBJS = $(addsuffix .o,$(basename $(CPPSRCS)))
LIBS = -static -lz -lpng -lm -lstdc++ $(shell sdl2-config --libs)
.SUFFIXES: .c.o
.SUFFIXES: .cpp.o
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(LFLAGS) -g -o $@ $(OBJS) $(LIBS)
$(STRIP) $@
.c.o:
$(CC) $(CFLAGS) -c -o $@ $<
.cpp.o:
$(CXX) $(CXXFLAGS) -c -o $@ $<
clean:
rm -f $(TARGET) $(OBJS)

View File

@ -0,0 +1,343 @@
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/*
* Copyright (C) 2002-2013 The DOSBox Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* Define if building universal (internal helper macro) */
/* #undef AC_APPLE_UNIVERSAL_BUILD */
/* Compiling on BSD */
/* #undef BSD */
/* Determines if the compilers supports always_inline attribute. */
/* #undef C_ATTRIBUTE_ALWAYS_INLINE */
/* Determines if the compilers supports fastcall attribute. */
/* #undef C_ATTRIBUTE_FASTCALL */
/* Define to 1 to use FFMPEG libavcodec for video capture */
/* #undef C_AVCODEC */
/* Define to 1 to use inlined memory functions in cpu core */
#define C_CORE_INLINE 1
/* Define to 1 to use Direct3D shaders */
/* #undef C_D3DSHADERS */
/* Define to 1 to enable internal debugger, requires libcurses */
/* #undef C_DEBUG */
/* Define to 1 if you want parallel passthrough support (Win32, Linux). */
#define C_DIRECTLPT 1
/* Define to 1 if you want serial passthrough support (Win32, Posix and OS/2).
*/
#define C_DIRECTSERIAL 1
/* Define to 1 to use x86 dynamic cpu core */
#define C_DYNAMIC_X86 32
/* Define to 1 to enable fluidsynth MIDI synthesis */
/* #undef C_FLUIDSYNTH */
/* Force SDL drawn menus */
#define C_FORCE_MENU_SDLDRAW 1
/* Define to 1 to enable floating point emulation */
#define C_FPU 1
/* Determines if the compilers supports attributes for structures. */
#define C_HAS_ATTRIBUTE 1
/* Determines if the compilers supports __builtin_expect for branch
prediction. */
#define C_HAS_BUILTIN_EXPECT 1
/* Define to 1 if you have the mprotect function */
/* #undef C_HAVE_MPROTECT */
/* Define to 1 to enable heavy debugging, also have to enable C_DEBUG */
/* #undef C_HEAVY_DEBUG */
/* Targeting HX DOS extender */
/* #undef C_HX_DOS */
/* Define to 1 to enable IPX over Internet networking, requires SDL_net */
/*#define C_IPX 1*/
/* Define to 1 if you have libpng */
#define C_LIBPNG 1
/* Define to 1 to enable internal modem support, requires SDL_net */
/*#define C_MODEM 1*/
/* Define to 1 to enable MT32 emulation (x86/x86_64 only) */
/* #undef C_MT32 */
/* Define to 1 to enable NE2000 ethernet passthrough, requires libpcap */
/* #undef C_NE2000 */
/* Define to 1 to use opengl display output support */
//#define C_OPENGL 1
/* Set to 1 to enable SDL 1.x support */
#define C_SDL1 1
/* Set to 1 to enable SDL 2.x support */
#define C_SDL2 1
/* Indicate whether SDL_net is present */
/*#define C_SDL_NET 1*/
/* Define to 1 if you have setpriority support */
/* #undef C_SET_PRIORITY */
/* Define to 1 to enable screenshots, requires libpng */
#define C_SSHOT 1
/* The type of cpu this target has */
#define C_TARGETCPU X86
/* Define to 1 to use a unaligned memory access */
#define C_UNALIGNED_MEMORY 1
/* define to 1 if you have XKBlib.h and X11 lib */
/* #undef C_X11_XKB */
/* libm doesn't include powf */
/* #undef DB_HAVE_NO_POWF */
/* struct dirent has d_type */
/* #undef DIRENT_HAS_D_TYPE */
/* environ can be included */
#define ENVIRON_INCLUDED 1
/* environ can be linked */
#define ENVIRON_LINKED 1
/* Define to 1 to use ALSA for MIDI */
/* #undef HAVE_ALSA */
/* Define to 1 to use Direct3D 9 display output support */
/* #undef HAVE_D3D9_H */
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the `asound' library (-lasound). */
/* #undef HAVE_LIBASOUND */
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the <netinet/in.h> header file. */
/* #undef HAVE_NETINET_IN_H */
/* Define to 1 if you have the <pwd.h> header file. */
/* #undef HAVE_PWD_H */
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the <sys/socket.h> header file. */
/* #undef HAVE_SYS_SOCKET_H */
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Compiling on GNU/Linux */
/* #undef LINUX */
/* Compiling on Mac OS X */
/* #undef MACOSX */
/* Compiling on OS/2 EMX */
/* #undef OS2 */
/* Name of package */
#define PACKAGE "dosbox-x"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "https://github.com/joncampbell123/dosbox-x/issues"
/* Define to the full name of this package. */
#define PACKAGE_NAME "dosbox-x"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "dosbox-x 0.82.10"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "dosbox-x"
/* Define to the home page for this package. */
#define PACKAGE_URL "http://dosbox-x.software"
/* Define to the version of this package. */
#define PACKAGE_VERSION "0.82.10"
/* The size of `int *', as computed by sizeof. */
#define SIZEOF_INT_P 4
/* The size of `unsigned char', as computed by sizeof. */
#define SIZEOF_UNSIGNED_CHAR 1
/* The size of `unsigned int', as computed by sizeof. */
#define SIZEOF_UNSIGNED_INT 4
/* The size of `unsigned long', as computed by sizeof. */
#define SIZEOF_UNSIGNED_LONG 4
/* The size of `unsigned long long', as computed by sizeof. */
#define SIZEOF_UNSIGNED_LONG_LONG 8
/* The size of `unsigned short', as computed by sizeof. */
#define SIZEOF_UNSIGNED_SHORT 2
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
/* #undef TM_IN_SYS_TIME */
/* Version number of package */
#define VERSION "0.82.10"
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#if defined AC_APPLE_UNIVERSAL_BUILD
# if defined __BIG_ENDIAN__
# define WORDS_BIGENDIAN 1
# endif
#else
# ifndef WORDS_BIGENDIAN
/* # undef WORDS_BIGENDIAN */
# endif
#endif
/* Number of bits in a file offset, on hosts where this is settable. */
#define _FILE_OFFSET_BITS 64
/* Define for large files, on AIX-style hosts. */
/* #undef _LARGE_FILES */
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus
/* #undef inline */
#endif
/* Define to `unsigned int' if <sys/types.h> does not define. */
/* #undef size_t */
/* Define to `int` if you don't have socklen_t */
/* #undef socklen_t */
#if C_ATTRIBUTE_ALWAYS_INLINE
#define INLINE inline __attribute__((always_inline))
#else
#define INLINE inline
#endif
#if C_ATTRIBUTE_FASTCALL
#define DB_FASTCALL __attribute__((fastcall))
#else
#define DB_FASTCALL
#endif
#if C_HAS_ATTRIBUTE
#define GCC_ATTRIBUTE(x) __attribute__ ((x))
#else
#define GCC_ATTRIBUTE(x) /* attribute not supported */
#endif
#if C_HAS_BUILTIN_EXPECT
#define GCC_UNLIKELY(x) __builtin_expect((x),0)
#define GCC_LIKELY(x) __builtin_expect((x),1)
#else
#define GCC_UNLIKELY(x) (x)
#define GCC_LIKELY(x) (x)
#endif
typedef double Real64;
#if SIZEOF_UNSIGNED_CHAR != 1
# error "sizeof (unsigned char) != 1"
#else
typedef unsigned char Bit8u;
typedef signed char Bit8s;
#endif
#if SIZEOF_UNSIGNED_SHORT != 2
# error "sizeof (unsigned short) != 2"
#else
typedef unsigned short Bit16u;
typedef signed short Bit16s;
#endif
#if SIZEOF_UNSIGNED_INT == 4
typedef unsigned int Bit32u;
typedef signed int Bit32s;
#elif SIZEOF_UNSIGNED_LONG == 4
typedef unsigned long Bit32u;
typedef signed long Bit32s;
#else
# error "can't find sizeof(type) of 4 bytes!"
#endif
#if SIZEOF_UNSIGNED_LONG == 8
typedef unsigned long Bit64u;
typedef signed long Bit64s;
#elif SIZEOF_UNSIGNED_LONG_LONG == 8
typedef unsigned long long Bit64u;
typedef signed long long Bit64s;
#else
# error "can't find data type of 8 bytes"
#endif
#if SIZEOF_INT_P == 4
typedef Bit32u Bitu;
typedef Bit32s Bits;
#else
typedef Bit64u Bitu;
typedef Bit64s Bits;
#endif