Commit Graph

494 Commits

Author SHA1 Message Date
Justin Kerk
039b1e0a12 Missing bits needed for Emscripten compile (nw) 2015-06-20 13:42:30 -07:00
Miodrag Milanovic
239c31b584 Made possible creation of custom builds with given list of drivers included.
Note that game list is parsed so if macros are used they will not be found.
example:
make SUBTARGET=cops -j9 DRIVERS=src/mame/drivers/cops.c
2015-06-20 18:20:44 +02:00
Miodrag Milanović
a208071e9d Merge pull request #202 from wallyweek/sdlinipath
Added new SDL_INI_PATH flag [Cesare Falco]
2015-06-07 06:22:12 +02:00
Julian Sikorski
9027ce9575 Added the ability to use system flac, jpeg, lua, sqlite3, portmidi and zlib based on wallyweek's work 2015-06-06 23:39:24 +02:00
Cesare Falco
6cd8271575 Added new SDL_INI_PATH flag 2015-06-06 16:32:04 +02:00
Julian Sikorski
13506b6b54 Added OPT_FLAGS back 2015-06-06 13:38:19 +02:00
Olivier Galibert
511762fa2d Allow compiling with shared libraries [O. Galibert]
Put SHLIB=1 in the main makefile, or on the command line.

The idea is to get a *way* faster link with symbols.  It works at
least on linux, with one annoying caveat: you have to be in the
build/projects/sdl/mame/gmake-linux directory to start mame
afterwards.  We're going to move some things around to be able to use
LD_LIBRARY_PATH or have it start as-is from the root.
2015-05-31 13:25:17 +02:00
Miodrag Milanovic
2923224b51 remove text (nw) 2015-05-31 11:50:06 +02:00
Miodrag Milanovic
548a982a3c Added skeleton support for Windows Phone and Windows Store - far from working(nw) 2015-05-28 20:06:33 +02:00
therealmogminer@gmail.com
bab674c78b Re-enable optimizing SYMBOLS=1 builds, nw 2015-05-27 19:55:45 +02:00
Miodrag Milanovic
2e772fb160 Added lua script/makefile changes to support building tests and portaudio (nw) 2015-05-27 15:02:33 +02:00
Miodrag Milanovic
c796237981 added cppcheck target in order to run analysis of code (nw) 2015-05-12 13:24:38 +02:00
Miodrag Milanovic
f2b21a51f8 Added doxygen documentation definition file and make target for it (nw) 2015-05-12 10:28:41 +02:00
Cesare Falco
7652d47d8e Add makefile switch to choose linking against bundled OR system expat library. 2015-05-11 09:37:45 +02:00
Miodrag Milanovic
6b48183ecf Fix layout gen (nw) 2015-05-09 16:13:15 +02:00
Miodrag Milanovic
4c7b1e344b No optimization for PROFILE otherwise symbols are not right (nw) 2015-05-07 11:59:05 +02:00
Miodrag Milanovic
58c32c97cf Added cleansrc to makefile (nw) 2015-04-25 14:15:00 +02:00
Miodrag Milanovic
84f7d24cfa Include make for regression tests (nw) 2015-04-23 14:07:14 +02:00
Miodrag Milanovic
3827f898ab Renamed to STRIP_SYMBOLS and made logic more clear (nw) 2015-04-22 14:23:49 +02:00
Miodrag Milanovic
073fd3f7d4 Added NO_STRIPPING option and enabled stripping of executable by default (nw) 2015-04-19 16:21:36 +02:00
Miodrag Milanovic
c3345bc74f better fix for windres (nw) 2015-04-15 09:39:43 +02:00
Miodrag Milanovic
f8a6adf13c fix 32bit compile (nw) 2015-04-15 09:23:09 +02:00
Miodrag Milanovic
f6fbdaa2e8 Added QT_HOME to support custom QT installations (nw) 2015-04-13 18:51:07 +02:00
Miodrag Milanovic
59e60e47df Added SHADOW_CHECK parameter so we can work on shadowing issues in our code (nw) 2015-04-11 08:46:02 +02:00
Miodrag Milanovic
32dc24420c Some changes for FreeBSD and Solaris, will be sent upstream as well (nw) 2015-04-10 12:37:34 +02:00
Miodrag Milanovic
2ffb66efe5 Placed back and fixed python availability check 2015-04-08 16:24:07 +02:00
Miodrag Milanovic
271e550b99 commented to test on MATE (nw) 2015-04-08 14:45:55 +02:00
Miodrag Milanovic
899f23a7ec Added PYTHON_EXECUTABLE to use differently named python executable(nw) 2015-04-08 14:19:43 +02:00
Miodrag Milanovic
10ed935e43 Create one more dir, should help MATE (nw) 2015-04-08 14:02:13 +02:00
Miodrag Milanovic
cc35d05ec0 added SEPARATE_BIN option to put executable files in bin folder and not in main (useful for continuous integration )(nw) 2015-04-08 08:52:02 +02:00
Miodrag Milanovic
c186a6c02c User configuration option can be now stored in useroptions.mak, so no need to alter main makefile (nw) 2015-04-07 14:19:54 +02:00
Miodrag Milanovic
209734925f Added FILTER_DEPS option for post compile filtering (nw) 2015-04-07 13:23:31 +02:00
Miodrag Milanovic
c69ec4dea6 Some vs2013-clang work (nw) 2015-04-06 18:50:42 +02:00
Miodrag Milanovic
13f137dde7 And one more (nw) 2015-04-06 16:33:21 +02:00
Miodrag Milanovic
1ff712db7a resurrected some more compile options (nw) 2015-04-06 16:27:14 +02:00
Miodrag Milanovic
70bab0a3d7 Fixed GENie building from main file (nw) 2015-04-05 08:23:57 +02:00
Vas Crabb
18ec0951bd Add a simple CoreAudio sound output module
It doesn't provide facilities for AU effects, although that could be
added pretty easily if someone wants to.  Advantages over SDL sound
output are simpler code and lower latency.
2015-04-05 01:48:35 +11:00
Miodrag Milanovic
3725b2fdc6 Moved MOC handling in lua (nw) 2015-04-04 16:42:58 +02:00
Miodrag Milanovic
db3cad9be9 remove not needed dirs from creation list (nw) 2015-04-04 15:48:29 +02:00
Miodrag Milanovic
ed0de1632e Moved plist generate to lua (nw) 2015-04-04 15:36:44 +02:00
Miodrag Milanovic
6f0fd1a366 Merge branch 'master' of https://github.com/mamedev/mame 2015-04-04 14:44:22 +02:00
Miodrag Milanovic
1026d09afa Moved creation of most non-layout files out of makefile (nw) 2015-04-04 14:44:06 +02:00
Vas Crabb
4cd434246d Bring back USE_SDL, CYGWIN_BUILD and malloc debugging for Windows OSD 2015-04-04 14:53:47 +11:00
Miodrag Milanovic
2df0d9deed Added generated m68kops files to tree, added makefile for developers working on core (nw) 2015-04-03 15:59:18 +02:00
Miodrag Milanovic
66cbe9eee4 removed os_version, since it is not used anymore (nw) 2015-04-03 15:30:56 +02:00
Miodrag Milanovic
69d936dfee skeleton for XCode support (nw) 2015-04-02 18:16:20 +02:00
Vas Crabb
d055017fa2 Make VERBOSE=1 propagate properly, add summary of user-configurable options 2015-04-03 00:45:49 +11:00
Vas Crabb
a63bd12019 Add back support for big endian targets including OSX-PPC 2015-04-02 22:26:35 +11:00
Miodrag Milanovic
33387befdb Ignore moc missing if MOC_FILES is empty (nw) 2015-04-01 12:09:38 +02:00
Vas Crabb
19d52cef70 Bring back NOASM 2015-04-01 16:12:03 +11:00
Vas Crabb
fe9339fa30 Add back DIRECTINPUT config for Windows OSD 2015-04-01 09:49:25 +11:00
Vas Crabb
d2b260f489 Better way to decide on whether to compile MOC 2015-04-01 08:42:04 +11:00
Vas Crabb
4d84885a29 Refactor out common OSD modules into separate lua file 2015-04-01 07:29:54 +11:00
Vas Crabb
b64e4ecee5 Restore DONT_USE_NETWORK 2015-04-01 03:44:38 +11:00
Vas Crabb
1f2763cc32 Restore SDL2_MULTIAPI 2015-04-01 03:03:18 +11:00
Vas Crabb
399a5f914b Get rid of unnecessary distro nonsense 2015-04-01 03:03:17 +11:00
Vas Crabb
6116f8c4fa Restore MESA_INSTALL_ROOT 2015-04-01 01:21:59 +11:00
Vas Crabb
dbc99041c3 Restore NO_OPENGL and USE_DISPATCH_GL 2015-04-01 01:21:59 +11:00
Vas Crabb
9a2c6d95c8 Restore NO_USE_MIDI and some more OS support from the old SDL makefile 2015-04-01 01:21:59 +11:00
Vas Crabb
ea348ff9f1 Bring back some SDL OSD configurability (WIP) 2015-03-31 20:46:51 +11:00
Vas Crabb
9a8109a63c Fix VERBOSE=1 for top-level makefile, fix always regenerating makefiles on Windows, make many variable in top-level makefile immediate rather than deferred 2015-03-31 15:13:12 +11:00
Miodrag Milanovic
a1369c9e30 Added dependency, so generation task wait for genie to be built (nw) 2015-03-30 14:37:10 +02:00
Vas Crabb
73deef44fa Fix UME build, allow custom target to inject stuff in main makefile 2015-03-30 18:30:29 +11:00
Vas Crabb
9a1a5c0513 Create directory for layouts for custom targets 2015-03-30 18:13:21 +11:00
Vas Crabb
f1523ec806 Make MinGW and OSX targets use dependencies for running genie
Use REGENIE=1 to force genie re-run without removing/touching files
Mark many targets as phony as appropriate
Improve situation for custom targets/OSDs
2015-03-30 14:19:54 +11:00
couriersud
84067e88ee linux-gmake, linux-gmake-clang: Only run genie build stage if scripts or
makefile has changed. 

The concept may easily be migrated to other builds. I just don't have
the time to test other builds right now.

The downside of the approach is that you have to force a build stage run
by deleting the build/projects folder. This however is a lot less
frequent than normal "make".
2015-03-30 00:50:56 +02:00
couriersud
2bf0febbae Merge branch 'master' of https://github.com/mamedev/mame.git
Conflicts:
	scripts/src/osd/sdl.lua
2015-03-29 23:08:49 +02:00
Miodrag Milanovic
2816588761 more OSX 10.10 fixes and fixed mistake with x64 (nw) 2015-03-29 19:10:34 +02:00
couriersud
4a6023e471 Added two more options to the build system:
USE_QT: Compile the QT Debugger. Default is USE_QT=1 (except macosx),
use USE_QT=0 to disable.
LDOPTS: Optional LDFLAGs.

These are mainly used for cross compilation. The following will compile
a windows SDL build without QT debugger on linux:

make 	TARGETOS=windows PTR64=1 OSD=sdl OS=linux \
		OVERRIDE_CC="@x86_64-w64-mingw32-gcc" \
		OVERRIDE_CXX="@x86_64-w64-mingw32-g++" \
		OVERRIDE_LD="x86_64-w64-mingw32-g++" \
		WINDRES="x86_64-w64-mingw32-windres" \
		USE_QT=0 \
		ARCHOPTS="-idirafter ${MINGW64DIR}/x86_64-w64-mingw32/include/  \
		-I${MINGW64DIR}/Qt/include/ -v" SUBTARGET=tiny MINGW64=/usr \ \
		LDOPTS="-L/mnt/mfhome/andre/mame/w64crosslibs"
2015-03-29 18:58:39 +02:00
Miodrag Milanovic
02f7ff9b90 fix genie location (nw) 2015-03-29 18:26:15 +02:00
Miodrag Milanovic
a600e61c58 Enforce OPTIMIZE = 3 for PROFILE builds, suggested by MG (nw) 2015-03-29 16:18:52 +02:00
Miodrag Milanovic
c95c00c8c0 Separate OS and TARGETOS recognition and supported more platforms (nw) 2015-03-29 15:17:21 +02:00
Vas Crabb
c878883667 Remove all the stuff that causes driver and emu sources to be compiled
differently with different OSDs
Switch back to building for all OSDs in common directory
Move more OSD-specific stuff into OSD scripts
It still isn't completely safe to be building all OSD into same directory
Common OSD "module" files, e.g. debuggers and renderers, build with
different options for each OSD.  It works at the moment, but you will end
up with slightly different executables depending on the order you build
OSDs.
2015-03-29 15:02:23 +11:00
couriersud
935c280b4d Fix cross-compile. The following will build mame64.exe on linux
make TARGETOS=windows PTR64=1 OSD=windows OS=linux VERBOSE=1 \
			OVERRIDE_CC="@ccache x86_64-w64-mingw32-gcc" \
			OVERRIDE_CXX="@ccache x86_64-w64-mingw32-g++" \
			OVERRIDE_LD="x86_64-w64-mingw32-g++" \
			WINDRES="x86_64-w64-mingw32-windres" \
			MINGW64=/usr $*
2015-03-29 03:29:22 +02:00
Miodrag Milanovic
bb9140a109 Added support for per-OSD mak files [qmc2] 2015-03-28 14:27:39 +01:00
Miodrag Milanovic
603e5ebb1a put common parameters into PARAMS (nw) 2015-03-28 12:50:15 +01:00
Miodrag Milanovic
dfa73bab4f join these into one (nw) 2015-03-28 11:33:59 +01:00
Miodrag Milanovic
ce5ccff643 added NOWERROR support (nw) 2015-03-28 07:03:44 +01:00
Miodrag Milanovic
cf02c07fda Merge branch 'master' of https://github.com/mamedev/mame 2015-03-28 06:57:07 +01:00
Vas Crabb
eca145893d Generate project files into OSD subdir to facilitate building multiple OSDs 2015-03-28 15:38:12 +11:00
Miodrag Milanovic
ae98425a87 enable partial support for compile on some other platforms (nw) 2015-03-27 17:30:45 +01:00
Miodrag Milanovic
a539224998 propagated USE_BGFX for unsupported platforms (nw) 2015-03-27 17:19:57 +01:00
Miodrag Milanovic
fdd61e7569 renamed CC to OVERRIDE_CC and same for CXX and LD since otherwise values sent to GENie are makefile defaults and they always overwrite values in built scripts (nw) 2015-03-27 15:11:41 +01:00
Miodrag Milanovic
5877841729 fixed OSX build with Clang on 10.7.x (nw)
Removed internal CC and LD  settings since it's not
needed and can be overwritten  externally now
2015-03-27 14:36:13 +01:00
Miodrag Milanovic
05516f50c9 fixed propagated version 2015-03-27 14:04:42 +01:00
Miodrag Milanovic
103a675d4a PTR64=0 is x86, PTR64=1 is x64 (nw) 2015-03-27 08:16:44 +01:00
Miodrag Milanovic
3fc637d9c6 Create makefiles for targets per subdir (nw) 2015-03-27 08:06:15 +01:00
couriersud
10f36fa302 Allow ARCHOPTS to contain whitespace. (nw) 2015-03-26 23:53:16 +01:00
couriersud
ed869da9db Make GCC_VERSION work with $(CC). (nw) 2015-03-26 22:40:11 +01:00
Miodrag Milanovic
3a3fb1dc9d fix for later OSX (nw) 2015-03-26 19:07:46 +01:00
Miodrag Milanovic
604d83b1e3 Added CXX and fixed LD [qmc2] (nw) 2015-03-26 15:49:06 +01:00
Miodrag Milanovic
b4d9920e10 More parameter handling (nw) 2015-03-26 15:45:59 +01:00
Miodrag Milanovic
6abf77a172 enable whitespace in CC and LD (nw) 2015-03-26 14:50:03 +01:00
Miodrag Milanovic
3b8cab2802 fix order (nw) 2015-03-26 14:47:10 +01:00
Miodrag Milanovic
726de20508 Made CC and LD override possible (nw) 2015-03-26 14:43:39 +01:00
Miodrag Milanovic
323d87af33 check generated files even if just compiling (nw) 2015-03-26 14:28:13 +01:00
Miodrag Milanovic
5310d041d5 added distro support for linux (nw) 2015-03-26 14:01:14 +01:00
Vas Crabb
edab1abaaf Make some lines less confusingly long, remove a stray paren, add rule to generate Info.plist back for OSX 2015-03-26 22:44:01 +11:00
Miodrag Milanovic
ca485faa1b made possible architecture override with PTR64=1 param (nw) 2015-03-26 11:30:45 +01:00
Miodrag Milanovic
53340a5f89 changed .build to build to be visible (nw) 2015-03-26 11:17:59 +01:00
Miodrag Milanovic
c869696a3f Fix clang and one more warning added 2015-03-26 10:20:29 +01:00
Miodrag Milanovic
9358a61e7a made tools to be built with TOOLS=1 param (nw) 2015-03-26 09:35:10 +01:00
Miodrag Milanovic
51968eddb3 fixed compiling ldplayer (nw) 2015-03-26 09:20:27 +01:00
Miodrag Milanovic
f76d59c41d Moved build system to GENie [Miodrag Milanovic]
make TARGET=mess -j19

will generate all needed files and build MESS, while developing you can use

make TARGET=mess COMPILE=1 -j19
to prevent rebuilding of make files.

Build system have automatic generate of dependencies so will do incremental builds fine.

make clean
will remove all generated files/projects and obj files
2015-03-26 09:00:39 +01:00
Vas Crabb
165e3c2ade FASTDEBUG should be a 'sub-option' of DEBUG 2015-03-21 00:18:58 +11:00
Vas Crabb
af7b120d82 OS/2 patches for SDLMAME 0.159 [KO Muyng-Hun] 2015-03-15 22:57:16 +11:00
Justin Kerk
e7e05efea4 Fix tiny build when there are no buses (nw) 2015-02-23 07:26:41 -08:00
Vas Crabb
7b83547d61 Fix build on OSX 2015-02-22 21:11:59 +11:00
couriersud
46b916d7b1 Fix ldplayer linking. (nw) 2015-02-22 02:31:31 +01:00
Vas Crabb
ff1b484599 Re-link emulator binary if version source file changes 2015-02-21 18:17:19 +11:00
Miodrag Milanovic
9f9d4fd250 makelist implementation in python (nw) 2015-02-13 13:40:49 +01:00
Oliver Stöneberg
a4c8ca2c25 fixed makefile (nw) 2015-02-05 15:40:53 +01:00
Oliver Stöneberg
af64bda24d added makefile define CPP11 to compile C++ code as C++11 [Oliver Stöneberg] 2015-02-05 14:40:19 +01:00
couriersud
06b848185f Changes to the build system:
- BGFX library is set in windows.mak and sdl.mak now. This ensures the
library is only build when needed. 
  This is necessary to be able to build MAME on systems without opengl
support.
  
Support was added for an optional BIN location for executables. The
default is still the root folder. Setting BIN=bin e.g. will put
executables in bin.
2015-02-01 19:26:10 +01:00
Miodrag Milanovic
e68d22d779 Added building of BGFX library (nw) 2015-02-01 10:26:09 +01:00
Justin Kerk
31bc7f4bbb Work around Emscripten linking issues by avoiding ar altogether (nw)
See https://github.com/kripken/emscripten/issues/2619
2015-01-31 23:13:50 -08:00
Cesare Falco
a49eee8559 *nix: Fixed linking tools against system libraries 2015-01-29 12:55:14 +01:00
Justin Kerk
f56e1f309e More JSMESS breakage (nw) 2015-01-28 15:47:03 +00:00
Oliver Stöneberg
1e29bb1347 moved some clang-specific stuff from makefile to src/build/flags_clang.mak (nw) 2015-01-27 23:27:08 +01:00
couriersud
36c9bba47d Solaris 11 build support. [Couriersud] 2015-01-25 22:01:16 +01:00
Miodrag Milanovic
fb4695be0a Made all compile for Lua 5.3 (nw) 2015-01-13 18:44:26 +01:00
Miodrag Milanovic
736cc5469d Use $(INCPATH) only where needed 2015-01-13 11:50:42 +01:00
couriersud
d9e4bfacb3 Remove some "@". These should be used in the command definition. 2015-01-12 02:10:57 +01:00
Miodrag Milanovic
022e6c7a5b Fixed LUA compile 2015-01-10 15:06:17 +01:00
Miodrag Milanovic
61f7cd05df Added integral source of sqlite3 to 3rdparty (nw) 2015-01-10 13:25:50 +01:00
Miodrag Milanovic
b0640c888b Added integral libjpeg 8c to 3rdparty folder (nw) 2015-01-10 12:32:56 +01:00
Miodrag Milanovic
e427c5471b Fixed include paths for 3rdparty libs (nw) 2015-01-10 12:06:16 +01:00
Miodrag Milanovic
31251f6c09 Added integral version of zlib in 3rdparty folder (nw) 2015-01-10 11:51:23 +01:00
Miodrag Milanovic
fb5c151082 Converted png2bcd tool to python [Andrew Gardner] 2015-01-10 11:35:34 +01:00
couriersud
799d10beb3 Move definition of -DOSD_WINDOWS, -DOSD_SDL and -DOSD_MINI into
$(OSD).mak. Added sanity check to makefile. [Couriersud]
2015-01-09 03:25:46 +01:00
Oliver Stöneberg
8ef233f78a proper fix for PROFILE=1 with clang (nw)
png2bdc was crashing because an implicitly enabled optimizations - see
http://llvm.org/bugs/show_bug.cgi?id=14713
2015-01-08 10:21:18 +01:00
couriersud
25a3c8f54d Fixed typo in last commit. (nw) 2015-01-08 02:17:39 +01:00
couriersud
8b20927852 Changed error about wrong OSD to a warning. Non supported builds can now
add the proper define (OSD_WINDOWS, OSD_MINI, OSD_SDL, or
OSD_my_own_OSD) in my_own_OSD.mak (nw)
2015-01-08 01:47:27 +01:00
Oliver Stöneberg
d3b6b803f3 fixed non-DEBUG PROFILE=1 build with clang (nw) 2015-01-07 15:58:40 +01:00
Robert
53ab5084a4 fixed compile of derivatives (nw) 2015-01-07 22:18:49 +11:00
couriersud
2c4b785554 Merged winwork and sdlwork into osd/modules/sync/work_osd.c. Moved
miniwork.c to osd/modules/sync/work_mini.c
The makefile now adds either a OSD_SDL, OSD_WINDOWS or OSD_MINI 
define to DEFS. This was necessary so that work_osd.c could determine
the build on a OSD level. (nw)
2015-01-06 02:18:38 +01:00
Ramiro Polla
c26b76f6b7 Run build tools based on build OS 2015-01-04 16:23:45 +01:00
Oliver Stöneberg
13ffe9965c final clarification of disabled UndefinedBehaviorSanitizer checks (nw) 2014-12-30 16:31:07 +01:00
Oliver Stöneberg
d9a6a2e914 more clarification on disabled UndefinedBehaviorSanitizer checks (nw) 2014-12-30 15:38:40 +01:00
Oliver Stöneberg
ace2339469 small clarification on disabled UndefinedBehaviorSanitizer checks (nw) 2014-12-30 15:17:16 +01:00
Miodrag Milanovic
6239845086 Better x64 detection for windows 2014-12-23 16:18:20 +01:00
Miodrag Milanovic
09a636c2ff Converted file2str to python (nw) 2014-12-15 15:19:55 +01:00
Justin Kerk
5e52630af1 Build fixes for Emscripten (nw) 2014-11-05 23:12:54 -08:00
Oliver Stöneberg
d967182fa7 enabled some more ubsan checks (nw) 2014-10-23 09:58:45 +02:00
Oliver Stöneberg
7cedfb4b51 do not set define HAS_OPENMP when makefile define OPENMP is set - fixes warning about macro redefinition 2014-10-21 11:19:49 +02:00
arbee
b1efba0d14 SDL: SDL2 is now the default except for OS/2 builds. [R. Belmont]
USE_NETWORK Ethernet emulation is now enabled by default as per the roadmap. [R. Belmont]
2014-10-20 20:42:20 -04:00
Oliver Stöneberg
e2a6faf36d added makefile variable OPENMP to enable usage of OpenMP (includes vconv support of -fopenmp) [Oliver Stöneberg] 2014-10-01 09:17:09 +00:00
R. Belmont
306a90c1f4 Allow use of external SQLite3 [Cesare Falco] 2014-08-15 03:26:32 +00:00
Justin Kerk
f6717f5eed Work around linking issue with JSMESS (nw)
See https://github.com/kripken/emscripten/issues/2619 for discussion
2014-08-05 01:41:02 +00:00
Justin Kerk
42eac870ea spelling (nw) 2014-08-03 09:06:13 +00:00
Miodrag Milanovic
991212c069 -Created machine_manager as singleton class that contains (for now) one running machine [Miodrag Milanovic]
-Updated LUA engine to run in machine_manager instead of being initialized per machine
-Added "-console" option so emulator can be started with LUA enabled console
-Update LUA to version 5.2.3 
-Enabled SQLite3 to be compiled and added LUA module for it
2014-06-06 10:11:31 +00:00
Miodrag Milanovic
ac6bbc2dd1 ah forgot to commit this (nw) 2014-06-04 13:54:36 +00:00
Oliver Stöneberg
833c255154 use -fno-optimize-sibling-calls with SYMBOLS=1 for more complete stack traces with optimizations (nw) 2014-05-17 19:47:30 +00:00
Oliver Stöneberg
f7cc234d6e enabled rgbsse.h for Visual Studio 64-bit builds as well and use rgbgen.h for all DEBUG builds since this is the fastest combination [Oliver Stöneberg] 2014-05-07 14:23:54 +00:00
Miodrag Milanovic
0f294922b2 small fix for makemak (nw) 2014-05-06 09:10:33 +00:00
R. Belmont
f16fc05394 makefile: don't get the nodename when auto-detecting build parameters. [R. Belmont, based on a patch by robert_s] 2014-05-04 00:17:50 +00:00
Miodrag Milanovic
f8f3d68187 -Made osd_interface base class for OSD and moved initialization for each subsystem in it as virtual calls. (nw)
-Moved midi handling in base class
-Cleaned running_machine of information of next machine
-All is cleaned after exiting of running_machine so debugger window is removed as well till next machine is started
-Made osdmini to compile
2014-04-25 07:31:27 +00:00
Oliver Stöneberg
84614d94f4 added makefile define SSE2 to enable specially optimized code [Oliver Stöneberg] 2014-04-07 09:28:49 +00:00
Oliver Stöneberg
6477207016 disabled another check with SANITIZE=undefined (nw) 2014-03-11 12:45:14 +00:00
Miodrag Milanovic
d00673890d For now keep only bus part in separate library to make visual studio builds possible (nw) 2014-03-08 18:39:50 +00:00
Oliver Stöneberg
2726675591 moved compiler-specific warning generation to shared files (nw) 2014-03-02 16:17:12 +00:00
Oliver Stöneberg
b1ee97db4c do not optimize SANITIZE builds by default (nw) 2014-03-02 15:30:13 +00:00
Oliver Stöneberg
a78097b9b3 disabled more checks with SANITIZE=undefined for now (nw) 2014-02-26 16:19:37 +00:00
Oliver Stöneberg
cb3b1aae36 suppress alignment errors with SANITIZE=undefined for now (nw) 2014-02-26 00:49:47 +00:00
Oliver Stöneberg
bf262c724e always enable SYMBOLS in case of SANITIZE (nw) 2014-02-21 10:28:19 +00:00
Oliver Stöneberg
982e007ab3 fixed compilation with older clang versions (nw) 2014-02-20 20:01:35 +00:00
Oliver Stöneberg
9fa82ef4c3 first round of clang 3.4 fixes for MESS (nw) 2014-02-20 17:50:51 +00:00
Justin Kerk
7a9c6bf116 Emscripten makefile stuff (nw) 2013-11-03 22:52:48 +00:00
Justin Kerk
e7dd6b7b78 Fix cross build makefile define to match the other makefiles [John Vilk] (nw) 2013-11-03 02:49:21 +00:00
Robbbert
59b41d220f Documented the network compile option (nw) 2013-09-08 05:51:29 +00:00
Oliver Stöneberg
eb91a212ac added makefile define DEPRECATED to show warnings about deprecated code / added ATTR_DEPRECATED / flag some stuff in diexec.h as deprecated (nw) 2013-08-22 09:40:15 +00:00
Miodrag Milanovic
f1b81c7e98 Initial commit of internal web server, mostly to check compiling on various platforms (nw) 2013-08-07 07:20:01 +00:00
Oliver Stöneberg
e533ab056f added makefile define FASTDEBUG to disable some debug-specific stuff, that is causing performance hits (for e.g. profiling) [Oliver Stöneberg] 2013-08-02 13:43:10 +00:00
Oliver Stöneberg
171d43ead6 removed Visual Studio specific makefile define MAXOPT in favor of adding more generic define LTO [Oliver Stöneberg] 2013-08-02 09:48:25 +00:00
Oliver Stöneberg
6faeb5b078 cleaner way of disabling memory initialization with MemorySanitizer (nw) 2013-06-25 12:18:05 +00:00
Oliver Stöneberg
170a4c996a added some flags for SANITIZE=memory (nw) 2013-06-25 11:40:17 +00:00
Miodrag Milanovic
1615025734 makemak wip (nw) 2013-06-21 07:22:13 +00:00
Ryan Holtz
bb786b81fe Make FULLNAME use ?= instead of =, allows users to override the final executable name from the command line (nw) 2013-06-19 01:41:40 +00:00
Miodrag Milanovic
6fbd776a21 put optional cpu, video, sound and machine cores in one library in order to prevent linking issues on small builds, also created temp solution for subtargets for arcade,fruit and pinball machines (nw) 2013-06-17 10:27:14 +00:00
smf-
e48c8d3c11 Build dependencies for files in src/emu [smf] 2013-06-14 10:49:25 +00:00
Oliver Stöneberg
d9c98de098 some MemorySanitizer preparations:
- put memory initialization in src/emu/emualloc.c behind NO_MEMORY_INITIALIZATION define
- disable memory initialization when msan is used
- use origin tracking for msan when clang is used
2013-06-11 13:01:11 +00:00
Oliver Stöneberg
28aff9d786 removed obsolete "tests" target from makefile (nw) 2013-06-11 12:58:47 +00:00
smf-
dd3135cc47 uncommented it now that the .mak file is in (nw) 2013-06-10 23:37:34 +00:00
Curt Coder
c87dab4a64 Fixed build temporarily. (nw) 2013-06-10 21:49:51 +00:00
smf-
603f354635 Added support to jedutil for decoding 82S153, PLS153 & CK2605 [Kevin Eshbach, Charles MacDonald] 2013-06-10 19:33:46 +00:00
Miodrag Milanovic
6f2f772e70 Moved video and machine part of emu in separate mak files and libraries (nw) 2013-06-04 13:17:29 +00:00
Miodrag Milanovic
4a09e17523 LUA 5.2.2 added to libraries, did basic hookup of LUA VM into running machine [Miodrag Milanovic]
added -script (or -autoboot_script) command to execute LUA script after driver startup
2013-05-09 13:57:44 +00:00
Oliver Stöneberg
89df8ed41e added additional compiler and linker flags necessary for ThreadSanitizer (nw) 2013-05-04 09:54:42 +00:00
Oliver Stöneberg
e7c50f6019 added makefile define SANITIZE to specify the sanitizer to use (supported by latest GCC and clang versions) / added additional library necessary to link with clang on linux (nw) 2013-05-04 09:48:04 +00:00
Oliver Stöneberg
9ac5ce729c disabled another clang warning for now (nw) 2013-03-20 00:36:26 +00:00
Oliver Stöneberg
25c9594626 disabled another clang warning for now (nw) 2013-03-09 10:33:40 +00:00
Curt Coder
50f5a58821 Delete dependency makefiles on clean. (nw) 2013-02-09 16:32:21 +00:00
Oliver Stöneberg
bbfb99e515 removed additional DEBUG flags again - they are causing too much problems (nw) 2013-02-01 22:24:03 +00:00
Oliver Stöneberg
582ec9dce4 fixed typo in previous commit / fixed DEBUG compilation of pmwinmm.c and zlib 2013-02-01 08:31:09 +00:00
Oliver Stöneberg
55c4155a19 set proper DEBUG defines in makefile (nw) 2013-02-01 08:00:12 +00:00
Oliver Stöneberg
4a3e6c608c disabled some clang warning for now to improve out-of-the-box experience (nw) 2013-01-17 11:36:58 +00:00
Oliver Stöneberg
0c33249b57 fixed tests target for non-Windows platforms (nw) 2013-01-09 19:46:18 +00:00
Oliver Stöneberg
57c86b0b3f optimized tests target (nw) 2013-01-09 05:52:17 +00:00
Oliver Stöneberg
585ecc7c2e first version of chdman unit test / fixed dependies of tests target (nw) 2013-01-05 16:17:42 +00:00
Oliver Stöneberg
e18a790e69 added a "tests" target to the makefile / added chdman unittest placeholders (nw) 2013-01-05 14:20:15 +00:00
Oliver Stöneberg
85568b3f92 added CPPCHECK makefile define - it contains the path to the cppcheck binary (nw) 2013-01-05 12:37:58 +00:00
Oliver Stöneberg
ef2a555302 forgot to change library name in makefile (nw) 2013-01-01 21:01:14 +00:00
R. Belmont
13c3e056aa Enable compiling PortMidi (nw)
Tested on: Linux x64, Mac OS X 10.8, Windows 8 x64 w/latest toolchain for both OSD=windows and OSD=sdl.  MIDI should auto-disable on other OSes (*BSD) but there may be problems.  Works fine on Linux when set to use the system's copy of the library as well, which many distros prefer.
2013-01-01 16:58:48 +00:00
Oliver Stöneberg
ab9137d652 reverted makefile change (nw) 2012-12-26 14:15:59 +00:00
Oliver Stöneberg
d8929ea694 removed duplicated build rule from makefile (nw) 2012-12-26 14:00:42 +00:00
R. Belmont
a9116a7973 SDL: Experimental Qt-based debugger [Andrew Gardner, R. Belmont] 2012-12-25 03:51:20 +00:00
Jonathan Gevaryahu
a73b2224f3 Fixed python to use env variable as described in root makefile; fixes builds on windows with spaces in the path. [Balrog, Lord Nightmare] 2012-12-06 22:12:59 +00:00
Miodrag Milanovic
fc20796818 Fix to make "make depend" work if on empty obj tree (no whatsnew) 2012-09-08 13:58:11 +00:00
Miodrag Milanovic
1f77747f86 made make depend to be defined per target to support special cases (no whatsnew) 2012-09-07 13:03:46 +00:00
Miodrag Milanovic
5f995d42a4 Added proper name of generated mak (no whatsnew) 2012-08-23 12:59:09 +00:00
Miodrag Milanovic
fc915eb2ff Made "make depend" to create files per target, also added "make depend_ume" as new target in case ume is used, since then it becomes complicated (no whatsnew) 2012-08-23 12:56:20 +00:00
Angelo Salese
2db7d3c1a9 A small unused code regarding ext i/o (not hooked because it then talks with the SCSI a lot) 2012-08-23 03:18:14 +00:00
Angelo Salese
5f1eb8b0bb Fixed Pad latch 2012-08-23 02:47:53 +00:00
smf-
68ba08589d swapped order of version.o linking for consistency 2012-06-11 18:55:35 +00:00
smf-
a2fa173090 stop repeated make all runs from toggling between building chdman & mame due to both being dependent on version.o, which is always recreated when either exe is built. 2012-06-11 18:11:48 +00:00
R. Belmont
c394be2133 Always miss a file (nw) 2012-05-28 18:16:17 +00:00
Miodrag Milanovic
07ee4afaba objdump doesn't work with VS binaries, so do not run it by Firewave (no whatsnew)
fixed uninitialized field in ioport_field.m_chars (fixes stack 
corruption with three PORT_CHAR definitions) / added some sanity 
checks for PORT_CHAR adding and lookup by Firewave

Intel 28F320J3D flash support by Lukasz Markowski

snapquik.c  fixed uninitialized variable that causes random assertion 
failure by Sandro Ronco
2012-05-15 06:56:17 +00:00
Aaron Giles
2a88e54278 ioport.c C++ conversion. Mostly internal changes, with no
intended differences from previous behavior. For drivers,
the main change is that input_port_read() no longer exists.
Instead, the port must be fetched from the appropriate device,
and then read() is called.

For member functions, this is actually simpler/cleaner:

  value = ioport("tag")->read()

For legacy functions which have a driver_data state, it goes:

  value = state->ioport("tag")->read()

For other legacy functions, they need to fetch the root device:

  value = machine.root_device().ioport("tag")->read()

The other big change for drivers is that IPT_VBLANK is gone.
Instead, it has been replaced by a device line callback on the
screen device. There's a new macro PORT_VBLANK("tag") which
automatically points things to the right spot.

Here's a set of imperfect search & replace strings to convert
the input_port_read calls and fix up IPT_VBLANK:

input_port_read( *\( *)(machine\(\)) *, *([^)]+ *\))
ioport\1\3->read\(\)

input_port_read( *\( *)(.*machine[()]*) *, *([^)]+ *\))
\2\.root_device\(\)\.ioport\1\3->read\(\)

(state = .*driver_data[^}]+)space->machine\(\)\.root_device\(\)\.
\1state->

(state = .*driver_data[^}]+)device->machine\(\)\.root_device\(\)\.
\1state->

input_port_read_safe( *\( *)(machine\(\)) *, *([^,]+), *([^)]+\))
ioport\1\3->read_safe\(\4\)

IPT_VBLANK( *\))
IPT_CUSTOM\1 PORT_VBLANK("screen")
2012-05-03 09:00:08 +00:00
Michaël Banaan Ananas
651da72fe8 optimized optimization options :p 2012-04-29 21:47:31 +00:00
R. Belmont
647311cde1 Allow compilation with compatible system-installed versions of libjpeg and libflac [wallyweek, R. Belmont] 2012-03-29 21:56:18 +00:00
Miodrag Milanovic
97c3d0cb39 - removed need for *_dev.lst files [Miodrag Milanovic]
- enforced short names for slot card devices
- updated validation, romverify and listxml output accordingly
- slotoptions now also contain shortnames so it's possible to link
  slot option and device
2012-02-23 14:19:37 +00:00
Aaron Giles
f0823886a6 Major CHD/chdman update. The CHD version number has been increased
from 4 to 5. This means any diff CHDs will no longer work. If you
absolutely need to keep the data for any existing ones you have,
find both the diff CHD and the original CHD for the game in question 
and upgrade using these commands:

  rename diff\game.dif diff\game-old.dif
  chdman copy -i diff\game-old.dif -ip roms\game.chd -o diff\game.dif -op roms\game.chd -c none

Specifics regarding this change:

Defined a new CHD version 5. New features/behaviors of this version:
  - support for up to 4 codecs; each block can use 1 of the 4
  - new LZMA codec, which tends to do better than zlib overall
  - new FLAC codec, primarily used for CDs (but can be applied anywhere)
  - upgraded AVHuff codec now uses FLAC for encoding audio
  - new Huffman codec, used to catch more nearly-uncompressable blocks
  - compressed CHDs now use a compressed map for significant savings
  - CHDs now are aware of a "unit" size; each hunk holds 1 or more units
     (in general units map to sectors for hard disks/CDs)
  - diff'ing against a parent now diffs at the unit level, greatly
     improving compression

Rewrote and modernized chd.c. CHD versions prior to 3 are unsupported,
and version 3/4 CHDs are only supported for reading. Creating a new
CHD now leaves the file open.  Added methods to read and write at the 
unit and byte level, removing the need to handle this manually. Added
metadata access methods that pass astrings and dynamic_buffers to
simplify the interfaces. A companion class chd_compressor now
implements full multithreaded compression, analyzing and compressing
multiple hunks independently in parallel. Split the codec 
implementations out into a separate file chdcodec.*

Updated harddisk.c and cdrom.c to rely on the caching/byte-level read/
write capabilities of the chd_file class. cdrom.c (and chdman) now also 
pad CDs to 4-frame boundaries instead of hunk boundaries, ensuring that
the same SHA1 hashes are produced regardless of the hunk size.

Rewrote chdman.exe entirely, switching from positional parameters to
proper options. Use "chdman help" to get a list of commands, and
"chdman help <command>" to get help for any particular command. Many 
redundant commands were removed now that additional flexibility is
available. Some basic mappings:

  Old: chdman -createblankhd <out.chd> <cyls> <heads> <secs>
  New: chdman createhd -o <out.chd> -chs <cyls>,<heads>,<secs>

  Old: chdman -createuncomphd <in.raw> <out.chd> ....
  New: chdman createhd -i <in.raw> -o <out.chd> -c none ....

  Old: chdman -verifyfix <in.chd>
  New: chdman verify -i <in.chd> -f

  Old: chdman -merge <parent.chd> <diff.chd> <out.chd>
  New: chdman copy -i <diff.chd> -ip <parent.chd> -o <out.chd>

  Old: chdman -diff <parent.chd> <compare.chd> <diff.chd>
  New: chdman copy -i <compare.chd> -o <diff.chd> -op <parent.chd>

  Old: chdman -update <in.chd> <out.chd>
  New: chdman copy -i <in.chd> -o <out.chd>

Added new core file coretmpl.h to hold core template classes. For now
just one class, dynamic_array<> is defined, which acts like an array
of a given object but which can be appended to and/or resized. Also
defines dynamic_buffer as dynamic_array<UINT8> for holding an 
arbitrary buffer of bytes. Expect to see these used a lot.

Added new core helper hashing.c/.h which defines classes for each of
the common hashing methods and creator classes to wrap the 
computation of these hashes. A future work item is to reimplement
the core emulator hashing code using these.

Split bit buffer helpers out into C++ classes and into their own
public header in bitstream.h.

Updated huffman.c/.h to C++, and changed the interface to make it
more flexible to use in nonstandard ways. Also added huffman compression
of the static tree for slightly better compression rates.

Created flac.c/.h as simplified C++ wrappers around the FLAC interface.
A future work item is to convert the samples sound device to a modern
device and leverage this for reading FLAC files.

Renamed avcomp.* to avhuff.*, updated to C++, and added support for
FLAC as the audio encoding mechanism. The old huffman audio is still
supported for decode only.

Added a variant of core_fload that loads to a dynamic_buffer.

Tweaked winwork.c a bit to not limit the maximum number of processors
unless the work queue was created with the WORK_QUEUE_FLAG_HIGH_FREQ
option. Further adjustments here are likely going to be necessary.

Fixed bug in aviio.c which caused errors when reading some AVI files.
2012-02-16 09:47:18 +00:00
R. Belmont
d75dbab0de Add LZMA codec and .7z container support [David Haywood, R. Belmont] 2012-02-12 17:55:51 +00:00
Angelo Salese
39e3b5398b Doesn't compile, red card for ya 2012-02-05 16:54:00 +00:00
Aaron Giles
d60015dc9d Add -Woverloaded-virtual to catch mismatched overloaded
function signatures.
2012-01-25 05:11:03 +00:00
Aaron Giles
ed0207f126 Move devices into a proper hierarchy and handle naming
and paths consistently for devices, I/O ports, memory
regions, memory banks, and memory shares. [Aaron Giles]

NOTE: there are likely regressions lurking here, mostly
due to devices not being properly found. I have temporarily
added more logging to -verbose to help understand what's
going on. Please let me know ASAP if anything that is being
actively worked on got broken.

As before, the driver device is the root device and all 
other devices are owned by it. Previously all devices
were kept in a single master list, and the hierarchy was
purely logical. With this change, each device owns its
own list of subdevices, and the hierarchy is explicitly
manifest. This means when a device is removed, all of its
subdevices are automatically removed as well.

A side effect of this is that walking the device list is
no longer simple. To address this, a new set of iterator
classes is provided, which walks the device tree in a depth
first manner. There is a general device_iterator class for
walking all devices, plus templates for a device_type_iterator
and a device_interface_iterator which are used to build
iterators for identifying only devices of a given type or
with a given interface. Typedefs for commonly-used cases
(e.g., screen_device_iterator, memory_interface_iterator)
are provided. Iterators can also provide counts, and can
perform indexed lookups.

All device name lookups are now done relative to another 
device. The maching_config and running_machine classes now
have a root_device() method to get the root of the hierarchy. 
The  existing machine->device("name") is now equivalent to
machine->root_device().subdevice("name").

A proper and normalized device path structure is now
supported. Device names that start with a colon are
treated as absolute paths from the root device. Device
names can also use a caret (^) to refer to the owning
device. Querying the device's tag() returns the device's
full path from the root. A new method basetag() returns
just the final tag.

The new pathing system is built on top of the 
device_t::subtag() method, so anyone using that will 
automatically support the new pathing rules. Each device
has its own internal map to cache successful lookups so
that subsequent lookups should be very fast.

Updated every place I could find that referenced devices,
memory regions, I/O ports, memory banks and memory shares
to leverage subtag/subdevice (or siblingtag/siblingdevice
which are built on top).

Removed the device_list class, as it doesn't apply any
more. Moved some of its methods into running_machine
instead.

Simplified the device callback system since the new 
pathing can describe all of the special-case devices that
were previously handled manually.

Changed the core output function callbacks to be delegates.

Completely rewrote the validity checking mechanism. The
validity checker is now a proper C++ class, and temporarily
takes over the error and warning outputs. All errors and 
warnings are collected during a session, and then output in
a consistent manner, with an explicit driver and source file
listed for each one, as well as additional device and/or
I/O port contexts where appropriate. Validity checkers 
should no longer explicitly output this information, just
the error, assuming that the context is provided.

Rewrote the software_list_device as a modern device, getting
rid of the software_list_config abstraction and simplifying
things.

Changed the way FLAC compiles so that it works like other
external libraries, and also compiles successfully for MSVC
builds.
2012-01-24 20:18:55 +00:00
R. Belmont
8703f92910 Added FLAC (lossless audio) codec support plus experimental hooks in samples and chdman. Bumped up CHD-CD hunk size to get better compression ratios on both zlib and flac. [David Haywood, R. Belmont] 2012-01-22 18:38:22 +00:00
R. Belmont
f6b2c736c4 Add libjpeg; converted Sliver to decompress pictures on the fly [David Haywood, R. Belmont] 2012-01-16 17:06:42 +00:00
Miodrag Milanovic
cda1b4765c Commented (per Kale's request) not removed libcothread usage in core (requires clean build), (no whatsnew)
We can safely remove comments and cothread.* from /emu and /lib/cothread if it's confirmed way to go
2011-11-30 16:00:43 +00:00
Miodrag Milanovic
c9891545fd Changed makefile in order to make sequential compilation of MAME and MESS and their sub targets less resource demanding [Miodrag Milanovic] 2011-11-22 09:10:58 +00:00
Miodrag Milanovic
be8bd3552f Move per emulator constants info into separate class [Miodrag Milanovic]
out of log:
This way it is possible to link two or more separated executables with different 
copyright/xml out/name/... in one compilation, just one step closer...
2011-11-17 10:02:55 +00:00
Angelo Salese
ef6b961f2c Obviously makefile isn't supposed to change ... 2011-11-09 21:40:29 +00:00
Angelo Salese
28b51c152b Implemented FRC hook-up to Sega System 24 HW, fixes missing SFXs to Bonanza Bros. [Angelo Salese, Phil Bennett, Charles MacDonald] 2011-11-09 21:39:59 +00:00
R. Belmont
fd0be74ab4 SDL: Add TAP/TUN networking capability and shell script for configuration [Carl] 2011-10-31 01:30:24 +00:00
Miodrag Milanovic
3bdfb55b35 - Updated romload so devices are loaded from separate files [Miodrag Milanovic]
- Removed LOADBYNAME, since it is deprecated by using per device rom load_software_part_region

- Created makedev tool to generate array of devices, and created lst file according to current devices usage.

- Changed listxml command to output device roms too
2011-08-02 15:09:21 +00:00
Aaron Giles
f8adbd63fa Added byuu's cothread library, along with a wrapper class. Switched to
using one cothread for each executable device. This functionality is
strictly internal and should result in no changes in scheduling
behavior. However, it now becomes possible to exit out of a device's 
execution in the midst of an instruction by calling 
machine().scheduler().make_active(). Note that this is somewhat dangerous
for cores that have logic at the start of their execute loop to check for
interrupts or other conditions, as those checks will be skipped upon
resume, so consider this sort of early exiting to be highly experimental 
for now. [Aaron Giles, Miodrag Milanovic, byuu]
2011-06-25 07:03:07 +00:00
Scott Stone
dfa747f471 Removed duplicated includes from INCPATH. [Oliver Stoneberg] 2011-06-15 21:21:51 +00:00
Miodrag Milanovic
62d841c270 Moved format handling and all formats to separate library [Miodrag Milanovic] 2011-05-06 19:42:26 +00:00
Aaron Giles
00d745ca77 (Big tangle of changes that all happened as I was looking into the ROM
loader rewrite, which is still in progress....)

Replaced mamedriv.c with a new driver list mechanism that is generated
by the build tools. The emulator core now expects the presence of a
file called src/$(TARGET)/$(SUBTARGET).lst which is just a raw list of
driver names, one per line. C and C++ comments are still permitted.
This file is parsed by a new build tool makelist which extracts the
driver names, sorts them, and generates a file called drivlist.c, which
is consumed by the core. [Aaron Giles]

Added new osdcore function osd_malloc_array() which is identical to
osd_malloc() but obviously hints that the underlying allocation is for
an array. Updated all callers to use the appropriate form. Modified the
Windows allocator to only use guard pages for array-style allocations,
allowing us to enable them once again in debug builds. [Aaron Giles]

Created new static class driver_list to wrap accesses to the list of
available drivers. Improved speed of driver lookups by relying on the
presorting done by makelist. [Aaron Giles]

Created helper class driver_enumerator as a helper for iterating through 
the list of drivers. This class supports basic filtering and iteration,
and also serves as a temporary cache of machine_configs. [Aaron Giles]

Created cli_frontend object to wrap all the CLI handling code in
clifront.c. Updated/simplified all the code to take advantage of the
driver_enumerator. [Aaron Giles]

Created media_auditor object to wrap all the auditing functions in
audit.c. Updated all users to the new interface. Note that the new
auditing mechanism is slightly out of sync with the romload code in
terms of finding ROMs owned by devices, so it may mis-report some
issues until the new ROM loading code is in. [Aaron Giles]

Added concept of a per-device searchpath. For most devices, their 
searchpath is just the short name of the device. For driver_devices, the
searchpath is driver[;parent[;bios]]. This searchpath will eventually be
used by the rom loader to find ROMs. For now it is used by the media
auditor only. [Aaron Giles]

Created info_xml_creator object to wrap all the info generation functions
in info.c. Converted the file to C++ and cleaned up the input processing
code. [Aaron Giles]

(not for whatsnew ... Known issues: auditing of CHDs appears busted, and 
debug builds report unfreed memory if you use the built-in game picker)
2011-04-13 20:31:00 +00:00
Curt Coder
70efaaf040 Delete symbols file if defined when invoking clean target. [Curt Coder] 2011-02-12 22:17:46 +00:00
R. Belmont
28e34ea140 NetBSD support [Thomas Klausner]
Not for whatsnew: I added -Wno-conversion unconditionally to disable the 
warnings Thomas reported.  That setting is the default for GCC out-of-the-box 
but apparently not on NetBSD.  As far as I know it shouldn't cause a problem 
with any GCC version back to at least 4.0.0 so we're safe even on PPC OSX, 
but do let me know if hilarity ensues.
2011-02-02 03:29:54 +00:00
Andrew Gardner
ffc1d29080 Silly. 2010-12-30 06:50:24 +00:00
Andrew Gardner
ea5f8009fa plygonet.c : Fixed save state & device handler regressions. [Andrew Gardner] 2010-12-30 04:47:25 +00:00
Miodrag Milanovic
689a7d16d2 Made depend creation target independent (no whatsnew) 2010-09-28 07:33:09 +00:00
Aaron Giles
db797ba791 New build tool makedep.c, derived from src2html.c (really!).
Does basic dependency analysis and supports excluding paths.

Makefile now supports a depend target which will run makedep
on the src/$(TARGET) tree and create dependencies. It deliberately
excludes the root of src/emu as well as the osd directories in
order to keep the dependency file down to a reasonable size, so
if a core header file changes, you still need to clean and build
all.
2010-09-14 01:15:26 +00:00
Aaron Giles
c70c5fee5a Created CPU-specific device types for all CPUs, using new macros
DECLARE_LEGACY_CPU_DEVICE and DEFINE_LEGACY_CPU_DEVICE. Changed CPUs
to be their own device types, rather than all of type CPU with a
special internal subtype. Note that as part of this process I removed
the CPU_ prefix from the ALL-CAPS device name, so CPU_Z80 is just
plain old Z80 now. This required changing a couple of names like
8080 to I8080 so that there was an alphabetic first character.

Added memory interfaces to the list of fast-access interfaces. To do
this properly I had to add a separate method to devices which is
called immediately after construction, when it is possible to perform
dynamic_casts on fully-constructed objects. (This is just internal,
no changes necessary to the devices themselves.)

Some additional notes:
 * SH2 and SH4 had typedefs that conflicted with their CPU_-less names
    so I bulk renamed to structures to sh2_state and sh4_state; RB, feel
    free to choose alternate names if you don't like 'em
 * SCSP was caught doing something to the 3rd indexed CPU. Since several
    systems that use SCSP don't even have 3 CPUs, I had no idea what
    this was supposed to do, so I changed to it reference "audiocpu"
    assuming that stv was the assumed target. This is really gross and
    should be a configuration parameter, not a hard-coded assumption.
2010-07-03 00:12:44 +00:00
Aaron Giles
b67fd48c9f Winmain cleanup:
* created dynamic_bind<> template class to handle dynamically binding to
    optionally-supported functions
 * wrapped stack walking code in a class
 * wrapped symbol lookup code in a class
 * added support for parsing objdump-produced symbol dumps which include
    non-global functions for much better stack dumps and profiling in gcc builds

Also: modified makefile for win32 targets to automatically run objdump and
produce a .sym file if SYMBOLS is enabled.
2010-07-02 03:49:56 +00:00
Aaron Giles
7eb08a94fb Clean up profiling flags in the makefile. Removed GPROF flag, it is now just
PROFILE. When enabled, automatically turn on basic symbols. Also added new
SYMLEVEL option to control the symbols level (defaults to 2). [Aaron Giles]
2010-06-11 23:07:16 +00:00
Michaël Banaan Ananas
0035e1cd17 documentation: -march option core2 is in gcc since 4.3 2010-05-13 18:12:53 +00:00
Phil Bennett
37da163717 Added makefile PPC64 autodetection [Julian Sikorski] 2010-04-14 13:51:37 +00:00