Exclude debug.c from compilation unless DEBUG is defined
This commit is contained in:
@@ -13,7 +13,6 @@ SOURCES_C += \
|
|||||||
$(CORE_DIR)/cart.c \
|
$(CORE_DIR)/cart.c \
|
||||||
$(CORE_DIR)/cheat.c \
|
$(CORE_DIR)/cheat.c \
|
||||||
$(CORE_DIR)/crc32.c \
|
$(CORE_DIR)/crc32.c \
|
||||||
$(CORE_DIR)/debug.c \
|
|
||||||
$(CORE_DIR)/fceu-endian.c \
|
$(CORE_DIR)/fceu-endian.c \
|
||||||
$(CORE_DIR)/fceu-memory.c \
|
$(CORE_DIR)/fceu-memory.c \
|
||||||
$(CORE_DIR)/misc.c \
|
$(CORE_DIR)/misc.c \
|
||||||
@@ -31,6 +30,10 @@ SOURCES_C += \
|
|||||||
$(CORE_DIR)/state.c \
|
$(CORE_DIR)/state.c \
|
||||||
$(CORE_DIR)/video.c \
|
$(CORE_DIR)/video.c \
|
||||||
$(CORE_DIR)/vsuni.c
|
$(CORE_DIR)/vsuni.c
|
||||||
|
|
||||||
|
ifeq ($(DEBUG),1)
|
||||||
|
SOURCES_C += $(CORE_DIR)/debug.c
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SOURCES_C += \
|
SOURCES_C += \
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(DEBUG), 1)
|
ifeq ($(DEBUG), 1)
|
||||||
CFLAGS += -O0 -g
|
CFLAGS += -O0 -g -DDEBUG
|
||||||
else
|
else
|
||||||
CFLAGS += -O3 -DNDEBUG
|
CFLAGS += -O3 -DNDEBUG
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -7,7 +7,10 @@
|
|||||||
#include "cart.c"
|
#include "cart.c"
|
||||||
#include "cheat.c"
|
#include "cheat.c"
|
||||||
#include "crc32.c"
|
#include "crc32.c"
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
#include "debug.c"
|
#include "debug.c"
|
||||||
|
#endif
|
||||||
#include "fceu-endian.c"
|
#include "fceu-endian.c"
|
||||||
#include "fceu-memory.c"
|
#include "fceu-memory.c"
|
||||||
#include "misc.c"
|
#include "misc.c"
|
||||||
|
|||||||
Reference in New Issue
Block a user