jtwine100697
asked on
Class for Parsing (GNU) Makefiles...
Hey all...
I am trying to find a parsing class (or even straight C code) for (GNU/DJGPP) Makefiles. It is for a personal project that uses DJGPP (MS-DOS version of the GNU C/C++ compiler), and I need to read in a Makefile, and be able to find out compiler and linker flags, defines, what targets are available, what the dependencies are for each target, etc, etc.
Even a class that does partial parsing would be helpful, I might be ableo to finish the rest. I just to not know that much about Makefiles.
Thanx!
-=- James.
I am trying to find a parsing class (or even straight C code) for (GNU/DJGPP) Makefiles. It is for a personal project that uses DJGPP (MS-DOS version of the GNU C/C++ compiler), and I need to read in a Makefile, and be able to find out compiler and linker flags, defines, what targets are available, what the dependencies are for each target, etc, etc.
Even a class that does partial parsing would be helpful, I might be ableo to finish the rest. I just to not know that much about Makefiles.
Thanx!
-=- James.
ASKER
I know about the source for GNU Make, but I would like to know if someone has already done this before, so that I do not need to reinvent the very same wheel!
Referencing the actual source for a parser is a last resort for me.
I am reopening this for possible answers.
-=- James.
Referencing the actual source for a parser is a last resort for me.
I am reopening this for possible answers.
-=- James.
ASKER
"vsinha", please submit an answer... I have decided to not parse the makefiles, but to generate my own ones, in a specific format, and then use that format.
But thanx for the pointer!
-=- James.
But thanx for the pointer!
-=- James.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes! :P
-=- James.
-=- James.
Download the source code for GNU MAKE?