User Tools

Site Tools


programming:make

This is an old revision of the document!


Programming - Make

make is a program that tries to be smart about running compiles.


Make


Basic Example

Create a C program

hello.c
#include <stdio.h>
 
int main()
{
  printf("Hello World");
  return 0;
}

Create a Makefile

Makefile
hello: hello.c

Run Make

make

returns:

cc     hello.c   -o hello

NOTE: This compiles the C program.


programming/make.1612449253.txt.gz · Last modified: 2021/02/04 14:34 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki