patch-makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. $OpenBSD: patch-makefile,v 1.7 2017/02/27 21:54:20 naddy Exp $
  2. --- makefile.orig Mon Feb 27 22:24:04 2017
  3. +++ makefile Mon Feb 27 22:24:48 2017
  4. @@ -24,7 +24,7 @@
  5. #-------------------------------------------------
  6. ifndef TARGET
  7. -TARGET = mame
  8. +TARGET = mess
  9. endif
  10. ifndef SUBTARGET
  11. @@ -227,10 +227,10 @@ endif
  12. # BIGENDIAN = 1
  13. # uncomment next line to build expat as part of MAME build
  14. -BUILD_EXPAT = 1
  15. +# BUILD_EXPAT = 1
  16. # uncomment next line to build zlib as part of MAME build
  17. -BUILD_ZLIB = 1
  18. +# BUILD_ZLIB = 1
  19. # uncomment next line to build libflac as part of MAME build
  20. BUILD_FLAC = 1
  21. @@ -364,8 +364,8 @@ endif
  22. # compiler, linker and utilities
  23. ifneq ($(TARGETOS),emscripten)
  24. AR = @ar
  25. -CC = @gcc
  26. -LD = @g++
  27. +CC ?= @gcc
  28. +LD ?= @g++
  29. endif
  30. MD = -mkdir$(BUILD_EXE)
  31. RM = @rm -f
  32. @@ -417,7 +417,7 @@ NAME = $(TARGET)$(SUBTARGET)
  33. endif
  34. # fullname is prefix+name+suffix+suffix64+suffixdebug
  35. -FULLNAME ?= $(BIN)$(PREFIX)$(PREFIXSDL)$(NAME)$(SUFFIX)$(SUFFIX64)$(SUFFIXDEBUG)$(SUFFIXPROFILE)
  36. +FULLNAME = $(PREFIXSDL)$(NAME)$(SUFFIX)$(SUFFIXDEBUG)$(SUFFIXPROFILE)
  37. # add an EXE suffix to get the final emulator name
  38. EMULATOR = $(FULLNAME)$(EXE)
  39. @@ -520,7 +520,7 @@ CPPONLYFLAGS =
  40. # CFLAGS is defined based on C or C++ targets
  41. # (remember, expansion only happens when used, so doing it here is ok)
  42. -CFLAGS = $(CCOMFLAGS) $(CPPONLYFLAGS) $(INCPATH)
  43. +CFLAGS += $(CCOMFLAGS) $(CPPONLYFLAGS) $(INCPATH)
  44. # we compile C-only to C89 standard with GNU extensions
  45. # we compile C++ code to C++98 standard with GNU extensions
  46. @@ -562,7 +562,7 @@ CCOMFLAGS += -pg
  47. endif
  48. # add the optimization flag
  49. -CCOMFLAGS += -O$(OPTIMIZE)
  50. +# CCOMFLAGS += -O$(OPTIMIZE)
  51. # add the error warning flag
  52. ifndef NOWERROR