diff --git a/.gitignore b/.gitignore index c6127b3..569bb75 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# Project based +helloworld + # Prerequisites *.d diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..acd1c9d --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +CC=gcc +CFLAGS="-Wall" + +debug:clean + $(CC) $(CFLAGS) -g -o helloworld helloworld.c +stable:clean + $(CC) $(CFLAGS) -o helloworld helloworld.c +clean: + rm -vfr *~ helloworld diff --git a/helloworld.c b/helloworld.c new file mode 100644 index 0000000..6211074 --- /dev/null +++ b/helloworld.c @@ -0,0 +1,7 @@ +#include +#include + +int main(int argc, char **argv) { + printf("Hello World!"); + return 0; +}