Yacc files compiling with Xcode and native targets is broken...

Wednesday, November 05 2003 @ 07:12 PM UTC

Contributed by: Admin

Is there a workaround ?

Select your native target:
- show info and goto tab "Rules"
- add a new rule with the "+" button for processing Yacc source files
- enter the following custom script for compilation:
cd "$(DERIVED_FILE_DIR)/Yacc" && /usr/bin/yacc -d "$(INPUT_FILE_PATH)"

- add the following files as output files:
$(DERIVED_FILE_DIR)/Yacc/y.tab.h
$(DERIVED_FILE_DIR)/Yacc/y.tab.c

(create a separated line for each one using the "+" sign)

0 comments



http://www.macosxguru.net/article.php?story=2003110519121860