mirror of
https://github.com/FunKey-Project/picodrive-irixxxx.git
synced 2026-05-05 04:13:36 +02:00
Merge pull request #40 from fetzerch/debug
Fix compilation with DEBUG flag
This commit is contained in:
7
Makefile
7
Makefile
@@ -1,16 +1,19 @@
|
|||||||
TARGET ?= PicoDrive
|
TARGET ?= PicoDrive
|
||||||
|
DEBUG = 0
|
||||||
CFLAGS += -Wall
|
CFLAGS += -Wall
|
||||||
CFLAGS += -I. -DINLINE=inline
|
CFLAGS += -I. -DINLINE=inline
|
||||||
ifndef DEBUG
|
ifeq ($(DEBUG),0)
|
||||||
ifeq ($(platform), vita)
|
ifeq ($(platform), vita)
|
||||||
CFLAGS += -O3 -DNDEBUG
|
CFLAGS += -O3 -DNDEBUG
|
||||||
else
|
else
|
||||||
CFLAGS += -O2 -DNDEBUG -ffunction-sections
|
CFLAGS += -O2 -DNDEBUG -ffunction-sections
|
||||||
endif
|
endif
|
||||||
|
else
|
||||||
|
CFLAGS += -g -O2
|
||||||
|
endif
|
||||||
ifneq ($(APPLE),1)
|
ifneq ($(APPLE),1)
|
||||||
LDFLAGS += -Wl,--gc-sections
|
LDFLAGS += -Wl,--gc-sections
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
#CFLAGS += -DEVT_LOG
|
#CFLAGS += -DEVT_LOG
|
||||||
#CFLAGS += -DDRC_CMP
|
#CFLAGS += -DDRC_CMP
|
||||||
#cpu_cmp = 1
|
#cpu_cmp = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user