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.
LVL 4
jtwine100697Asked:
Who is Participating?
 
vsinhaConnect With a Mentor Commented:
Do you mean this by, "please submit an answer"
0
 
sprinkmeierCommented:
Why not go to the horses mouth?
Download the source code for GNU MAKE?
0
 
jtwine100697Author Commented:
  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.

0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
vsinhaCommented:
0
 
jtwine100697Author Commented:
  "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.
0
 
jtwine100697Author Commented:
 Yes! :P

-=- James.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.