Solved

Class for Parsing (GNU) Makefiles...

Posted on 1998-03-15
6
227 Views
Last Modified: 2010-04-10
  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.
0
Comment
Question by:jtwine100697
  • 3
  • 2
6 Comments
 
LVL 2

Expert Comment

by:sprinkmeier
Comment Utility
Why not go to the horses mouth?
Download the source code for GNU MAKE?
0
 
LVL 4

Author Comment

by:jtwine100697
Comment Utility
  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
 
LVL 1

Expert Comment

by:vsinha
Comment Utility
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 4

Author Comment

by:jtwine100697
Comment Utility
  "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
 
LVL 1

Accepted Solution

by:
vsinha earned 70 total points
Comment Utility
Do you mean this by, "please submit an answer"
0
 
LVL 4

Author Comment

by:jtwine100697
Comment Utility
 Yes! :P

-=- James.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now