12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- $OpenBSD: patch-makefile,v 1.7 2017/02/27 21:54:20 naddy Exp $
- --- makefile.orig Mon Feb 27 22:24:04 2017
- +++ makefile Mon Feb 27 22:24:48 2017
- @@ -24,7 +24,7 @@
- #-------------------------------------------------
-
- ifndef TARGET
- -TARGET = mame
- +TARGET = mess
- endif
-
- ifndef SUBTARGET
- @@ -227,10 +227,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 build libflac as part of MAME build
- BUILD_FLAC = 1
- @@ -364,8 +364,8 @@ endif
- # compiler, linker and utilities
- ifneq ($(TARGETOS),emscripten)
- AR = @ar
- -CC = @gcc
- -LD = @g++
- +CC ?= @gcc
- +LD ?= @g++
- endif
- MD = -mkdir$(BUILD_EXE)
- RM = @rm -f
- @@ -417,7 +417,7 @@ NAME = $(TARGET)$(SUBTARGET)
- endif
-
- # fullname is prefix+name+suffix+suffix64+suffixdebug
- -FULLNAME ?= $(BIN)$(PREFIX)$(PREFIXSDL)$(NAME)$(SUFFIX)$(SUFFIX64)$(SUFFIXDEBUG)$(SUFFIXPROFILE)
- +FULLNAME = $(PREFIXSDL)$(NAME)$(SUFFIX)$(SUFFIXDEBUG)$(SUFFIXPROFILE)
-
- # add an EXE suffix to get the final emulator name
- EMULATOR = $(FULLNAME)$(EXE)
- @@ -520,7 +520,7 @@ CPPONLYFLAGS =
-
- # CFLAGS is defined based on C or C++ targets
- # (remember, expansion only happens when used, so doing it here is ok)
- -CFLAGS = $(CCOMFLAGS) $(CPPONLYFLAGS) $(INCPATH)
- +CFLAGS += $(CCOMFLAGS) $(CPPONLYFLAGS) $(INCPATH)
-
- # we compile C-only to C89 standard with GNU extensions
- # we compile C++ code to C++98 standard with GNU extensions
- @@ -562,7 +562,7 @@ CCOMFLAGS += -pg
- endif
-
- # add the optimization flag
- -CCOMFLAGS += -O$(OPTIMIZE)
- +# CCOMFLAGS += -O$(OPTIMIZE)
-
- # add the error warning flag
- ifndef NOWERROR
|