This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Backport #27447. Add madly parser.
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Fri, 31 Mar 2006 19:30:59 +0000 (19:30 +0000)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Fri, 31 Mar 2006 19:30:59 +0000 (19:30 +0000)
p4raw-id: //depot/metaconfig@27651

U/perl/mad.U

index 5e748ea..2877b15 100644 (file)
@@ -7,19 +7,31 @@
 ?RCS:
 ?RCS: $Log: mad.U,v $
 ?RCS:
-?MAKE:mad: Myread Setvar
+?MAKE:mad madlyh madlyobj madlysrc: Myread Setvar
 ?MAKE: -pick add $@ %<
 ?S:mad:
 ?S:    This variable indicates that the Misc Attribute Definition code is to
 ?S:    be compiled.
 ?S:.
+?S:madlyh:
+?S:    If the Misc Attribute Decoration is to be compiled, this variable is
+?S:    set to the name of the extra header files to be used, else it is ''
+?S:.
+?S:madlyobj:
+?S:    If the Misc Attribute Decoration is to be compiled, this variable is
+?S:    set to the name of the extra object files to be used, else it is ''
+?S:.
+?S:madlysrc:
+?S:    If the Misc Attribute Decoration is to be compiled, this variable is
+?S:    set to the name of the extra C source files to be used, else it is ''
+?S:.
 ?C:PERL_MAD:
 ?C:    This symbol, if defined, indicates that the Misc Attribution
 ?C:    Declaration code should be conditionally compiled.
 ?C:.
 ?H:#$mad       PERL_MAD                /**/
 ?H:.
-?LINT:set mad
+?LINT:set mad madlyh madlyobj madlysrc
 
 case "$mad" in
 $define|true|[yY]*)    dflt='y' ;;
@@ -36,8 +48,14 @@ EOM
 rp='Build Perl with MAD?'
 . ./myread
 case "$ans" in
-y|Y)   val="$define" ;;
-*)     val="$undef"  ;;
+y|Y)   val="$define"
+       madlyh='madly.h madly.act madly.tab'
+       madlysrc='madly.c'
+       madlyobj="madly$_o" ;;
+*)     val="$undef"
+       madlyh=''
+       madlysrc=''
+       madlyobj='' ;;
 esac
 set mad
 eval $setvar