Ready. Set. Go!
This commit is contained in:
parent
9c7b29438a
commit
b95c9acca1
3 changed files with 22 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
main
|
||||||
|
*.o
|
15
Makefile
Normal file
15
Makefile
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
CFLAGS+=-Wall -Wextra -std=c99 -pedantic
|
||||||
|
LIBS=
|
||||||
|
PREFIX?=/usr/local
|
||||||
|
INSTALL?=install
|
||||||
|
|
||||||
|
main: main.c
|
||||||
|
$(CC) $(CFLAGS) -o main main.c $(LIBS)
|
||||||
|
|
||||||
|
|
||||||
|
.PHONY: all clean
|
||||||
|
|
||||||
|
all: main
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm main
|
5
main.c
Normal file
5
main.c
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
printf("Hello, world!!\n");
|
||||||
|
}
|
Loading…
Reference in a new issue