aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
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)