Compare commits
5 changed files with 10 additions and 28 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,3 +1,3 @@
|
||||||
cfc-cli-debug
|
cfc-cli-dynamic
|
||||||
cfc-cli-release
|
cfc-cli-release
|
||||||
cfc-cli-static
|
cfc-cli-static
|
||||||
|
|
|
||||||
11
Makefile
11
Makefile
|
|
@ -1,13 +1,8 @@
|
||||||
CC=g++
|
CC=g++
|
||||||
SRC=cli-flag-collection.cpp
|
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
|
${CC} ${SRC} -Wall -march=native -DDEBUG -std=c++23 -o cfc-cli-debug
|
||||||
static:
|
static:
|
||||||
${CC} ${SRC} -Wall -Werror -march=native -O3 -flto -fomit-frame-pointer -DNDEBUG -static -std=c++23 -o cfc-cli-static
|
${CC} ${SRC} -Wall -Werror -march=native -O3 -flto -fomit-frame-pointer -DNDEBUG -static -std=c++23 -o cfc-cli-static
|
||||||
clean:
|
release:
|
||||||
rm cfc-cli-debug
|
${CC} ${SRC} -Wall -Werror -march=native -O3 -flto -fomit-frame-pointer -DNDEBUG -std=c++23 -o cfc-cli-release
|
||||||
rm cfc-cli-static
|
|
||||||
rm cfc-cli-release
|
|
||||||
|
|
|
||||||
22
README.md
22
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):
|
- Release (same as above just not static):
|
||||||
`cfc-cli-release`
|
`cfc-cli-release`
|
||||||
|
|
||||||
- Debug:
|
- Dev / Dynamic:
|
||||||
`cfc-cli-debug`
|
`cfc-cli-dynamic`
|
||||||
|
|
||||||
### Building from source:
|
### Building from source:
|
||||||
#### Dependencies:
|
#### Dependencies:
|
||||||
|
|
@ -34,27 +34,17 @@ then cd into it:
|
||||||
cd cli-flag-collection
|
cd cli-flag-collection
|
||||||
```
|
```
|
||||||
|
|
||||||
To compile the regular release version you just 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
|
|
||||||
```
|
|
||||||
for the static release you run:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
make static
|
make static
|
||||||
```
|
```
|
||||||
|
|
||||||
lastly for the debug version:
|
or (recommended)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
make debug
|
make release
|
||||||
```
|
|
||||||
|
|
||||||
to clean all binaries you just run:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
make clean
|
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
|
||||||
BIN
cfc-cli-debug
BIN
cfc-cli-debug
Binary file not shown.
|
|
@ -56,9 +56,6 @@ void drawFlag(const unsigned char flagArray[][3], unsigned char flagStripes) {
|
||||||
}
|
}
|
||||||
for (short l = 0; l < rest; l++) {
|
for (short l = 0; l < rest; l++) {
|
||||||
std::print("{0}", flagStr.at(l));
|
std::print("{0}", flagStr.at(l));
|
||||||
if ((int)flagStr.at(l) < 0) {
|
|
||||||
DEBUG_PRINT(("{0}", flagStr.at(l + 1)));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
std::println("\x1b[0m");
|
std::println("\x1b[0m");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue