added source and Makefile
This commit is contained in:
parent
fad1116773
commit
18a36b79ec
3 changed files with 19 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,3 +1,6 @@
|
||||||
|
# Project based
|
||||||
|
helloworld
|
||||||
|
|
||||||
# Prerequisites
|
# Prerequisites
|
||||||
*.d
|
*.d
|
||||||
|
|
||||||
|
|
|
||||||
9
Makefile
Normal file
9
Makefile
Normal 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
7
helloworld.c
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
int main(int argc, char **argv) {
|
||||||
|
printf("Hello World!");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue