1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/io/console/depend
nobu 09389b47d2 console.c: undefined vk
* ext/io/console/console.c (console_key_pressed_p): raise
  undefined virtual key code.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-07-21 10:52:19 +00:00

27 lines
815 B
Text

$(OBJS): $(HDRS) $(ruby_headers) \
$(VK_HEADER) $(VK_HEADER:.chksum=.h) \
$(hdrdir)/ruby/io.h \
$(hdrdir)/ruby/encoding.h \
$(hdrdir)/ruby/oniguruma.h
win32_vk.inc: win32_vk.list
win32_vk.h: win32_vk.list
.list.inc:
gperf --ignore-case -E -C -P -p -j1 -i 1 -g -o -t -K ofs -N console_win32_vk -k* $< \
| sed 's/(int)(long)&((\(struct stringpool_t\) *\*)0)->\(stringpool_[a-z0-9]*\)/offsetof(\1, \2)/g' \
> $(@F)
.list.h:
$(RUBY) -anF, \
-e '(n=$$F[1]) and (n.strip!; /\AVK_/=~n) and' \
-e 'puts %[#ifndef #{n}\n# define #{n} (unsigned short)-1\n#endif]' \
$< > $@
.SUFFIXES: .chksum .list .inc
.list.chksum:
@$(RUBY) -I$(top_srcdir)/tool -rchecksum \
-e "Checksum.update(ARGV) {|k|k.copy(k.target) rescue k.make(k.target)}" \
-- --make=$(MAKE) -I$(srcdir) $(<F) $(@F:.chksum=.inc)