mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ef9206bbea
(sockopt_new): ditto. (Init_sockopt): ditto. * ext/socket/init.c (Init_socket_init): call Init_sockopt. * ext/socket/depend: add dependency for option.o * ext/socket/mkconstants.rb: generate intern_level, intern_so_optname, intern_ip_optname, intern_ipv6_optname, intern_tcp_optname, intern_udp_optname and intern_scm_optname. * ext/socket/extconf.rb: add option.o. * ext/socket/basicsocket.c (bsock_setsockopt): accept Socket::Option object. (bsock_getsockopt): return Socket::Option object. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
24 lines
1 KiB
Text
24 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)
|
|
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
|