diff --git a/.gitignore b/.gitignore index 76f76c5..17a9665 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,7 @@ __pycache__/ yalc.lock .vscode/settings.json + +# Ignore output folder + +backend/out diff --git a/backend/Makefile b/backend/Makefile new file mode 100644 index 0000000..a1e5dc5 --- /dev/null +++ b/backend/Makefile @@ -0,0 +1,14 @@ +# This is the default target, which will be built when +# you invoke make +.PHONY: all +all: hello + +# This rule tells make how to build hello from hello.cpp +hello: + mkdir -p ./out + gcc -o ./out/hello ./src/main.c + +# This rule tells make to delete hello and hello.o +.PHONY: clean +clean: + rm -f hello \ No newline at end of file diff --git a/backend/src/main.c b/backend/src/main.c new file mode 100644 index 0000000..b3b8fed --- /dev/null +++ b/backend/src/main.c @@ -0,0 +1,5 @@ +#include +int main() { + printf("Hello World\n"); + return 0; +} \ No newline at end of file