"Given a MAKEFILE (yeah a makefile), design the data structure that a parser would create and then write code that iterates over that data structure executing commands if needed.

Showing Answers 1 - 1 of 1 Answers

dilipiyer

  • Jan 23rd, 2007
 

In a makefile, the command starts with a . All we need to do is identify the line starting with the and execute it with popen() or system command. Each command line is preceded by its call name. eg:all: gcc hello.cSo when we call make all. it runs gcc hello.c.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions