mirror of
https://github.com/SteamDeckHomebrew/decky-plugin-template.git
synced 2025-12-03 12:28:08 -06:00
Add template makefile, main.c
This commit is contained in:
parent
a7d57cc3a8
commit
27bc7aa746
3 changed files with 23 additions and 0 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -40,3 +40,7 @@ __pycache__/
|
||||||
yalc.lock
|
yalc.lock
|
||||||
|
|
||||||
.vscode/settings.json
|
.vscode/settings.json
|
||||||
|
|
||||||
|
# Ignore output folder
|
||||||
|
|
||||||
|
backend/out
|
||||||
|
|
|
||||||
14
backend/Makefile
Normal file
14
backend/Makefile
Normal file
|
|
@ -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
|
||||||
5
backend/src/main.c
Normal file
5
backend/src/main.c
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
int main() {
|
||||||
|
printf("Hello World\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue