3 @@ -45,63 +45,11 @@ SYSROOT_LOCAL := $(shell [ -d /usr/local
8 -LIBREM_PATH := $(shell [ -d ../rem ] && echo "../rem")
11 -ifeq ($(LIBREM_PATH),)
12 -ifneq ($(SYSROOT_LOCAL),)
13 -LIBREM_PATH := $(shell [ -f $(SYSROOT_LOCAL)/include/rem/rem.h ] && \
14 - echo "$(SYSROOT_LOCAL)")
18 -ifeq ($(LIBREM_PATH),)
19 -LIBREM_PATH := $(shell [ -f $(SYSROOT)/include/rem/rem.h ] && \
24 -LIBREM_INC := $(shell [ -f $(LIBREM_PATH)/include/rem.h ] && \
25 - echo "$(LIBREM_PATH)/include")
26 -ifeq ($(LIBREM_INC),)
27 -LIBREM_INC := $(shell [ -f $(LIBREM_PATH)/include/rem/rem.h ] && \
28 - echo "$(LIBREM_PATH)/include/rem")
30 -ifeq ($(LIBREM_INC),)
31 -LIBREM_INC := $(shell [ -f /usr/local/include/rem/rem.h ] && \
32 - echo "/usr/local/include/rem")
34 -ifeq ($(LIBREM_INC),)
35 -LIBREM_INC := $(shell [ -f /usr/include/rem/rem.h ] && echo "/usr/include/rem")
37 +LIBREM_INC := $(SYSROOT_ALT)/include/rem
41 -LIBREM_SO := $(shell [ -f $(LIBREM_PATH)/librem.a ] && \
42 - echo "$(LIBREM_PATH)")
45 -LIBREM_SO :=$(shell [ -f $(LIBREM_PATH)/librem$(LIB_SUFFIX) ] && \
46 - echo "$(LIBREM_PATH)")
49 -LIBREM_SO := $(shell [ -f $(LIBREM_PATH)/lib/librem$(LIB_SUFFIX) ] && \
50 - echo "$(LIBREM_PATH)/lib")
53 -LIBREM_SO := $(shell [ -f /usr/local/lib/librem$(LIB_SUFFIX) ] \
54 - && echo "/usr/local/lib")
57 -LIBREM_SO := $(shell [ -f /usr/lib/librem$(LIB_SUFFIX) ] && \
61 -LIBREM_SO := $(shell [ -f /usr/lib64/librem$(LIB_SUFFIX) ] && \
65 +LIBREM_SO := $(SYSROOT_ALT)/include/rem
67 CFLAGS += -I. -Iinclude -I$(LIBRE_INC)
68 CFLAGS += -I$(LIBREM_INC)