mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ruby-runner.h
* template/ruby-runner.h.in: separate configured part from ruby-runner.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1a88b871d1
commit
7343b492a2
4 changed files with 8 additions and 7 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -103,7 +103,7 @@ y.tab.c
|
|||
/rubicon
|
||||
/ruby
|
||||
/ruby-runner
|
||||
/ruby-runner.c
|
||||
/ruby-runner.h
|
||||
/ruby-man.rd.gz
|
||||
/sizes.c
|
||||
/test.rb
|
||||
|
|
|
@ -254,11 +254,11 @@ ruby_pc = @ruby_pc@
|
|||
$(ruby_pc):
|
||||
@./config.status --file=$@:$(srcdir)/template/ruby.pc.in
|
||||
|
||||
ruby-runner.c: template/ruby-runner.c.in
|
||||
ruby-runner.h: template/ruby-runner.h.in
|
||||
@./config.status --file=$@:$(srcdir)/template/$(@F).in
|
||||
|
||||
ruby-runner$(EXEEXT): ruby-runner.c
|
||||
$(Q) $(PURIFY) $(CC) $(CFLAGS) $(CPPFLAGS) -DRUBY_INSTALL_NAME=$(RUBY_INSTALL_NAME) $(LDFLAGS) $(LIBS) $(OUTFLAG)$@ ruby-runner.c
|
||||
ruby-runner$(EXEEXT): ruby-runner.c ruby-runner.h
|
||||
$(Q) $(PURIFY) $(CC) $(CFLAGS) $(CPPFLAGS) -DRUBY_INSTALL_NAME=$(RUBY_INSTALL_NAME) $(LDFLAGS) $(LIBS) $(OUTFLAG)$@ $<
|
||||
|
||||
$(RBCONFIG): $(PREP)
|
||||
|
||||
|
|
|
@ -3,9 +3,7 @@
|
|||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#define BUILDDIR "@abs_top_builddir@"
|
||||
#define LIBPATHENV "@LIBPATHENV@"
|
||||
#define PATH_SEP '@PATH_SEPARATOR@'
|
||||
#include "ruby-runner.h"
|
||||
|
||||
#define STRINGIZE(expr) STRINGIZE0(expr)
|
||||
#define STRINGIZE0(expr) #expr
|
3
template/ruby-runner.h.in
Normal file
3
template/ruby-runner.h.in
Normal file
|
@ -0,0 +1,3 @@
|
|||
#define BUILDDIR "@abs_top_builddir@"
|
||||
#define LIBPATHENV "@LIBPATHENV@"
|
||||
#define PATH_SEP '@PATH_SEPARATOR@'
|
Loading…
Reference in a new issue