Difference between revisions of "Makefile"

From Linuxintro
imported>ThorstenStaerk
(Created page with "<pre> duffman:~/hello # cat main.c #include <stdio.h> int main() { printf("hello world"); } duffman:~/hello # cat Makefile all:hello hello: main.c gcc main.c -o hel...")
 
imported>ThorstenStaerk
Line 16: Line 16:
 
= See also =
 
= See also =
 
* [[SPEC file]]
 
* [[SPEC file]]
 +
* http://mrbook.org/tutorials/make/
 +
* http://www.cems.uvm.edu/~snapp/maketutorial/make.html
 
[[todo]]
 
[[todo]]

Revision as of 15:07, 6 February 2011

duffman:~/hello # cat main.c 
#include <stdio.h>

int main()
{
  printf("hello world");
}
duffman:~/hello # cat Makefile 
all:hello

hello: main.c
        gcc main.c -o hello

See also

todo