writing Makefiles

Dear Authors,

I am not familiar with how to editing and writing Makefiles, would you please introduce me some references to learn it?

Thank you,

Yasti

http://lmgtfy.com/?q=makefile+tutorial

This isn't really a LAMMPS question, is it?

Thanks Niall, I did not really know it is a programming language and
thought it is for LAMMPS! excuse me.

Yasti

Thanks Niall, I did not really know it is a programming language and
thought it is for LAMMPS! excuse me.

there are a bunch of related issues. you also need to understand
something about compilers, compiler flags and what they do.

i've been lecturing about this at various levels of detail, at
different occasions and for different audiences from all over the
globe for almost 10 years now. there are a bunch of lecture slides on
this and related subjects posted on my home page at:
https://sites.google.com/site/akohlmey/lectures

for a condensed overview that should get you started check out, e.g.:
https://sites.google.com/site/akohlmey/lectures/math-8210---spring-2012/02_compiling.pdf?attredirects=0&d=1

axel.

google Makefile - the 1st hit looks promising:

Makefile Tutorial

Steve

The entire GNU Make manual is online in a variety of formats:

http://www.gnu.org/software/make/manual/