2014-12-19 21:23:00 -05:00
|
|
|
PWD =
|
|
|
|
|
|
|
|
CONFIGURE_LIBFFI = \
|
|
|
|
cd $(LIBFFI_DIR) && \
|
|
|
|
$(LIBFFI_CONFIGURE) --disable-shared \
|
|
|
|
--host=$(LIBFFI_ARCH) --enable-builddir=$(arch) \
|
|
|
|
CC="$(CC)" CFLAGS="$(LIBFFI_CFLAGS)"
|
|
|
|
|
2013-04-15 09:22:20 -04:00
|
|
|
$(OBJS): $(HDRS) $(ruby_headers) \
|
|
|
|
$(hdrdir)/ruby/io.h \
|
|
|
|
$(hdrdir)/ruby/encoding.h \
|
|
|
|
$(hdrdir)/ruby/oniguruma.h
|
2014-12-19 21:23:00 -05:00
|
|
|
|
|
|
|
$(STATIC_LIB) $(RUBYARCHDIR)/$(DLLIB) $(DLLIB): $(LIBFFI_A)
|
|
|
|
|
|
|
|
$(OBJS): $(FFI_H)
|
|
|
|
|
|
|
|
hdr: $(FFI_H)
|
|
|
|
configure-libffi $(FFI_H):
|
|
|
|
$(Q) $(MAKEDIRS) $(LIBFFI_DIR)
|
|
|
|
$(Q) $(CONFIGURE_LIBFFI)
|
|
|
|
|
2014-12-21 00:45:01 -05:00
|
|
|
build-libffi: $(LIBFFI_A)
|
|
|
|
build-libffi $(LIBFFI_A):
|
2014-12-19 21:23:00 -05:00
|
|
|
$(Q) $(SUBMAKE_LIBFFI)
|
2014-12-19 22:53:05 -05:00
|
|
|
|
|
|
|
configure: configure-libffi
|