- Update Makefile:
- Change test binary name to `libicmp.test`.
- Add `-Wpedantic` and `-Wconversion` to global CFLAGS for stricter
warnings.
- Add dedicated `TEST_CFLAGS`.
- Ensure test build uses `TEST_CFLAGS`.
- Refactor code for better correctness.
BREAKING CHANGE: Test binary is now named `libicmp.test` instead of
`test.out` and stricter compiler flags may trigger new warnings or
errors in code outside this patch.
21 lines
177 B
Text
21 lines
177 B
Text
# Build artifacts
|
|
*.a
|
|
*.so
|
|
*.so.*
|
|
libicmp.test
|
|
.build/
|
|
|
|
# Object files and dependencies
|
|
*.o
|
|
*.d
|
|
|
|
# Editor files
|
|
*~
|
|
*.swp
|
|
*.swo
|
|
*.bak
|
|
.cache/
|
|
compile_commands.json
|
|
|
|
# Logs
|
|
*.log
|