Question:
How to write a makefile ?
ajeet_satapathy
2006-06-22 22:25:00 UTC
How to write a makefile ?
Five answers:
Flyboy
2006-06-22 22:27:47 UTC
Here's a tutorial on creating makefiles.
demaman
2006-06-23 06:05:39 UTC
Yeah follow up on the answer above mine. You need to figure out what language you are using C or C++. but yeah just google the make file examples and then follow the format if you run into problems, try searching for the error message on google type something like

error: can't link problem with makefile

Or post a question about the error. Better yet, go to school and ask one of the proffesors who teach programming.

Good Luck
Gizmo L
2006-06-23 05:35:55 UTC
I don't disagree at all with the previous respondent who pointed you to the man page, and of course there's google. Make has documentation. I would also like to point out however, that there are alternatives to make that may or may not be something you should consider. For example, Ant.



In general you're talking "build" tools. Make has been very pervasive in the c and c++ world, where it was born, but there are alternatives out there you should explore.
Raj
2006-06-23 05:35:18 UTC
1) open www.google.com

2) type "makefile"

3) hit search

4) u'll get planty of stufff there..
Dave R
2006-06-23 05:28:38 UTC
man make



Sorry to give such a glib answer, but the only way to learn how is to read the docs and start plugging away at it.



Just to encourage you, it's not as hard as it seems at first. Once you see a few examples it starts to make sense.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...