// === CODE ===
int PS2_Install(char **Arguments)
{
- #if ARCH_is_x86 || ARCH_is_x86_64
+ #if ARCHDIR_is_x86 || ARCHDIR_is_x86_64
KBC8042_Init();
gpMouse_EnableFcn = KBC8042_EnableMouse;
- #elif ARCH_is_armv7
+ #elif ARCHDIR_is_armv7
PL050_Init(KEYBOARD_IRQ, KEYBOARD_IRQ, MOUSE_BASE, MOUSE_IRQ);
gpMouse_EnableFcn = PL050_EnableMouse;
#endif
-include $(dir $(lastword $(MAKEFILE_LIST)))../Makefile.cfg
-CPPFLAGS := -I$(ACESSDIR)/Kernel/include -I$(ACESSDIR)/Kernel/arch/$(ARCHDIR)/include -DARCH=$(ARCH) $(_CPPFLAGS)
+LIBINCLUDES := $(addprefix -I$(ACESSDIR)/Modules/Libraries/,$(LIBS))
+LIBINCLUDES := $(addsuffix /include,$(LIBINCLUDES))
+
+CPPFLAGS := -I$(ACESSDIR)/Kernel/include -I$(ACESSDIR)/Kernel/arch/$(ARCHDIR)/include
+CPPFLAGS += -DARCH=$(ARCH) -DARCH_is_$(ARCH) -DARCHDIR_is_$(ARCHDIR)
+CPPFLAGS += $(_CPPFLAGS)
+CPPFLAGS += $(LIBINCLUDES)
CFLAGS := -std=gnu99 -Wall -Werror -fno-stack-protector -g -O3 -fno-builtin
ifneq ($(CATEGORY),)