Nuke old VERSION OPT_FLAGS and add DEBUG flag

This commit is contained in:
Zerocker 2020-06-05 20:40:08 +09:00
parent ad92b93b39
commit caea5ec4cb
2 changed files with 6 additions and 8 deletions

View file

@ -10,6 +10,8 @@ default: all
# These options can either be changed by modifying the makefile, or # These options can either be changed by modifying the makefile, or
# by building with 'make SETTING=value'. 'make clean' may be required. # by building with 'make SETTING=value'. 'make clean' may be required.
# Build debug version (default)
DEBUG ?= 1
# Version of the game to build # Version of the game to build
VERSION ?= us VERSION ?= us
# Graphics microcode used # Graphics microcode used
@ -280,15 +282,11 @@ GODDARD_SRC_DIRS := src/goddard src/goddard/dynlists
MIPSISET := -mips2 MIPSISET := -mips2
MIPSBIT := -32 MIPSBIT := -32
ifeq ($(VERSION),eu) ifeq ($(DEBUG),1)
OPT_FLAGS := -O2 OPT_FLAGS := -g
else
ifeq ($(VERSION),sh)
OPT_FLAGS := -O2
else else
OPT_FLAGS := -O2 OPT_FLAGS := -O2
endif endif
endif
# Set BITS (32/64) to compile for # Set BITS (32/64) to compile for
OPT_FLAGS += $(BITS) OPT_FLAGS += $(BITS)

View file

@ -7,8 +7,8 @@ LIBAFLA=libaudiofile.la
AUDDIR=./tools/audiofile-0.3.6 AUDDIR=./tools/audiofile-0.3.6
# Command line options # Command line options
OPTIONS=("Analog Camera" "No Draw Distance" "Text-saves" "Smoke Texture Fix" "Clean build") OPTIONS=("Analog Camera" "No Draw Distance" "Text-saves" "Smoke Texture Fix" "Release build" "Clean build")
EXTRA=("BETTERCAMERA=1" "NODRAWINGDISTANCE=1" "TEXTSAVES=1" "TEXTURE_FIX=1" "clean") EXTRA=("BETTERCAMERA=1" "NODRAWINGDISTANCE=1" "TEXTSAVES=1" "TEXTURE_FIX=1" "DEBUG=0" "clean")
# Colors # Colors
RED=$(tput setaf 1) RED=$(tput setaf 1)