• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: specifying yacc flags for single file? SOLVED
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >specifying yacc flags for single file? (From: Izidor Jerebic <email@hidden>)
 >Re: specifying yacc flags for single file? (From: Glen Low <email@hidden>)

  • Prev by Date: Re: Can't "xcodebuild install" embedded frameworks?
  • Next by Date: carbon project: strcmp, strlen, memcpy, etc. undeclared
  • Previous by thread: Re: specifying yacc flags for single file?
  • Next by thread: windows 2000 server and Mac client for CVS
  • Index(es):
    • Date
    • Thread