summaryrefslogtreecommitdiff
path: root/Makefile.micro
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2007-03-31 13:50:18 -0400
committerSteve Peters <steve@fisharerojo.org>2007-04-01 12:57:24 +0000
commit2eacba2f038fca0c7ce4713e73ef229faa3f3caa (patch)
tree11330c09c2c6b2fdf871ac8c18dd98de8085c06e /Makefile.micro
parente3abe207f764929a97eafa503a3780d5b7636ed2 (diff)
downloadperl-2eacba2f038fca0c7ce4713e73ef229faa3f3caa.tar.gz
microperl plus missing config vars
Message-ID: <460ED79A.5030809@iki.fi> p4raw-id: //depot/perl@30823
Diffstat (limited to 'Makefile.micro')
-rw-r--r--Makefile.micro6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.micro b/Makefile.micro
index 890140bff2..61a758e71b 100644
--- a/Makefile.micro
+++ b/Makefile.micro
@@ -5,6 +5,7 @@ CFLAGS = $(DEFINES) $(OPTIMIZE)
LIBS = -lm
_O = .o
ENV = env
+PERL = perl
all: microperl
@@ -36,6 +37,11 @@ distclean: clean
# The microconfiguration.
+# Cannot use $$ in the command line itself, so using var expansion instead.
+Config = '$$Config{$$1}'
+patch_uconfig:
+ $(PERL) -MConfig -pi -e "s/^((?:short|int|long(?:dbl|long)?|ptr|double|[iun]v|u?quad|[iu]\d+|fpos|lseek)(?:size|type)|byteorder|d_quad|quadkind|use64.+)=.*/\\1='"$(Config)"'/g" uconfig.shx
+
regen_uconfig uconfig.h: uconfig.sh
$(ENV) CONFIG_SH=uconfig.sh CONFIG_H=uconfig.h sh ./config_h.SH