Help with a C program that acts like the make utility

Hi,

I'm trying to create a C program that functions like the make utility in UNIX for personal use. My program would read in from a generic makefile and execute whatever is in that makefile but I'm not sure as to where I should start coding.

I would appreciate any help.

Thanks.

You have 3 options for that

  1. Use the make utility, as it can execute any shell commands that 'sh' understands
  2. Write a parameter-driven shell script
  3. Create your own scripting language (which isn't a trivial job)

At least that are your options until you can give more details on what you want to accomplish.