A simple hello world program to demonstrate C and Makefiles.
For Unix-style systems, you will need to install the GCC compiler along with the Make build tool. Do so with:
sudo apt-get install gcc make
On Windows, you will need to download Cygwin.
Finally, to build Hello, just type make
into the terminal (or the Cygwin shell on windows). The executable, called hello
, will be placed next to the makefile.
To run the executable on windows, you will need to rename it hello.exe
.