From fef107483575751cc77cc3c4d0511bfe94754ddd Mon Sep 17 00:00:00 2001 From: nc543 Date: Tue, 7 Oct 2025 21:23:18 -0400 Subject: [PATCH] Configured project for GTK compilation --- .gitignore | 5 ++++- README.md | 4 +++- learning.c | 5 +++++ makefile | 4 ++++ 4 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 learning.c create mode 100644 makefile diff --git a/.gitignore b/.gitignore index 1bb4614..63a7e27 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ -*.code-workspace \ No newline at end of file +*.code-workspace +.cache +compile_commands.json +learning \ No newline at end of file diff --git a/README.md b/README.md index 8a3fdca..1b0784e 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -This is just a project for me to learn how to use GTK+ in \ No newline at end of file +This is just a project for me to learn how to use GTK+ in + +For my own memory, generate comile_commands.json with `bear -- make` \ No newline at end of file diff --git a/learning.c b/learning.c new file mode 100644 index 0000000..831384f --- /dev/null +++ b/learning.c @@ -0,0 +1,5 @@ +#include + +int main(){ + +} \ No newline at end of file diff --git a/makefile b/makefile new file mode 100644 index 0000000..b3d77af --- /dev/null +++ b/makefile @@ -0,0 +1,4 @@ +all: + gcc -Wall learning.c -o learning `pkg-config --cflags --libs gtk4` +clean: + rm -f learning \ No newline at end of file