mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Makefile.in: function to quote for mjit_config.h
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
92dd6d8445
commit
3dd9b87861
1 changed files with 12 additions and 23 deletions
35
Makefile.in
35
Makefile.in
|
@ -544,33 +544,22 @@ un-runnable:
|
|||
mjit_config.h:
|
||||
$(ECHO) making $@
|
||||
@{ \
|
||||
quote() { \
|
||||
printf "#define $$1"; shift; \
|
||||
$${1+printf ' "%s"'$$sep "$$@"}; \
|
||||
echo; \
|
||||
}; \
|
||||
test "$(Q)" = @ || set -x; \
|
||||
echo '#ifndef RUBY_MJIT_CONFIG_H'; \
|
||||
echo '#define RUBY_MJIT_CONFIG_H 1'; \
|
||||
\
|
||||
printf '#define MJIT_CC_COMMON ' && \
|
||||
if test -n "$(CC)"; then printf ' "%s",' $(CC); fi && \
|
||||
echo; \
|
||||
\
|
||||
printf '#define MJIT_CFLAGS ' && \
|
||||
printf ' "%s",' -w $(ARCH_FLAG) && \
|
||||
sep=,; \
|
||||
quote "MJIT_CC_COMMON " $(CC); \
|
||||
quote "MJIT_CFLAGS " -w $(ARCH_FLAG); \
|
||||
quote "MJIT_OPTFLAGS " $(optflags); \
|
||||
quote "MJIT_DEBUGFLAGS " $(debugflags); \
|
||||
quote "MJIT_LDSHARED " @LDSHARED@; \
|
||||
quote "MJIT_DLDFLAGS " @DLDFLAGS@; \
|
||||
echo; \
|
||||
\
|
||||
printf '#define MJIT_OPTFLAGS ' && \
|
||||
if test -n "$(optflags)"; then printf ' "%s",' $(optflags); fi && \
|
||||
echo; \
|
||||
\
|
||||
printf '#define MJIT_DEBUGFLAGS ' && \
|
||||
if test -n "$(debugflags)"; then printf ' "%s",' $(debugflags); fi && \
|
||||
echo; \
|
||||
\
|
||||
printf '#define MJIT_LDSHARED ' && \
|
||||
if test -n "@LDSHARED@"; then printf ' "%s",' @LDSHARED@; fi && \
|
||||
echo; \
|
||||
\
|
||||
printf '#define MJIT_DLDFLAGS ' && \
|
||||
if test -n "@DLDFLAGS@"; then printf ' "%s",' @DLDFLAGS@; fi && \
|
||||
echo; \
|
||||
\
|
||||
echo '#endif /* RUBY_MJIT_CONFIG_H */'; \
|
||||
} > $@
|
||||
|
|
Loading…
Reference in a new issue