mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-26 17:16:22 +08:00
Add DEBUG flag to Makefile
This commit is contained in:
parent
86ff6aebef
commit
ec820db997
2 changed files with 12 additions and 5 deletions
|
@ -51,9 +51,15 @@ else
|
|||
RANLIB= ranlib
|
||||
endif
|
||||
|
||||
DEFCXXFLAGS = -Wall -Werror -O3 -pipe
|
||||
DEFCFLAGS = -Wall -Werror -O3 -fstrict-aliasing -pipe
|
||||
DEFLDFLAGS =
|
||||
ifeq ($(DEBUG),1)
|
||||
DEFCXXFLAGS = -g -O0 -pipe
|
||||
DEFCFLAGS = -g -O0 -fstrict-aliasing -pipe
|
||||
DEFLDFLAGS =
|
||||
else
|
||||
DEFCXXFLAGS = -Wall -Werror -O3 -pipe
|
||||
DEFCFLAGS = -Wall -Werror -O3 -fstrict-aliasing -pipe
|
||||
DEFLDFLAGS =
|
||||
endif
|
||||
# Next ones are activated only if SANITIZE=1
|
||||
ifeq ($(SANITIZE),1)
|
||||
DEFCFLAGS += -g -fsanitize=address -fno-omit-frame-pointer
|
||||
|
|
|
@ -13,7 +13,8 @@ At the moment both are maintained because they don't perfectly overlap yet.
|
|||
|
||||
| Feature | Makefile | CMake | Remarks |
|
||||
|-----|---|---|---|
|
||||
| verbose | V=1 | VERBOSE=1 | |
|
||||
| verbose | `V=1` | `VERBOSE=1` | |
|
||||
| debug build | `DEBUG=1` | `-DCMAKE_BUILD_TYPE=Debug` | client only |
|
||||
| warnings management | yes (1) | **no** | (1) cf Makefile.defs |
|
||||
| extra GCC warnings | GCCEXTRA=1 | **no** | |
|
||||
| extra Clang warnings | CLANGEXTRA=1 | **no** | only on host |
|
||||
|
@ -32,7 +33,7 @@ At the moment both are maintained because they don't perfectly overlap yet.
|
|||
| bzip2 detection | **none** | find_package, Cross:gitclone | |
|
||||
| dep cliparser | in_deps | in_deps | |
|
||||
| dep hardnested | in_deps | in_deps | |
|
||||
| hardn arch autodetect | `uname -m` =? 86 or amd64; `$(CC) -E -mavx512f`? +AVX512` | `CMAKE_SYSTEM_PROCESSOR` =? x86 or x86_64 or i686 or AMD64 (1) | (1) currently it always includes AVX512 on Intel arch |
|
||||
| hardn arch autodetect | `uname -m` =? 86 or amd64; `$(CC) -E -mavx512f`? +`AVX512` | `CMAKE_SYSTEM_PROCESSOR` =? x86 or x86_64 or i686 or AMD64 (1) | (1) currently it always includes AVX512 on Intel arch |
|
||||
| `cpu_arch` | yes | **no/auto?** | e.g. `cpu_arch=generic` for cross-compilation
|
||||
| dep jansson | sys / in_deps | sys / in_deps | |
|
||||
| jansson detection | pc | pc/find* | |
|
||||
|
|
Loading…
Reference in a new issue