# -*- makefile -*-

# CFLAGS += -Werror -Wformat
INCFLAGS += -I$(BUILD_DIR) -I$(LIBFFI_BUILD_DIR)/include
CPPFLAGS += -I$(BUILD_DIR) -I$(LIBFFI_BUILD_DIR)/include
# CPPFLAGS += -mwin32
LOCAL_LIBS += $(LIBFFI)
# LOCAL_LIBS += -lpthread

FFI_CFLAGS = $(FFI_MMAP_EXEC)
BUILD_DIR = $(shell pwd)
LIBFFI_SRC_DIR = $(abspath $(srcdir))/libffi
LIBFFI_BUILD_DIR = $(BUILD_DIR)/libffi
LIBFFI = $(LIBFFI_BUILD_DIR)/.libs/libffi_convenience.a
FFI_CONFIGURE = $(LIBFFI_SRC_DIR)/configure --disable-static \
	--with-pic=yes --disable-dependency-tracking

$(OBJS):	$(LIBFFI)


# -*- makefile -*-

# CFLAGS += -Werror -Wformat
INCFLAGS += -I$(BUILD_DIR) -I$(LIBFFI_BUILD_DIR)/include
CPPFLAGS += -I$(BUILD_DIR) -I$(LIBFFI_BUILD_DIR)/include
# CPPFLAGS += -mwin32
LOCAL_LIBS += $(LIBFFI)
# LOCAL_LIBS += -lpthread

FFI_CFLAGS = $(FFI_MMAP_EXEC)
BUILD_DIR := $(shell pwd)
ifeq ($(srcdir),.)
  LIBFFI_SRC_DIR := $(shell pwd)/$(srcdir)/libffi
else
  LIBFFI_SRC_DIR := $(srcdir)/libffi
endif
LIBFFI_BUILD_DIR = $(BUILD_DIR)/libffi
LIBFFI = $(LIBFFI_BUILD_DIR)/.libs/libffi_convenience.a
FFI_CONFIGURE = $(LIBFFI_SRC_DIR)/configure --disable-static \
	--with-pic=yes --disable-dependency-tracking

$(OBJS):	$(LIBFFI)


Add work around for lack of $(abspath) function on older gnu make
Add work around for lack of $(abspath) function on older gnu make
