Previous 15994 Revisions Next

r13301 Friday 18th November, 2011 at 09:26:48 UTC by Miodrag Milanović
Simplified make files and remove ifdefs from SDL part (no whatsnew)
[src/mess]mess.mak messcore.mak tiny.mak
[src/mess/tools]tools.mak
[src/osd/sdl]sdlmain.c

src/osd/sdl/sdlmain.c
r13300r13301
2424#endif
2525
2626// standard includes
27#ifdef MESS
28#include <unistd.h>
29#endif
27
3028#ifdef SDLMAME_OS2
3129#define INCL_DOS
3230#include <os2.h>
r13300r13301
6462#if defined(SDLMAME_WIN32) || defined(SDLMAME_MACOSX) || defined(SDLMAME_OS2)
6563   #define INI_PATH ".;ini"
6664#else
67#ifdef MESS
68   #define INI_PATH "$HOME/.mess;.;ini"
69#else
70   #define INI_PATH "$HOME/.mame;.;ini"
71#endif // MESS
65   #define INI_PATH "$HOME/.APP_NAME;.;ini"
7266#endif // MACOSX
7367#endif // INI_PATH
7468
r13300r13301
196190   { NULL,                                 NULL,  OPTION_HEADER,     "SDL KEYBOARD MAPPING" },
197191   { SDLOPTION_KEYMAP,                      "0",    OPTION_BOOLEAN,    "enable keymap" },
198192   { SDLOPTION_KEYMAP_FILE,                 "keymap.dat", OPTION_STRING, "keymap filename" },
199#ifdef MESS
200193#ifdef SDLMAME_MACOSX
201   { SDLOPTION_UIMODEKEY,                "DELETE", OPTION_STRING,   "Key to toggle MESS keyboard mode" },
194   { SDLOPTION_UIMODEKEY,                "DELETE", OPTION_STRING,   "Key to toggle keyboard mode" },
202195#else
203   { SDLOPTION_UIMODEKEY,                  "SCRLOCK", OPTION_STRING,  "Key to toggle MESS keyboard mode" },
196   { SDLOPTION_UIMODEKEY,                  "SCRLOCK", OPTION_STRING,  "Key to toggle keyboard mode" },
204197#endif   // SDLMAME_MACOSX
205#endif   // MESS
206198
207199   // joystick mapping
208200   { NULL,                                NULL,   OPTION_HEADER,     "SDL JOYSTICK MAPPING" },
r13300r13301
275267
276268sdl_options::sdl_options()
277269{
270   astring ini_path(INI_PATH);
278271   add_entries(s_option_entries);
272   ini_path.replace(0, "APP_NAME", emulator_info::get_appname_lower());   
273   set_default_value(SDLOPTION_INIPATH, ini_path.cstr());   
279274}
280275
281276
src/mess/messcore.mak
r13300r13301
1111# MESS core defines
1212#-------------------------------------------------
1313
14ifeq ($(TARGET),mess)
15DEFS += -DMESS
16endif
17
1814# add some additional include libraries for the mame files
1915INCPATH += \
2016   -I$(SRC)/mame \
src/mess/tiny.mak
r13300r13301
1313#
1414###########################################################################
1515
16# disable messui for tiny build
17MESSUI = 0
18
1916# include MESS core defines
2017include $(SRC)/mess/messcore.mak
21include $(SRC)/mess/osd/$(OSD)/$(OSD).mak
2218
23
2419#-------------------------------------------------
2520# Specify all the CPU cores necessary for the
2621# drivers referenced in tiny.c.
src/mess/tools/tools.mak
r13300r13301
1313# tools object directory
1414MESS_TOOLS = $(MESSOBJ)/tools
1515
16
17ifdef BUILD_IMGTOOL
1816include $(MESSSRC)/tools/imgtool/imgtool.mak
1917TOOLS += $(IMGTOOL)
20endif
2118
22ifdef BUILD_CASTOOL
2319include $(MESSSRC)/tools/castool/castool.mak
2420TOOLS += $(CASTOOL)
25endif
2621
2722include $(MESSSRC)/tools/floptool/floptool.mak
2823TOOLS += $(FLOPTOOL)
r13300r13301
3025# include OS-specific MESS stuff
3126# the following expression is true if OSD is windows or winui
3227ifeq ($(OSD),$(filter $(OSD),windows winui))
33
34ifdef BUILD_WIMGTOOL
3528include $(MESSSRC)/tools/imgtool/windows/wimgtool.mak
3629TOOLS += $(WIMGTOOL)
37endif
3830endif
No newline at end of file
src/mess/mess.mak
r13300r13301
77###########################################################################
88
99
10
11###########################################################################
12#################   BEGIN USER-CONFIGURABLE OPTIONS   #####################
13###########################################################################
14
15# uncomment next line to build imgtool
16BUILD_IMGTOOL = 1
17
18# uncomment next line to build castool
19BUILD_CASTOOL = 1
20
21# uncomment next line to build wimgtool
22BUILD_WIMGTOOL = 1
23
24# uncomment next line to build messtest
25BUILD_MESSTEST = 1
26
27# uncomment next line to build dat2html
28BUILD_DAT2HTML = 1
29
30
31###########################################################################
32##################   END USER-CONFIGURABLE OPTIONS   ######################
33###########################################################################
34
35
36
3710# include MESS core defines
3811include $(SRC)/mess/messcore.mak
3912
r13300r13301
421394   $(MESSOBJ)/zpa.a \
422395   $(MESSOBJ)/zvt.a \
423396   $(MESSOBJ)/shared.a \
424
425ifeq ($(TARGET),mess)
426DRVLIBS += \
427397   $(MESSOBJ)/mame.a
428endif
429398
430399#-------------------------------------------------
431400# the following files are MAME components and

Previous 15994 Revisions Next


© 1998-2018 The MESS Team