LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to write a Makefile? (http://www.linuxquestions.org/questions/linux-software-2/how-to-write-a-makefile-104114/)

lpriyamb 10-15-2003 03:26 AM

How to write a Makefile?
 
Hello,

I want to write a makefile for my programs. Is there a simple makefile example?

thanks

bootloader 10-15-2003 05:10 AM

It depends... If you want a VERY simple example:

program_file: program_file.c .... (all the things needed for compilaton)

bootloader 10-15-2003 05:11 AM

It depends... If you want a VERY simple example:

program_file: (tab)program_file.c .... (all the things needed for compilaton)
(tab) gcc .... (compilation command)


PS - Sorry about the first reply...


All times are GMT -5. The time now is 02:00 AM.