From 1e760c0be3ed35874204114e7454509f740c0fe2 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Wed, 22 Aug 2007 01:53:51 +0000 Subject: add tag v1_8_6_71 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_8_5_71@13189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby_1_8_6/ext/dl/depend | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 ruby_1_8_6/ext/dl/depend (limited to 'ruby_1_8_6/ext/dl/depend') diff --git a/ruby_1_8_6/ext/dl/depend b/ruby_1_8_6/ext/dl/depend new file mode 100644 index 0000000000..fba3df7a3d --- /dev/null +++ b/ruby_1_8_6/ext/dl/depend @@ -0,0 +1,46 @@ +LDSHARED_TEST = $(LDSHARED) $(LDFLAGS) test/test.o -o test/libtest.so $(LOCAL_LIBS) + +libtest.so: test/libtest.so + +test/libtest.so: test/test.o $(srcdir)/test/libtest.def + $(RUBY) -rftools -e 'ARGV.each do|d|File.mkpath(File.dirname(d))end' $@ + $(LDSHARED_TEST:dl.def=test/libtest.def) + +test/test.o: $(srcdir)/test/test.c + @$(RUBY) -rftools -e 'File.mkpath(*ARGV)' test + $(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/test/test.c -o $@ + +test:: dl.so libtest.so force + $(RUBY) -I. -I$(srcdir)/lib $(srcdir)/test/test.rb + +force: + +.PHONY: force test + +allclean: distclean + @rm -f $(CLEANFILES) $(DISTCLEANFILES) + +$(OBJS): ./dlconfig.h + +sym.o: dl.h call.func + +dl.o: dl.h callback.func cbtable.func + +ptr.o: dl.h + +handle.o: dl.h + +call.func: $(srcdir)/mkcall.rb ./dlconfig.rb + @echo "Generating call.func" + @$(RUBY) $(srcdir)/mkcall.rb > $@ + +callback.func: $(srcdir)/mkcallback.rb ./dlconfig.rb + @echo "Generating callback.func" + @$(RUBY) $(srcdir)/mkcallback.rb > $@ + +cbtable.func: $(srcdir)/mkcbtable.rb ./dlconfig.rb + @echo "Generating cbtable.func" + @$(RUBY) $(srcdir)/mkcbtable.rb > $@ + +debug: + $(MAKE) CPPFLAGS="$(CPPFLAGS) -DDEBUG" -- cgit v1.2.3