-include ../../../Makefile.cfg
# satisfying 2 deep applications
-if $(ACESSDIR) == "" then
+ifeq ($(ACESSDIR),)
-include ../../../../Makefile.cfg
-#endif
-ACESSDIR := $(ACESSDIR)/Usermode
+endif
+ACESSUSERDIR := $(ACESSDIR)/Usermode
ASFLAGS = -felf
-CPPFLAGS = -I$(ACESSDIR)/include/
+CPPFLAGS = -I$(ACESSUSERDIR)/include/
CFLAGS = -fno-stack-protector $(CPPFLAGS)
-LDFLAGS = -T $(ACESSDIR)/Libraries/acess.ld -L $(ACESSDIR)/Libraries -I /Acess/Libs/ld-acess.so -lc
+LDFLAGS = -T $(ACESSUSERDIR)/Libraries/acess.ld -L $(ACESSUSERDIR)/Libraries -I /Acess/Libs/ld-acess.so -lc