Created main and updated Makefile
This commit is contained in:
parent
e96c4d84b3
commit
0ba35841e9
19
Makefile
19
Makefile
@ -0,0 +1,19 @@
|
|||||||
|
#
|
||||||
|
# Pish
|
||||||
|
#
|
||||||
|
# Authors: Gregory
|
||||||
|
# Samantha
|
||||||
|
# Readme: README.md
|
||||||
|
#
|
||||||
|
|
||||||
|
all: main exec
|
||||||
|
|
||||||
|
main:
|
||||||
|
gcc -c -o build/main.o src/main.c
|
||||||
|
|
||||||
|
exec:
|
||||||
|
gcc -o bin/pish build/*.o
|
||||||
|
./bin/pish
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm build/*
|
6
src/main.c
Normal file
6
src/main.c
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
printf("Hello world\n");
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user