Problem with yacc files in native targets solved
Problem with yacc files in native targets solved
- Subject: Problem with yacc files in native targets solved
- From: Frederik Seiffert <email@hidden>
- Date: Wed, 05 Nov 2003 16:01:01 +0100
- Organization: equinux - http://www.equinux.com
Hi!
Some of you might have noticed that XCode 1.0 and 1.0.1 isn't able to
compile .y files with Yacc in native targets. I've now found a workaround
for this:
- show info for your native target and goto tab "Rules"
- add a new rule with the "+" button for processing Yacc source files
- use 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
That's it! You should now be able to compile Yacc files. :)
Frederik
_______________________________________________
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.