aboutsummaryrefslogtreecommitdiff
path: root/emulators/mame/files/patch-makefile
diff options
context:
space:
mode:
authorAlejandro Pulver <alepulver@FreeBSD.org>2007-02-25 15:17:51 +0000
committerAlejandro Pulver <alepulver@FreeBSD.org>2007-02-25 15:17:51 +0000
commit484a4a943999ea6fc0739c18e67c5165e8fc2d5c (patch)
treeef911fadfdb31d0f2e8db875e38b16bcb67bdba2 /emulators/mame/files/patch-makefile
parent2ec869f83b60537b99500f1fc3d0618fe5d39116 (diff)
SDLMAME is a port of the popular MAME. There are a few principles that guide
it's development: 1) Run on Linux/Unix, Mac OS X, and other SDL supported operating systems with as few changes as possible to the base Win32 code. This means we can track changes faster than larger more conventional ports such as MacMAME, and we also maintain what I call "Firefox compatibilty" where learning a major app only needs to be done once per application, and it then applies across many operating systems. If you can use the command-line Win32 MAME, you already know how to use SDLMAME on any platform you may encounter it on. 2) MAME developers are important. By keeping quickly up to date, we make it easy for people on non-Windows platforms to make and submit changes to the core MAME code, and we offer native implementations of MAME's multi-window GUI debugger on both Linux/Unix and Mac OS X. WWW: http://rbelmont.mameworld.info/?page_id=163
Notes
Notes: svn path=/head/; revision=185897
Diffstat (limited to 'emulators/mame/files/patch-makefile')
-rw-r--r--emulators/mame/files/patch-makefile141
1 files changed, 141 insertions, 0 deletions
diff --git a/emulators/mame/files/patch-makefile b/emulators/mame/files/patch-makefile
new file mode 100644
index 000000000000..83d38ebdce15
--- /dev/null
+++ b/emulators/mame/files/patch-makefile
@@ -0,0 +1,141 @@
+--- ./makefile.orig Sun Feb 18 22:23:18 2007
++++ ./makefile Fri Feb 23 01:26:35 2007
+@@ -50,7 +50,7 @@
+ #
+ # NOTE: this makefile now works for MinGW/win32 builds as well!
+ #
+-SUBARCH = linux
++SUBARCH = freebsd
+
+
+ #-------------------------------------------------
+@@ -61,11 +61,13 @@
+ # uncomment next line to include the debugger
+ #DEBUG = 1
+
++ifeq ($(ARCH),i386)
+ # uncomment next line to use DRC MIPS3 engine
+ X86_MIPS3_DRC = 1
+
+ # uncomment next line to use DRC PowerPC engine
+ X86_PPC_DRC = 1
++endif
+
+ #-------------------------------------------------
+ # specify build options; see each option below
+@@ -172,8 +174,8 @@
+
+ # compiler, linker and utilities
+ AR = @ar
+-CC = @gcc
+-LD = @gcc
++CC := @$(CC)
++LD = @$(CC)
+ MD = -mkdir
+ RM = @rm -f
+
+@@ -189,53 +191,12 @@
+ endif
+
+ # by default, don't compile for a specific target CPU
+-NAME = $(PREFIX)$(TARGET)
+-ARCH =
+-
+-# architecture-specific builds get extra options
+-ifdef ATHLON
+-NAME = $(PREFIX)$(TARGET)at
+-ARCH = -march=athlon
+-endif
+-
+-ifdef I686
+-NAME = $(PREFIX)$(TARGET)pp
+-ARCH = -march=pentiumpro
+-endif
+-
+-ifdef P4
+-NAME = $(PREFIX)$(TARGET)p4
+-ARCH = -march=pentium4
+-endif
+-
+-ifdef AMD64
+-NAME = $(PREFIX)$(TARGET)64
+-ARCH = -march=athlon64
+-endif
+-
+-ifdef PM
+-NAME = $(PREFIX)$(TARGET)pm
+-ARCH = -march=pentium3 -msse2
+-endif
+-
+-ifdef G4
+-NAME = $(PREFIX)$(TARGET)g4
+-ARCH = -mcpu=G4
+-endif
+-
+-ifdef G5
+-NAME = $(PREFIX)$(TARGET)g5
+-ARCH = -mcpu=G5
+-endif
+-
+-ifdef CELL
+-NAME = $(PREFIX)$(TARGET)cbe
++NAME = $(TARGET)
+ ARCH =
+-endif
+
+ # debug builds just get the 'd' suffix and nothing more
+ ifdef DEBUG
+-NAME = $(PREFIX)$(TARGET)d
++NAME = $(TARGET)d
+ endif
+
+ EMULATOR = $(NAME)$(EXE)
+@@ -273,7 +234,7 @@
+ # compile and linking flags
+ #-------------------------------------------------
+
+-CFLAGS = \
++CFLAGS += \
+ $(OPT_FLAGS) \
+ -std=gnu89 \
+ -I$(SRC)/$(TARGET) \
+@@ -284,6 +245,7 @@
+ -I$(SRC)/lib/util \
+ -I$(SRC)/osd \
+ -I$(SRC)/osd/$(MAMEOS) \
++ -I$(LOCALBASE)/include -I$(X11BASE)/include
+
+ ifdef MESS
+ CFLAGS += \
+@@ -302,7 +264,7 @@
+ endif # PPC
+ endif # SYMBOLS
+
+-CFLAGS += $(ARCH) \
++CFLAGS += \
+ -Wall \
+ -Wpointer-arith \
+ -Wbad-function-cast \
+@@ -314,7 +276,7 @@
+ -Wdeclaration-after-statement
+
+ ifneq ($(OPTIMIZE),0)
+-CFLAGS += -DNDEBUG $(ARCH) -fno-strict-aliasing
++CFLAGS += -DNDEBUG -fno-strict-aliasing
+ endif
+
+ CFLAGS += -O$(OPTIMIZE)
+@@ -322,11 +284,9 @@
+ # extra options needed *only* for the osd files
+ CFLAGSOSDEPEND = $(CFLAGS)
+
+-LDFLAGS = -WO
++LDFLAGS += -WO -L$(LOCALBASE)/lib -L$(X11BASE)/lib
+
+-ifdef SYMBOLS
+-LDFLAGS =
+-else
++ifndef SYMBOLS
+ LDFLAGS += -s
+ endif
+