From 7d3fee8a5528f1a6498195dded991438cde2fc40 Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Tue, 8 Jan 2019 16:32:27 +0100 Subject: [PATCH] Fix Makefile DEBUG flags for OSX, add modules compiles by default --- src/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 7de02f2c4..348c1bacf 100644 --- a/src/Makefile +++ b/src/Makefile @@ -185,10 +185,18 @@ LFLAGS += -s endif else ifeq ($(DEBUG),1) +ifneq ($(UNAME),Darwin) CFLAGS += -DDEBUG -Og -ggdb else +CFLAGS += -DDEBUG -O0 -ggdb +endif +else ifeq ($(DEBUG),2) +ifneq ($(UNAME),Darwin) CFLAGS += -DDEBUG -Og -ggdb +else +CFLAGS += -DDEBUG -O0 -ggdb +endif CFLAGS += -fsanitize=address -fno-omit-frame-pointer endif endif @@ -366,7 +374,7 @@ endif ## Targets: Native Compilation ## -default: $(HASHCAT_FRONTEND) +default: $(HASHCAT_FRONTEND) modules clean: $(RM) -f $(HASHCAT_FRONTEND)