Configured project for GTK compilation

This commit is contained in:
nc543 2025-10-07 21:23:18 -04:00
parent 88668305f4
commit fef1074835
4 changed files with 16 additions and 2 deletions

5
.gitignore vendored
View File

@ -1 +1,4 @@
*.code-workspace
*.code-workspace
.cache
compile_commands.json
learning

View File

@ -1 +1,3 @@
This is just a project for me to learn how to use GTK+ in
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`

5
learning.c Normal file
View File

@ -0,0 +1,5 @@
#include <gtk/gtk.h>
int main(){
}

4
makefile Normal file
View File

@ -0,0 +1,4 @@
all:
gcc -Wall learning.c -o learning `pkg-config --cflags --libs gtk4`
clean:
rm -f learning