Re: specifying yacc flags for single file? SOLVED
Re: specifying yacc flags for single file? SOLVED
- Subject: Re: specifying yacc flags for single file? SOLVED
- From: Izidor Jerebic <email@hidden>
- Date: Mon, 17 May 2004 17:24:42 +0200
On 17 May 2004, at 13:42, Glen Low wrote:
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.
Thanks all for replying. I went with the above solution, but beware
that you need to specify DERIVED_SOURCES_DIR as variable (notice the
final _DIR)! And I had two files xyz.m and xyz.m.h as output. The
command was
bison -d -p xx xyz.ym -o $(DERIVED_SOURCES_DIR)/xyz.m
and I specified two output files
$(DERIVED_SOURCES_DIR)/xyz.m
$(DERIVED_SOURCES_DIR)/xyz.m.h
Thanks again,
izidor
_______________________________________________
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.