diff --git a/.gitignore b/.gitignore index 464d493..ab45203 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -cfc-cli-debug +cfc-cli-dynamic cfc-cli-release cfc-cli-static diff --git a/Makefile b/Makefile index 73f7422..12bb05e 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,8 @@ CC=g++ SRC=cli-flag-collection.cpp - -release: - ${CC} ${SRC} -Wall -Werror -march=native -O3 -flto -fomit-frame-pointer -DNDEBUG -std=c++23 -o cfc-cli-release -debug: +debug-dev: ${CC} ${SRC} -Wall -march=native -DDEBUG -std=c++23 -o cfc-cli-debug static: ${CC} ${SRC} -Wall -Werror -march=native -O3 -flto -fomit-frame-pointer -DNDEBUG -static -std=c++23 -o cfc-cli-static -clean: - rm cfc-cli-debug - rm cfc-cli-static - rm cfc-cli-release +release: + ${CC} ${SRC} -Wall -Werror -march=native -O3 -flto -fomit-frame-pointer -DNDEBUG -std=c++23 -o cfc-cli-release diff --git a/README.md b/README.md index c3cf17a..ed6fb32 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,8 @@ For now my program is not in any repo so you have to build it from source. - Release (same as above just not static): `cfc-cli-release` -- Debug: -`cfc-cli-debug` +- Dev / Dynamic: +`cfc-cli-dynamic` ### Building from source: #### Dependencies: @@ -34,27 +34,17 @@ then cd into it: cd cli-flag-collection ``` -To compile the regular release version you just run: - -```bash -make -``` -for the static release you run: +To compile the dynamic version without any optimizations you just run `make`. +For the release and release static build you can run: ```bash make static ``` -lastly for the debug version: +or (recommended) ```bash -make debug -``` - -to clean all binaries you just run: - -```bash -make clean +make release ``` --- diff --git a/cfc-cli-debug b/cfc-cli-debug index 9ebb28a..4fdc5d5 100755 Binary files a/cfc-cli-debug and b/cfc-cli-debug differ diff --git a/cli-flag-collection.cpp b/cli-flag-collection.cpp index 2107ae6..08f0cce 100644 --- a/cli-flag-collection.cpp +++ b/cli-flag-collection.cpp @@ -56,9 +56,6 @@ void drawFlag(const unsigned char flagArray[][3], unsigned char flagStripes) { } for (short l = 0; l < rest; l++) { std::print("{0}", flagStr.at(l)); - if ((int)flagStr.at(l) < 0) { - DEBUG_PRINT(("{0}", flagStr.at(l + 1))); - } } } std::println("\x1b[0m");