added source and Makefile

This commit is contained in:
Johannes Findeisen 2018-01-07 21:27:25 +01:00
commit 18a36b79ec
3 changed files with 19 additions and 0 deletions

3
.gitignore vendored
View file

@ -1,3 +1,6 @@
# Project based
helloworld
# Prerequisites
*.d

9
Makefile Normal file
View file

@ -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

7
helloworld.c Normal file
View file

@ -0,0 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv) {
printf("Hello World!");
return 0;
}