--include ../../../Makefile.cfg
-# satisfying 2 deep applications
-ifeq ($(ACESSDIR),)
- -include ../../../../Makefile.cfg
+# Include Usermode Makefile.cfg
+_appsdir := $(dir $(lastword $(MAKEFILE_LIST)))
+include $(_appsdir)../Makefile.cfg
+
+ifeq ($(ARCHDIR),native)
+ ASFLAGS = -felf
+ LDFLAGS :=
+ LIBS := -lacess-native -lc_acess
+else
+ ASFLAGS = -felf
+ LDFLAGS :=
+ LIBS = -lld-acess