summaryrefslogtreecommitdiff
path: root/ext/ffi_c/libffi.mk
blob: 85c15c56a657664f1bf50b613e35e0b38f8d60c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# -*- makefile -*-

include ${srcdir}/libffi.gnu.mk

$(LIBFFI):		
	@mkdir -p "$(LIBFFI_BUILD_DIR)" "$@(D)"
	@if [ ! -f "$(LIBFFI_BUILD_DIR)"/Makefile ]; then \
	    echo "Configuring libffi"; \
	    cd "$(LIBFFI_BUILD_DIR)" && \
		/usr/bin/env CFLAGS="$(LIBFFI_CFLAGS)" GREP_OPTIONS="" \
		/bin/sh $(LIBFFI_CONFIGURE) $(LIBFFI_HOST) > /dev/null; \
	fi
	$(MAKE) -C "$(LIBFFI_BUILD_DIR)"