openbsd-ports/emulators/sdlmame/patches/patch-makefile
landry 0bd408a5cb Import sdlmame 0.130 :
MAME stands for Multi Arcade Machine Emulator. As the name suggests, it
is a program that emulates the hardware (and low-level firmware) of a
massive variety of arcade machines.
SDLMAME is a port of MAME using the SDL library.

After many submissions and updates by Pierre Riteau (at gmail), thanks!
2009-03-17 19:55:09 +00:00

58 lines
1.5 KiB
Plaintext

$OpenBSD: patch-makefile,v 1.1.1.1 2009/03/17 19:55:09 landry Exp $
--- makefile.orig Thu Mar 5 15:16:35 2009
+++ makefile Sun Mar 15 15:05:18 2009
@@ -125,10 +125,10 @@ endif
# BIGENDIAN = 1
# uncomment next line to build expat as part of MAME build
-BUILD_EXPAT = 1
+# BUILD_EXPAT = 1
# uncomment next line to build zlib as part of MAME build
-BUILD_ZLIB = 1
+# BUILD_ZLIB = 1
# uncomment next line to include the symbols
# SYMBOLS = 1
@@ -197,8 +197,8 @@ endif
# compiler, linker and utilities
AR = @ar
-CC = @gcc
-LD = @gcc
+CC ?= @gcc
+LD ?= @gcc
MD = -mkdir$(EXE)
RM = @rm -f
@@ -227,7 +227,7 @@ NAME = $(TARGET)$(SUBTARGET)
endif
# fullname is prefix+name+suffix+debugsuffix
-FULLNAME = $(PREFIX)$(NAME)$(CPPSUFFIX)$(SUFFIX)$(DEBUGSUFFIX)
+FULLNAME = $(NAME)$(CPPSUFFIX)$(SUFFIX)$(DEBUGSUFFIX)
# add an EXE suffix to get the final emulator name
EMULATOR = $(FULLNAME)$(EXE)
@@ -302,9 +302,9 @@ CPPONLYFLAGS =
# CFLAGS is defined based on C or C++ targets
# (remember, expansion only happens when used, so doing it here is ok)
ifdef CPP_COMPILE
-CFLAGS = $(CCOMFLAGS) $(CPPONLYFLAGS)
+CFLAGS += $(CCOMFLAGS) $(CPPONLYFLAGS)
else
-CFLAGS = $(CCOMFLAGS) $(CONLYFLAGS)
+CFLAGS += $(CCOMFLAGS) $(CONLYFLAGS)
endif
# we compile C-only to C89 standard with GNU extensions
@@ -331,7 +331,7 @@ CCOMFLAGS += -pg
endif
# add the optimization flag
-CCOMFLAGS += -O$(OPTIMIZE)
+#CCOMFLAGS += -O$(OPTIMIZE)
# if we are optimizing, include optimization options
# and make all errors into warnings