2014-12-19 21:23:00 -05:00
|
|
|
PWD =
|
|
|
|
|
|
|
|
CONFIGURE_LIBFFI = \
|
|
|
|
$(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
|
|
|
|
|
|
|
$(STATIC_LIB) $(RUBYARCHDIR)/$(DLLIB) $(DLLIB): $(LIBFFI_A)
|
|
|
|
|
|
|
|
$(OBJS): $(FFI_H)
|
|
|
|
|
2014-12-24 01:58:34 -05:00
|
|
|
.PHONY: .FORCE hdr
|
|
|
|
|
|
|
|
.FORCE:
|
|
|
|
|
2014-12-19 21:23:00 -05:00
|
|
|
hdr: $(FFI_H)
|
2014-12-24 01:58:34 -05:00
|
|
|
|
|
|
|
configure-libffi build-libffi: .FORCE
|
|
|
|
configure-libffi \
|
|
|
|
$(LIBFFI_DIR)/include/ffi.h \
|
|
|
|
$(LIBFFI_DIR)/include/ffitarget.h \
|
|
|
|
$(LIBFFI_DIR)/fficonfig.h \
|
|
|
|
$(LIBFFI_DIR)/Makefile:
|
2014-12-19 21:23:00 -05:00
|
|
|
$(Q) $(MAKEDIRS) $(LIBFFI_DIR)
|
|
|
|
$(Q) $(CONFIGURE_LIBFFI)
|
|
|
|
|
2017-02-11 05:33:05 -05:00
|
|
|
build-libffi $(LIBFFI_A):
|
2017-02-09 07:08:56 -05:00
|
|
|
$(Q) $(SUBMAKE_PRE) $(MAKE) $(SUBMAKE_ARG)
|
2014-12-19 22:53:05 -05:00
|
|
|
|
2017-02-09 07:08:56 -05:00
|
|
|
clean-none:
|
2014-12-23 06:33:54 -05:00
|
|
|
clean-libffi:
|
2017-02-09 07:08:56 -05:00
|
|
|
$(Q) $(SUBMAKE_PRE) $(MAKE) $(SUBMAKE_ARG) clean
|
2014-12-23 06:33:54 -05:00
|
|
|
|
2017-02-09 07:08:56 -05:00
|
|
|
distclean-none:
|
2017-02-11 05:33:05 -05:00
|
|
|
distclean-libffi:
|
2017-02-09 07:08:56 -05:00
|
|
|
$(Q) $(SUBMAKE_PRE) $(MAKE) $(SUBMAKE_ARG) distclean
|
2014-12-23 06:33:54 -05:00
|
|
|
$(Q) $(RM) $(LIBFFI_DIR)/local.exp
|
2015-07-26 23:46:07 -04:00
|
|
|
$(Q) $(RUBY) -rfileutils -e "FileUtils.rmdir(Dir.glob(ARGV[0]+'/**/{,.*/}'), :parents=>true)" $(LIBFFI_DIR)
|
2014-12-23 06:33:54 -05:00
|
|
|
|
2017-02-09 07:08:56 -05:00
|
|
|
realclean-none:
|
2017-02-11 05:33:05 -05:00
|
|
|
realclean-libffi:
|
2014-12-23 06:57:11 -05:00
|
|
|
$(Q) $(RMALL) $(LIBFFI_DIR)
|
2014-12-23 06:33:54 -05:00
|
|
|
|
2015-04-11 20:10:52 -04:00
|
|
|
.PHONY: clean-libffi distclean-libffi realclean-libffi
|
|
|
|
.PHONY: clean-none distclean-none realclean-none
|
2014-12-23 06:33:54 -05:00
|
|
|
|
|
|
|
clean: clean-$(LIBFFI_CLEAN)
|
|
|
|
distclean: distclean-$(LIBFFI_CLEAN)
|
|
|
|
realclean: realclean-$(LIBFFI_CLEAN)
|
|
|
|
|
2015-04-11 20:10:52 -04:00
|
|
|
.PHONY: configure configure-libffi
|
2016-07-06 01:48:13 -04:00
|
|
|
|
|
|
|
# AUTOGENERATED DEPENDENCIES START
|
|
|
|
closure.o: $(RUBY_EXTCONF_H)
|
|
|
|
closure.o: $(arch_hdrdir)/ruby/config.h
|
|
|
|
closure.o: $(hdrdir)/ruby/backward.h
|
|
|
|
closure.o: $(hdrdir)/ruby/defines.h
|
|
|
|
closure.o: $(hdrdir)/ruby/encoding.h
|
|
|
|
closure.o: $(hdrdir)/ruby/intern.h
|
|
|
|
closure.o: $(hdrdir)/ruby/io.h
|
|
|
|
closure.o: $(hdrdir)/ruby/missing.h
|
2017-03-22 02:00:18 -04:00
|
|
|
closure.o: $(hdrdir)/ruby/onigmo.h
|
2016-07-06 01:48:13 -04:00
|
|
|
closure.o: $(hdrdir)/ruby/oniguruma.h
|
|
|
|
closure.o: $(hdrdir)/ruby/ruby.h
|
|
|
|
closure.o: $(hdrdir)/ruby/st.h
|
|
|
|
closure.o: $(hdrdir)/ruby/subst.h
|
|
|
|
closure.o: $(hdrdir)/ruby/thread.h
|
|
|
|
closure.o: $(top_srcdir)/include/ruby.h
|
|
|
|
closure.o: $(top_srcdir)/internal.h
|
|
|
|
closure.o: closure.c
|
|
|
|
closure.o: closure.h
|
|
|
|
closure.o: conversions.h
|
|
|
|
closure.o: fiddle.h
|
|
|
|
closure.o: function.h
|
|
|
|
conversions.o: $(RUBY_EXTCONF_H)
|
|
|
|
conversions.o: $(arch_hdrdir)/ruby/config.h
|
|
|
|
conversions.o: $(hdrdir)/ruby/backward.h
|
|
|
|
conversions.o: $(hdrdir)/ruby/defines.h
|
|
|
|
conversions.o: $(hdrdir)/ruby/intern.h
|
|
|
|
conversions.o: $(hdrdir)/ruby/missing.h
|
|
|
|
conversions.o: $(hdrdir)/ruby/ruby.h
|
|
|
|
conversions.o: $(hdrdir)/ruby/st.h
|
|
|
|
conversions.o: $(hdrdir)/ruby/subst.h
|
|
|
|
conversions.o: $(top_srcdir)/include/ruby.h
|
|
|
|
conversions.o: closure.h
|
|
|
|
conversions.o: conversions.c
|
|
|
|
conversions.o: conversions.h
|
|
|
|
conversions.o: fiddle.h
|
|
|
|
conversions.o: function.h
|
|
|
|
fiddle.o: $(RUBY_EXTCONF_H)
|
|
|
|
fiddle.o: $(arch_hdrdir)/ruby/config.h
|
|
|
|
fiddle.o: $(hdrdir)/ruby/backward.h
|
|
|
|
fiddle.o: $(hdrdir)/ruby/defines.h
|
|
|
|
fiddle.o: $(hdrdir)/ruby/intern.h
|
|
|
|
fiddle.o: $(hdrdir)/ruby/missing.h
|
|
|
|
fiddle.o: $(hdrdir)/ruby/ruby.h
|
|
|
|
fiddle.o: $(hdrdir)/ruby/st.h
|
|
|
|
fiddle.o: $(hdrdir)/ruby/subst.h
|
|
|
|
fiddle.o: $(top_srcdir)/include/ruby.h
|
|
|
|
fiddle.o: closure.h
|
|
|
|
fiddle.o: conversions.h
|
|
|
|
fiddle.o: fiddle.c
|
|
|
|
fiddle.o: fiddle.h
|
|
|
|
fiddle.o: function.h
|
|
|
|
function.o: $(RUBY_EXTCONF_H)
|
|
|
|
function.o: $(arch_hdrdir)/ruby/config.h
|
|
|
|
function.o: $(hdrdir)/ruby/backward.h
|
|
|
|
function.o: $(hdrdir)/ruby/defines.h
|
|
|
|
function.o: $(hdrdir)/ruby/intern.h
|
|
|
|
function.o: $(hdrdir)/ruby/missing.h
|
|
|
|
function.o: $(hdrdir)/ruby/ruby.h
|
|
|
|
function.o: $(hdrdir)/ruby/st.h
|
|
|
|
function.o: $(hdrdir)/ruby/subst.h
|
|
|
|
function.o: $(hdrdir)/ruby/thread.h
|
|
|
|
function.o: $(top_srcdir)/include/ruby.h
|
|
|
|
function.o: closure.h
|
|
|
|
function.o: conversions.h
|
|
|
|
function.o: fiddle.h
|
|
|
|
function.o: function.c
|
|
|
|
function.o: function.h
|
|
|
|
handle.o: $(RUBY_EXTCONF_H)
|
|
|
|
handle.o: $(arch_hdrdir)/ruby/config.h
|
|
|
|
handle.o: $(hdrdir)/ruby/backward.h
|
|
|
|
handle.o: $(hdrdir)/ruby/defines.h
|
|
|
|
handle.o: $(hdrdir)/ruby/intern.h
|
|
|
|
handle.o: $(hdrdir)/ruby/missing.h
|
|
|
|
handle.o: $(hdrdir)/ruby/ruby.h
|
|
|
|
handle.o: $(hdrdir)/ruby/st.h
|
|
|
|
handle.o: $(hdrdir)/ruby/subst.h
|
|
|
|
handle.o: $(top_srcdir)/include/ruby.h
|
|
|
|
handle.o: closure.h
|
|
|
|
handle.o: conversions.h
|
|
|
|
handle.o: fiddle.h
|
|
|
|
handle.o: function.h
|
|
|
|
handle.o: handle.c
|
|
|
|
pointer.o: $(RUBY_EXTCONF_H)
|
|
|
|
pointer.o: $(arch_hdrdir)/ruby/config.h
|
|
|
|
pointer.o: $(hdrdir)/ruby/backward.h
|
|
|
|
pointer.o: $(hdrdir)/ruby/defines.h
|
|
|
|
pointer.o: $(hdrdir)/ruby/encoding.h
|
|
|
|
pointer.o: $(hdrdir)/ruby/intern.h
|
|
|
|
pointer.o: $(hdrdir)/ruby/io.h
|
|
|
|
pointer.o: $(hdrdir)/ruby/missing.h
|
2017-03-22 02:00:18 -04:00
|
|
|
pointer.o: $(hdrdir)/ruby/onigmo.h
|
2016-07-06 01:48:13 -04:00
|
|
|
pointer.o: $(hdrdir)/ruby/oniguruma.h
|
|
|
|
pointer.o: $(hdrdir)/ruby/ruby.h
|
|
|
|
pointer.o: $(hdrdir)/ruby/st.h
|
|
|
|
pointer.o: $(hdrdir)/ruby/subst.h
|
|
|
|
pointer.o: $(top_srcdir)/include/ruby.h
|
|
|
|
pointer.o: closure.h
|
|
|
|
pointer.o: conversions.h
|
|
|
|
pointer.o: fiddle.h
|
|
|
|
pointer.o: function.h
|
|
|
|
pointer.o: pointer.c
|
|
|
|
# AUTOGENERATED DEPENDENCIES END
|