diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-08-12 11:51:25 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-08-12 11:51:25 +0000 |
commit | 2f42fcb0c2cd8c2699589848aee7b8ee07b30c4f (patch) | |
tree | ada8ea9f2ed4be699d066737eab622e87b4ba42c /Makefile.micro | |
parent | a25ef67de93be431e21193a0e7ed5fca8bc883f7 (diff) | |
download | perl-2f42fcb0c2cd8c2699589848aee7b8ee07b30c4f.tar.gz |
Apply much of Ilya's microperl patch, but instead of
implementing the opendir()/readdir()/closedir() using
external commands give up "ANSI-pureness" and define them
in uconfig.sh, also define other stuff like rename() and putenv().
Leave out the $| emulation in my_fork() since we are
not supposed to have fork() under microperl.
p4raw-id: //depot/perl@20646
Diffstat (limited to 'Makefile.micro')
-rw-r--r-- | Makefile.micro | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Makefile.micro b/Makefile.micro index 7950f7108c..b509448aeb 100644 --- a/Makefile.micro +++ b/Makefile.micro @@ -1,9 +1,10 @@ LD = $(CC) -DEFINES = -DPERL_CORE -DPERL_MICRO -OPTIMIZE = +DEFINES = -DPERL_CORE -DPERL_MICRO -DSTANDARD_C -DPERL_USE_SAFE_PUTENV +OPTIMIZE = CFLAGS = $(DEFINES) $(OPTIMIZE) LIBS = -lm _O = .o +ENV = env all: microperl @@ -15,7 +16,7 @@ O = uav$(_O) udeb$(_O) udoio$(_O) udoop$(_O) udump$(_O) \ uregcomp$(_O) uregexec$(_O) urun$(_O) \ uscope$(_O) usv$(_O) utaint$(_O) utoke$(_O) \ unumeric$(_O) ulocale$(_O) \ - uuniversal$(_O) uutf8$(_O) uutil$(_O) uperlapi$(_O) + uuniversal$(_O) uutf8$(_O) uutil$(_O) uperlapi$(_O) uxsutils$(_O) microperl: $(O) $(LD) -o $@ $(O) $(LIBS) @@ -37,7 +38,7 @@ distclean: clean # The microconfiguration. uconfig.h: uconfig.sh config_h.SH - CONFIG_SH=uconfig.sh CONFIG_H=uconfig.h sh ./config_h.SH + $(ENV) CONFIG_SH=uconfig.sh CONFIG_H=uconfig.h sh ./config_h.SH # Do not regenerate perly.c and perly.h. @@ -80,7 +81,7 @@ uperlmain$(_O): $(HE) miniperlmain.c $(CC) -c -o $@ $(CFLAGS) miniperlmain.c uop$(_O): $(HE) op.c keywords.h - $(CC) -c -o $@ $(CFLAGS) op.c + $(CC) -c -o $@ $(CFLAGS) -DPERL_EXTERNAL_GLOB op.c ureentr$(_O): $(HE) reentr.c $(CC) -c -o $@ $(CFLAGS) reentr.c @@ -154,4 +155,7 @@ uutil$(_O): $(HE) util.c uperlapi$(_O): $(HE) perlapi.c perlapi.h $(CC) -c -o $@ $(CFLAGS) perlapi.c +uxsutils$(_O): $(HE) xsutils.c + $(CC) -c -o $@ $(CFLAGS) xsutils.c +# That's it, folks! |