mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
6ed9bdd463
* enc/Makefile.in, enc/depend, enc/make_encmake.rb: moved serb code. * lib/mkmf.rb (depend_rules): now takes content string, not file name. * win32/enc-setup.mak: overrides default target. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
24 lines
619 B
Text
24 lines
619 B
Text
! encs = (Dir.open($srcdir) {|d| d.grep(/.+\.c\z/)} - CONFIG["BUILTIN_ENCS"].split).each {|e| e.chomp!(".c")}
|
|
|
|
VPATH = <% %w[$(arch_hdrdir)/ruby $(hdrdir)/ruby $(top_srcdir) $(srcdir)].join(CONFIG["PATH_SEPARATOR"]) %>
|
|
|
|
ENCOBJS = <%encs.map {|e|"#{e}.$(OBJEXT)"}.join(" \\\n\t ")+"\n"%>
|
|
|
|
ENCSOS = <%encs.map {|e|"$(ENCSODIR)/#{e}.$(DLEXT)"}.join(" \\\n\t ")+"\n"%>
|
|
|
|
all: $(ENCSOS)
|
|
|
|
.c.$(OBJEXT):
|
|
<%COMPILE_C%>
|
|
|
|
$(ENCOBJS): regenc.h oniguruma.h config.h defines.h
|
|
|
|
! encs.each do |e|
|
|
|
|
$(ENCSODIR)/<%e%>.$(DLEXT): <%e%>.$(OBJEXT)
|
|
<%LINK_SO.gsub(/\n/, "\n\t")%>
|
|
! end
|
|
|
|
! encs.each do |e|
|
|
<%e%>.$(OBJEXT): <%e%>.c
|
|
! end
|