diff options
| author | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-02 10:56:13 +0000 |
|---|---|---|
| committer | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-02 10:56:13 +0000 |
| commit | d235ceb328813138a4910c9798e9d5959405de4b (patch) | |
| tree | b1b54ab76217775071de4e3669674aa7887aa6b9 /ext/dl/depend | |
| parent | b7389bf5d46b0434b940ed78e650efc16ffc8bc6 (diff) | |
| download | ruby-d235ceb328813138a4910c9798e9d5959405de4b.tar.gz ruby-d235ceb328813138a4910c9798e9d5959405de4b.tar.xz ruby-d235ceb328813138a4910c9798e9d5959405de4b.zip | |
Add ruby-dl
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/depend')
| -rw-r--r-- | ext/dl/depend | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/ext/dl/depend b/ext/dl/depend new file mode 100644 index 000000000..50ef5cebb --- /dev/null +++ b/ext/dl/depend @@ -0,0 +1,45 @@ +RUBY = $(RUBY_INSTALL_NAME)$(EXEEXT) +CLEANFILES = test/test.o +DISTCLEANFILES = call.func callback.func cbtable.func dlconfig.rb dlconfig.h \ + test/libtest.so test/*~ *~ mkmf.log + +libtest.so: test/libtest.so + +test/libtest.so: test/test.o test/libtest.def + $(RUBY) -rftools -e 'ARGV.each{|d|File.mkpath(File.dirname(d))}' $@ + `$(RUBY) -e 'print ARGV.join(" ").gsub(/dl\\.def/,"test/libtest.def")' $(LDSHARED)` $(LDFLAGS) test/test.o -o test/libtest.so + +test/test.o: test/test.c + @$(RUBY) -rftools -e 'File.mkpath(*ARGV)' test + $(CC) $(CFLAGS) $(CPPFLAGS) -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: call.func + +dl.o: callback.func cbtable.func + +call.func: mkcall.rb dlconfig.rb + @echo "Generating call.func" + @$(RUBY) $< > $@ + +callback.func: mkcallback.rb dlconfig.rb + @echo "Generating callback.func" + @$(RUBY) $< > $@ + +cbtable.func: mkcbtable.rb dlconfig.rb + @echo "Generating cbtable.func" + @$(RUBY) $< > $@ + +debug: + $(MAKE) CFLAGS+=-DDEBUG |
