summaryrefslogtreecommitdiff
path: root/ext/socket/depend
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-17 10:19:03 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-17 10:19:03 +0000
commit28028fc2b92dfe13b4e53cb0db5ece74064e76a6 (patch)
treea1fe01f9ba97b0ccecb3ec6543bc61d162810c8a /ext/socket/depend
parent29aff19f1ab92bd9a4fc891fcaed5b6b4bb18cb6 (diff)
* ext/socket/mkconstants.rb: generate a header file for generated
functions. * ext/socket/rubysocket.h: include constdefs.h. don't declare generated functions. * ext/socket/constants.c: include constdefs.c instead of constants.h. * ext/socket/depend: dependency updated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/depend')
-rw-r--r--ext/socket/depend10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/socket/depend b/ext/socket/depend
index 988cda3..a18ec60 100644
--- a/ext/socket/depend
+++ b/ext/socket/depend
@@ -1,9 +1,9 @@
SOCK_HEADERS = rubysocket.h $(hdrdir)/ruby/ruby.h $(arch_hdrdir)/ruby/config.h \
$(hdrdir)/ruby/defines.h $(hdrdir)/ruby/io.h \
- sockport.h constants.h
+ sockport.h constdefs.h
init.o: init.c $(SOCK_HEADERS)
-constants.o: constants.c $(SOCK_HEADERS)
+constants.o: constants.c constdefs.c $(SOCK_HEADERS)
basicsocket.o: basicsocket.c $(SOCK_HEADERS)
socket.o: socket.c $(SOCK_HEADERS)
ipsocket.o: ipsocket.c $(SOCK_HEADERS)
@@ -18,6 +18,6 @@ raddrinfo.o: raddrinfo.c $(SOCK_HEADERS)
getnameinfo.o: getnameinfo.c $(arch_hdrdir)/ruby/config.h addrinfo.h sockport.h
getaddrinfo.o: getaddrinfo.c $(arch_hdrdir)/ruby/config.h addrinfo.h sockport.h
-constants.h: $(srcdir)/mkconstants.rb
- @echo "generating constants.h"
- @$(RUBY) $(srcdir)/mkconstants.rb -o $@
+constdefs.h constdefs.c : $(srcdir)/mkconstants.rb
+ @echo "generating constant definitions"
+ @$(RUBY) $(srcdir)/mkconstants.rb -H constdefs.h -o constdefs.c