Added newest Makefile and fixed making from clean
This commit is contained in:
parent
27a99323da
commit
965bcfa29d
6 changed files with 18 additions and 8 deletions
16
Makefile
16
Makefile
|
@ -111,13 +111,13 @@ MAKEFLAGS += --no-print-directory
|
|||
# Secondary expansion is required for dependency variables in object rules.
|
||||
.SECONDEXPANSION:
|
||||
|
||||
.PHONY: all rom clean compare tidy tools mostlyclean clean-tools $(TOOLDIRS) berry_fix libagbsyscall modern
|
||||
.PHONY: all rom clean compare tidy tools mostlyclean clean-tools $(TOOLDIRS) berry_fix libagbsyscall modern debugging debugging_modern
|
||||
|
||||
infoshell = $(foreach line, $(shell $1 | sed "s/ /__SPACE__/g"), $(info $(subst __SPACE__, ,$(line))))
|
||||
|
||||
# Build tools when building the rom
|
||||
# Disable dependency scanning for clean/tidy/tools
|
||||
ifeq (,$(filter-out all rom compare modern berry_fix libagbsyscall,$(MAKECMDGOALS)))
|
||||
ifeq (,$(filter-out all rom compare modern debugging debugging_modern berry_fix libagbsyscall,$(MAKECMDGOALS)))
|
||||
$(call infoshell, $(MAKE) tools)
|
||||
else
|
||||
NODEP := 1
|
||||
|
@ -251,6 +251,12 @@ ifeq ($(DINFO),1)
|
|||
override CFLAGS += -g
|
||||
endif
|
||||
|
||||
# Debug menu
|
||||
ifeq ($(DDEBUGGING),1)
|
||||
override ASFLAGS += --defsym DEBUGGING=1
|
||||
override CPPFLAGS += -D DEBUGGING=1
|
||||
endif
|
||||
|
||||
$(C_BUILDDIR)/%.o : $(C_SUBDIR)/%.c $$(c_dep)
|
||||
@$(CPP) $(CPPFLAGS) $< -o $(C_BUILDDIR)/$*.i
|
||||
@$(PREPROC) $(C_BUILDDIR)/$*.i charmap.txt | $(CC1) $(CFLAGS) -o $(C_BUILDDIR)/$*.s
|
||||
|
@ -344,4 +350,8 @@ berry_fix:
|
|||
@$(MAKE) -C berry_fix COMPARE=$(COMPARE) TOOLCHAIN=$(TOOLCHAIN)
|
||||
|
||||
libagbsyscall:
|
||||
@$(MAKE) -C libagbsyscall TOOLCHAIN=$(TOOLCHAIN)
|
||||
@$(MAKE) -C libagbsyscall TOOLCHAIN=$(TOOLCHAIN)
|
||||
|
||||
# Debug menu
|
||||
debugging: ; @$(MAKE) DDEBUGGING=1 DINFO=1
|
||||
debugging_modern: ; @$(MAKE) MODERN=1 DDEBUGGING=1 DINFO=1
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef GUARD_DEBUG_H
|
||||
#define GUARD_DEBUG_H
|
||||
|
||||
#if DEBUG
|
||||
#if DEBUGGING
|
||||
void Debug_ShowMainMenu(void);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#if DEBUG
|
||||
#if DEBUGGING
|
||||
//CREDITS
|
||||
//TheXaman: https://github.com/TheXaman/pokeemerald/tree/tx_debug_system
|
||||
//CODE USED FROM:
|
||||
|
|
|
@ -4724,7 +4724,7 @@ u8 GetCollisionAtCoords(struct ObjectEvent *objectEvent, s16 x, s16 y, u32 dir)
|
|||
{
|
||||
u8 direction = dir;
|
||||
|
||||
#if DEBUG //DEBUG
|
||||
#if DEBUGGING //DEBUG
|
||||
if (FlagGet(FLAG_SYS_NO_COLLISION))
|
||||
return COLLISION_NONE;
|
||||
#endif //
|
||||
|
|
|
@ -219,7 +219,7 @@ int ProcessPlayerFieldInput(struct FieldInput *input)
|
|||
if (input->pressedSelectButton && UseRegisteredKeyItemOnField() == TRUE)
|
||||
return TRUE;
|
||||
|
||||
#if DEBUG
|
||||
#if DEBUGGING
|
||||
if (input->input_field_1_2)
|
||||
{
|
||||
PlaySE(SE_WIN_OPEN);
|
||||
|
|
|
@ -177,7 +177,7 @@ bool8 CheckForTrainersWantingBattle(void)
|
|||
{
|
||||
u8 i;
|
||||
|
||||
#if DEBUG //DEBUG
|
||||
#if DEBUGGING //DEBUG
|
||||
if (FlagGet(FLAG_SYS_NO_TRAINER_SEE))
|
||||
return FALSE;
|
||||
#endif //
|
||||
|
|
Loading…
Reference in a new issue