Watch
1
0
Fork
You've already forked cli-flag-collection
0
mirror of synced 2026-11-03 19:17:17 +00:00

README change, Makefile additions, string should now be fully dynamic(?)

This commit is contained in:
MysteryBirb 2026-10-08 09:56:55 +02:00
commit d12b4803b5
5 changed files with 30 additions and 12 deletions

2
.gitignore vendored
View file

@ -1,3 +1,3 @@
cfc-cli-dynamic
cfc-cli-debug
cfc-cli-release
cfc-cli-static

View file

@ -1,8 +1,13 @@
CC=g++
SRC=cli-flag-collection.cpp
debug-dev:
release:
${CC} ${SRC} -Wall -Werror -march=native -O3 -flto -fomit-frame-pointer -DNDEBUG -std=c++23 -o cfc-cli-release
debug:
${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
release:
${CC} ${SRC} -Wall -Werror -march=native -O3 -flto -fomit-frame-pointer -DNDEBUG -std=c++23 -o cfc-cli-release
clean:
rm cfc-cli-debug
rm cfc-cli-static
rm cfc-cli-release

View file

@ -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`
- Dev / Dynamic:
`cfc-cli-dynamic`
- Debug:
`cfc-cli-debug`
### Building from source:
#### Dependencies:
@ -34,17 +34,27 @@ then cd into it:
cd cli-flag-collection
```
To compile the dynamic version without any optimizations you just run `make`.
For the release and release static build you can run:
To compile the regular release version you just run:
```bash
```sh
make
```
for the static release you run:
```sh
make static
```
or (recommended)
lastly for the debug version:
```bash
make release
```sh
make static
```
to clean all binaries you just run:
```sh
make clean
```
---

Binary file not shown.

View file

@ -56,6 +56,9 @@ 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");