Makefiles
<program> : <objectfiles> <libraries>
cc -o <program> <objectfiles> <libraries> -lm
.c.o :
cc -c $*.c
- <program>
- is the name of the program being compiled.
- <objectfiles>
- are the object files needed to create the executable.
- <libraries>
- are the HyperMesh libraries needed by the object files.
mytrans : mytrans.o hminlib.a hmlib.a
cc -o mytrans mytrans.o hminlib.a hmlib.a -lm
.c.o :
cc -c $*.c