Supply more details on how lc/uc/lcfirst/ucfirst are
[p5sagit/p5-mst-13.2.git] / x2p / Makefile.SH
index 5db022f..68c63a7 100755 (executable)
@@ -1,4 +1,4 @@
-case $CONFIGDOTSH in
+case $PERL_CONFIG_SH in
 '')
        if test -f config.sh; then TOP=.;
        elif test -f ../config.sh; then TOP=..;
@@ -58,6 +58,8 @@ FIRSTMAKEFILE = $firstmakefile
 
 TRNL = '$trnl'
 
+OPTIMIZE = $optimize
+
 .SUFFIXES: .c \$(OBJ_EXT)
 
 !GROK!THIS!
@@ -65,7 +67,7 @@ TRNL = '$trnl'
 cat >>Makefile <<'!NO!SUBS!'
 
 REALPERL = ../perl
-CCCMD = `sh $(shellflags) cflags $@`
+CCCMD = `sh $(shellflags) cflags "optimize='$(OPTIMIZE)'" $@`
 
 public = a2p s2p find2perl
 
@@ -102,7 +104,7 @@ all: $(public) $(private) $(util)
        @echo " "
 
 compile: all
-       $(REALPERL) -I../lib ../utils/perlcc -regex 's/$$/.exe/' $(plextract) -prog -verbose dcf -log ../compilelog;  
+       $(REALPERL) -I../lib ../utils/perlcc -I .. -L .. $(plextract) -v -log ../compilelog;  
 
 a2p: $(obj) a2p$(OBJ_EXT)
        $(CC) -o a2p $(LDFLAGS) $(obj) a2p$(OBJ_EXT) $(libs)
@@ -119,6 +121,7 @@ run_byacc:  FORCE check_byacc
        $(BYACC) a2p.y
        rm -f a2p.c
        sed -e 's/(yyn = yydefred\[yystate\])/((yyn = yydefred[yystate]))/' \
+           -e 's/(yys = getenv("YYDEBUG"))/((yys = getenv("YYDEBUG")))/' \
            -e 's/^yyerrlab://' \
            -e 's/^    goto yyerrlab;//' \
            -e 's/^yynewerror://' \