mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
61fc0c6cf4
(Init_ancdata): ditto. * ext/socket/init.c (Init_socket_init): call Init_ancdata. * ext/socket/constants.c (cmsg_type_arg): defined. * ext/socket/depend: add dependency for ancdata.o. * ext/socket/mkconstants.rb: generate scm_optname_to_int. more constants. * ext/socket/extconf.rb: add ancdata.o. * ext/socket/ancdata.c: new file. new method BasicSocket#{sendmsg,sendmsg_nonblock,recvmsg,recvmsg_nonblock} git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
25 lines
1 KiB
Text
25 lines
1 KiB
Text
SOCK_HEADERS = $(srcdir)/rubysocket.h $(hdrdir)/ruby/ruby.h $(arch_hdrdir)/ruby/config.h \
|
|
$(hdrdir)/ruby/defines.h $(hdrdir)/ruby/io.h \
|
|
$(srcdir)/sockport.h constdefs.h
|
|
|
|
init.o: init.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)
|
|
tcpsocket.o: tcpsocket.c $(SOCK_HEADERS)
|
|
tcpserver.o: tcpserver.c $(SOCK_HEADERS)
|
|
sockssocket.o: sockssocket.c $(SOCK_HEADERS)
|
|
udpsocket.o: udpsocket.c $(SOCK_HEADERS)
|
|
unixsocket.o: unixsocket.c $(SOCK_HEADERS)
|
|
unixserver.o: unixserver.c $(SOCK_HEADERS)
|
|
option.o: option.c $(SOCK_HEADERS)
|
|
ancdata.o: ancdata.c $(SOCK_HEADERS)
|
|
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
|
|
|
|
constdefs.h constdefs.c : $(srcdir)/mkconstants.rb
|
|
@echo "generating constant definitions"
|
|
@$(RUBY) $(srcdir)/mkconstants.rb -H constdefs.h -o constdefs.c
|