From ba467c9067dce7fcd8a5c16a607fc7c0dec52c68 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 7 Sep 2025 15:31:12 +0100 Subject: [PATCH] Fix Makefile --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index d40ccee..913f40d 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +.PHONY: help full prng testing uuid core primitives all clean builddir build-test run-test codegen install build-lib ccodegen + # External variables CC = clang CXX = clang++ @@ -29,11 +31,11 @@ override LIB_INSTALL := $(ABS_INSTALL_PREFIX)/lib override HEADER_INSTALL_CMD := scripts/header_install.sh ifeq ($(BUILD_TYPE),Debug) - CFLAGS += -g -fsanitize=address,undefined -DWAPP_DEBUG_ASSERT + override CFLAGS += -g -fsanitize=address,undefined -DWAPP_DEBUG_ASSERT else ifeq ($(BUILD_TYPE),RelWithDebInfo) - CFLAGS += -g -O2 -fsanitize=address,undefined -DWAPP_DEBUG_ASSERT + override CFLAGS += -g -O2 -fsanitize=address,undefined -DWAPP_DEBUG_ASSERT else ifeq ($(BUILD_TYPE),Release) - CFLAGS += -O3 + override CFLAGS += -O3 else $(error Invalid BUILD type '$(BUILD_TYPE)'. Use 'Debug', 'RelWithDebInfo' or 'Release') endif @@ -43,8 +45,6 @@ ifeq ($(CC),gcc) export ASAN_OPTIONS=verify_asan_link_order=0 endif -.PHONY: help full prng testing uuid core primitives all clean builddir build-test run-test codegen install build-lib ccodegen - all: clean builddir codegen run-c-test full run-cc-test ccodegen help: