Make R2DIR configurable by user

This commit is contained in:
pancake 2016-04-27 00:05:57 +02:00
parent 5f5d358ee5
commit 816a2286c9

View File

@ -2,8 +2,11 @@
LIBR:=$(abspath $(dir $(lastword $(MAKEFILE_LIST))))
ifeq ($(LIBR),)
# workaround for OSX-powerpc wtf
LIBR=$(shell cd $(dir $(word 2,$(MAKEFILE_LIST)))/libr; pwd)
ifeq ($(R2DIR),)
$(error ERROR: Cannot find R2DIR. Please define this variable)
else
LIBR=$(R2DIR)/libr
endif
endif
SHLR:=$(LIBR)/../shlr