Using Objective-C code with BISON in the GNUmakefile

Nate Smith <[email protected]>
Newsgroups gmane.comp.lib.gnustep.user
Message-ID <[email protected]>
Hello everyone,

In my GNUmakefile I specify a parser, parser.y, that is translated by
BISON into parser.c, which is then compiled as a C program. The problem
is, parser.y contains Objective-C code, and hence I get pages and pages
of errors when parser.c is compiled.

I can't find any settings to change in the GNUmakefile to make parser.c
be compiled using an Objective-C compiler. I tried renaming parser.c to
parser.m, and putting parser.m in my OBJC_FILES string, and (of course)
tried putting parser.c in my C_FILES string. I tried changing the %.c:
%.y rule to use an objective-c compiler as well. All to no avail. The
only user-changeable setting in this regard seems to be YACC_FLAGS. 

Am I missing something simple here? Thanks for any help.

Nate
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.