?
Solved

Class for Parsing (GNU) Makefiles...

Posted on 1998-03-15
6
Medium Priority
?
246 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 2

Expert Comment

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

Author Comment

by:jtwine100697
ID: 1183498
  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
ID: 1183499
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 4

Author Comment

by:jtwine100697
ID: 1183500
  "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 210 total points
ID: 1183501
Do you mean this by, "please submit an answer"
0
 
LVL 4

Author Comment

by:jtwine100697
ID: 1183502
 Yes! :P

-=- James.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses
Course of the Month15 days, 17 hours left to enroll

743 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