Link to home
Start Free TrialLog in
Avatar of jtwine100697
jtwine100697Flag for United States of America

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.
Avatar of sprinkmeier
sprinkmeier

Why not go to the horses mouth?
Download the source code for GNU MAKE?
Avatar of jtwine100697

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.

  "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.
ASKER CERTIFIED SOLUTION
Avatar of vsinha
vsinha

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
 Yes! :P

-=- James.