diff --git a/Makefile b/Makefile
index 53226ba..42eefd6 100644
--- a/Makefile
+++ b/Makefile
@@ -41,11 +41,22 @@ INCLUDES := src
#---------------------------------------------------------------------------------
# options for code generation
#---------------------------------------------------------------------------------
-CFLAGS := -std=c2x -g -Wall -O2 -ffunction-sections -DESPRESSO -mcpu=750 -meabi -mhard-float $(INCLUDE)
-CXXFLAGS := -std=c++20 -g -Wall -O2 -ffunction-sections -DESPRESSO -mcpu=750 -meabi -mhard-float $(INCLUDE)
+CFLAGS := -g -g -Wall -O2 -ffunction-sections $(MACHDEP) $(INCLUDE) -D__WIIU__
+CXXFLAGS := $(CFLAGS) -std=c++20
+CFLAGS += -std=c2x
ASFLAGS := -mregnames
LDFLAGS := -nostartfiles -Wl,--gc-sections,--allow-multiple-definition
+ifeq ($(DEBUG),1)
+CXXFLAGS += -DDEBUG -g
+CFLAGS += -DDEBUG -g
+endif
+
+ifeq ($(DEBUG),VERBOSE)
+CXXFLAGS += -DDEBUG -DVERBOSE_DEBUG -g
+CFLAGS += -DDEBUG -DVERBOSE_DEBUG -g
+endif
+
#---------------------------------------------------------------------------------
Q := @
MAKEFLAGS += --no-print-directory
diff --git a/src/main.cpp b/src/main.cpp
index 64f9e3d..89c3df7 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -15,27 +15,24 @@
* along with this program. If not, see .
****************************************************************************/
-#include
-#include
-#include
-#include
-#include
-#include
-
#include "dynamic.h"
#include "kernel.h"
#include "utils/DirList.h"
#include "utils/ElfUtils.h"
#include "utils/logger.h"
+#include
+#include
#include
+#include
+#include
+#include
+#include
#include