[Redbutton-devel] SF.net SVN: redbutton: [349] redbutton-author/trunk/Makefile
Brought to you by:
skilvington
|
From: <ski...@us...> - 2007-08-24 14:06:53
|
Revision: 349
http://redbutton.svn.sourceforge.net/redbutton/?rev=349&view=rev
Author: skilvington
Date: 2007-08-24 07:06:52 -0700 (Fri, 24 Aug 2007)
Log Message:
-----------
cope with old versions of gcc that can't do -c -o with multiple input files
Modified Paths:
--------------
redbutton-author/trunk/Makefile
Modified: redbutton-author/trunk/Makefile
===================================================================
--- redbutton-author/trunk/Makefile 2007-08-24 13:58:03 UTC (rev 348)
+++ redbutton-author/trunk/Makefile 2007-08-24 14:06:52 UTC (rev 349)
@@ -9,7 +9,8 @@
DESTDIR=/usr/local
OBJS= mhegc.o \
- parser.o \
+ lex.parser.o \
+ parser.tab.o \
utils.o
TARDIR=`basename ${PWD}`
@@ -18,9 +19,8 @@
${CC} ${CFLAGS} -o mhegc ${OBJS} ${LIBS}
mhegc.o: mhegc.c parser.tab.h
- ${CC} ${CFLAGS} -c mhegc.c
-parser.tab.h: parser.o
+parser.tab.h: parser.tab.c
ccc: ccc.y ccc.l
${LEX} -i -t ccc.l > lex.ccc.c
@@ -37,10 +37,11 @@
cat grammar | ./ccc >> parser.y
cat parser.y.footer >> parser.y
-parser.o: parser.l parser.y
+lex.parser.c: parser.l
${LEX} -i -t parser.l > lex.parser.c
+
+parser.tab.c: parser.y
${YACC} -b parser -d parser.y
- ${CC} ${CFLAGS} -c -o parser.o lex.parser.c parser.tab.c
.c.o:
${CC} ${CFLAGS} -c $<
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|