diff options
| author | Christian Krinitsin <mail@krinitsin.com> | 2025-03-20 12:03:17 +0100 |
|---|---|---|
| committer | Christian Krinitsin <mail@krinitsin.com> | 2025-03-20 12:03:17 +0100 |
| commit | 22a62e3e9c10ff4f8e682fe8421d89debff3e587 (patch) | |
| tree | ff5baaf59701864221d8f300f7b9ccc282f0f519 | |
| parent | 5ffee8c7163e2324bd35b8d99fc69012c2f31578 (diff) | |
| download | BT-Programming-Assignment-22a62e3e9c10ff4f8e682fe8421d89debff3e587.tar.gz BT-Programming-Assignment-22a62e3e9c10ff4f8e682fe8421d89debff3e587.zip | |
edit Makefile and gitignore
| -rw-r--r-- | .gitignore | 4 | ||||
| -rw-r--r-- | Makefile | 13 |
2 files changed, 9 insertions, 8 deletions
diff --git a/.gitignore b/.gitignore index cb724a5..067adf5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -server_bin -client_bin +./server +./client diff --git a/Makefile b/Makefile index 0e899bb..16376f5 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,11 @@ -flags := -std=c++20 -Wall -Wextra -Wpedantic -O3 +CXX = g++ +CXXFLAGS := -std=c++23 -Wall -Wextra -Wpedantic -O3 -server_bin: server/src/main.cpp - g++ $^ ${flags} -o $@ -client_bin: - g++ $^ ${flags} -o $@ +server: src/server/main.cpp + ${CXX} ${CXXFLAGS} $^ -o $@ +client: + ${CXX} ${CXXFLAGS} $^ -o $@ .PHONY: clean clean: - rm -f server_bin client_bin + rm -f server client |