summaryrefslogtreecommitdiff
path: root/ext/socket/depend
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-28 06:29:52 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-28 06:29:52 +0000
commit845cfb281bbd5e6a9b597cc9a0b291c02ad9a8ce (patch)
tree519c4739f01dbaf27df3c495b31340f39270daba /ext/socket/depend
parentff5186ea4e97ad142e982c90ebe716188fb9b9b7 (diff)
* ext/socket/socket.c (Init_socket): ported more Socket::Constants
from ruby_1_8, and made it easy to add new constants. [ruby-dev:25771] * ext/socket/depend: ditto. * ext/socket/mkconstants.rb: ditto. (added) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/depend')
-rw-r--r--ext/socket/depend8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/socket/depend b/ext/socket/depend
index cca6d4e..eab099b 100644
--- a/ext/socket/depend
+++ b/ext/socket/depend
@@ -1,3 +1,9 @@
-socket.o : socket.c $(hdrdir)/ruby.h $(topdir)/config.h $(hdrdir)/defines.h $(hdrdir)/rubyio.h $(hdrdir)/rubysig.h sockport.h
+DISTCLEANFILES = $(srcdir)/constants.h
+
+socket.o: socket.c $(hdrdir)/ruby.h $(topdir)/config.h $(hdrdir)/defines.h $(hdrdir)/rubyio.h $(hdrdir)/rubysig.h sockport.h constants.h
getnameinfo.o: getnameinfo.c $(topdir)/config.h addrinfo.h sockport.h
getaddrinfo.o: getaddrinfo.c $(topdir)/config.h addrinfo.h sockport.h
+
+constants.h: $(srcdir)/mkconstants.rb
+ @echo "generating constants.h"
+ @$(RUBY) $(srcdir)/mkconstants.rb > $@