From de8dbdf8a432c31998fd523fa15c768d4ff67c91 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 28 Mar 2025 02:02:54 -0400 Subject: build: Add DIAG=[yes/no] build parameter Signed-off-by: Ian Moffett --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index deebcc6..50e8da0 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,12 @@ +DIAG=yes CFILES_OTLIB = $(shell find lib/ -name "*.c") CFLAGS_OTLIB = -pedantic -Ilib/include/ -fPIC OTLIB_OBJ = $(CFILES_OTLIB:.c=.o) +ifeq ($(DIAG),yes) +CFLAGS_OTLIB += -D_DIAGNOSTIC +endif + libostp.so: $(OTLIB_OBJ) $(CC) -shared -o $@ $(OTLIB_OBJ) -- cgit v1.2.3