Re: specifying yacc flags for single file?
Re: specifying yacc flags for single file?
- Subject: Re: specifying yacc flags for single file?
- From: Glen Low <email@hidden>
- Date: Mon, 17 May 2004 19:42:26 +0800
On 16/05/2004, at 5:41 PM, Izidor Jerebic wrote:
Hello!
I would like to specify a YACC flag -p xx for single file. This flag
defines prefix for global symbols and should be specified for each
yacc source file differently. How could I do that? If I set the
additional compiler flags in Get Info Panel, they are sent to gcc...
You can set up a custom build rule to handle this. Get Info on the
target > Rules > + , then choose file type = source files with names
matching = */xyz.y and compiler = custom script = put whatever you want
in here, and output file = $(DERIVED_SOURCES)/xyz.c. Then make sure
your file in the Sources build phase of your target.
Xcode is fairly smart about this, it will do dependency analysis on
this and even complain if a file doesn't have a rule that builds it.
And, by the way, is there a way to specify bison instead of yacc?
See above.
Cheers, Glen Low
---
pixelglow software | simply brilliant stuff
www.pixelglow.com
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.