From 7ebc95ecdd3093412743ee020120cf6a641c74f6 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Wed, 5 Jun 2024 21:14:07 +0200 Subject: [PATCH] First working with configuration --- .gitignore | 1 + README.md | 12 ++++++++---- flake.nix | 1 - client.cpp => src/client.c | 0 server.cpp => src/server.c | 0 5 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 .gitignore rename client.cpp => src/client.c (100%) rename server.cpp => src/server.c (100%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e660fd9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +bin/ diff --git a/README.md b/README.md index 9534c33..0de946a 100644 --- a/README.md +++ b/README.md @@ -4,25 +4,29 @@ ## Compiling +```bash +mkdir bin +``` + Server ```bash -cc -o server server.c -lwayland-server +cc -o ./bin/server ./src/server.c -lwayland-server ``` Client ```bash -cc -o client client.c -lwayland-client +cc -o ./bin/client ./src/client.c -lwayland-client ``` ## Run Server ```bash -./server & +./bin/server & ``` Client ```bash -WAYLAND_DISPLAY=wayland-1 ./client +WAYLAND_DISPLAY=wayland-1 ./bin/client ``` diff --git a/flake.nix b/flake.nix index 6e5f3bc..a9ab277 100644 --- a/flake.nix +++ b/flake.nix @@ -19,7 +19,6 @@ imagemagick wayland-scanner wayland - wayland-protocol ]; }; }; diff --git a/client.cpp b/src/client.c similarity index 100% rename from client.cpp rename to src/client.c diff --git a/server.cpp b/src/server.c similarity index 100% rename from server.cpp rename to src/server.c