LinuxQuestions.org

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

lpriyamb 10-15-2003 02: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 04: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 04: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 07:54 PM.