2014-12-19 21:23:00 -05:00
|
|
|
PWD =
|
|
|
|
|
|
|
|
CONFIGURE_LIBFFI = \
|
|
|
|
cd $(LIBFFI_DIR) && \
|
|
|
|
$(LIBFFI_CONFIGURE) --disable-shared \
|
|
|
|
--host=$(LIBFFI_ARCH) --enable-builddir=$(arch) \
|
2014-12-21 22:42:13 -05:00
|
|
|
CC="$(CC)" CFLAGS="$(LIBFFI_CFLAGS)" \
|
|
|
|
LD="$(LD)" LDFLAGS="$(LIBFFI_LDFLAGS)"
|
2014-12-19 21:23:00 -05:00
|
|
|
|
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
|
|
|
|
2014-12-23 06:33:54 -05:00
|
|
|
clean-libffi:
|
|
|
|
$(Q) $(SUBMAKE_LIBFFI) clean
|
|
|
|
|
|
|
|
distclean-libffi:
|
|
|
|
$(Q) $(SUBMAKE_LIBFFI) distclean
|
|
|
|
$(Q) $(RM) $(LIBFFI_DIR)/local.exp
|
|
|
|
$(Q) $(RUBY) -rfileutils -e 'FileUtils.rmdir(Dir.glob(ARGV[0]+"/**/"), :parents=>true)' $(LIBFFI_DIR)
|
|
|
|
|
|
|
|
realclean-libffi:
|
|
|
|
$(Q) $(RMDIRS) $(LIBFFI_DIR)
|
|
|
|
|
|
|
|
clean-none distclean-none realclean-none:
|
|
|
|
|
|
|
|
clean: clean-$(LIBFFI_CLEAN)
|
|
|
|
distclean: distclean-$(LIBFFI_CLEAN)
|
|
|
|
realclean: realclean-$(LIBFFI_CLEAN)
|
|
|
|
|
2014-12-19 22:53:05 -05:00
|
|
|
configure: configure-libffi
|