[c] Changed makefile to support debug mode with clang compilation
This commit is contained in:
parent
7ea5e9c6e0
commit
6ad30e2340
1 changed files with 6 additions and 1 deletions
|
@ -1,10 +1,15 @@
|
|||
CC=gcc
|
||||
CFLAGS=-Wall -Wextra -O2
|
||||
CFLAGS=-Wall -O2
|
||||
LDFLAGS=-lssl -lcrypto
|
||||
ARCH=$(shell uname -m)
|
||||
BIN=bin
|
||||
SRC=src
|
||||
|
||||
ifdef DEBUG
|
||||
CC=/opt/homebrew/opt/llvm/bin/clang
|
||||
CFLAGS+= -fsanitize=address -g
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH), arm64)
|
||||
# Mac ARM installation
|
||||
CFLAGS+= -I/opt/homebrew/opt/openssl@3.2/include
|
||||
|
|
Loading…
Add table
Reference in a new issue