Update of /cvsroot/mahogany/M
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv1986

Modified Files:
        makerules 
Log Message:
fixed rule for the compilation of C files when YACC is not defined (the correct 
fule was being overridden by the rule for .c-yacc files)

Index: makerules
===================================================================
RCS file: /cvsroot/mahogany/M/makerules,v
retrieving revision 1.66
retrieving revision 1.67
diff -b -u -2 -r1.66 -r1.67
--- makerules   3 May 2006 17:18:01 -0000       1.66
+++ makerules   29 Jul 2006 14:20:20 -0000      1.67
@@ -100,10 +100,12 @@
        @rm -f $*.c
 else
+# we have to rename the file to have .c extension, otherwise some compilers
+# refuse to accept it
 vpath %.c-yacc .src
-%.c: %.c-yacc
+%.y.c: %.c-yacc
        @cp $< $@
 
-%.o: %.c
-       $(CC) -o $@ $(M_COMPILE_CC) $*.c
+%.o: %.y.c
+       $(CC) -o $@ $(M_COMPILE_CC) $<
        @f=$(notdir $*); test ! -f $$f.d || { sed -e "s,^$$f\.o:,$@:," -e 
"s,$*.c,$<," $$f.d >$*.t && rm -f $$f.d && mv $*.t $*.d; }
 endif


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to