diff options
author | Ian Moffett <ian@osmora.org> | 2025-03-28 02:02:54 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-03-28 02:02:54 -0400 |
commit | 044b7e633b5a0a60e78325206fa289ea6ae81033 (patch) | |
tree | 9a1f82e3b93aa345a2eed9098cc524c52b62a7ca /Makefile | |
parent | ed33f4e1c82fb2c21e0b60f457d1e3404be34980 (diff) |
build: Add DIAG=[yes/no] build parameterp2p
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |