From 7b796792ef0d0a1b4eb3b9050de8fc1801f4160f Mon Sep 17 00:00:00 2001 From: Giovanni La Mura <giovanni.lamura@inaf.it> Date: Tue, 12 Mar 2024 16:29:54 +0100 Subject: [PATCH] Implement static library compilation flag --- src/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index dd65769a..2cf1ace5 100644 --- a/src/Makefile +++ b/src/Makefile @@ -8,10 +8,12 @@ ifndef BUILDDIR_NPTM override BUILDDIR_NPTM=$(BUILDDIR)/libnptm endif ifndef LIBNPTM -# choose one of the two following lines, depending on whether a static or dynamic libnptm is wanted -#override LIBNPTM=$(BUILDDIR_NPTM)/libnptm.a +ifdef STATIC_NPTM +override LIBNPTM=$(BUILDDIR_NPTM)/libnptm.a +else override LIBNPTM=$(BUILDDIR_NPTM)/libnptm.so endif +endif DOCSDIR=$(SRCDIR)/../doc all: $(BUILDDIR) $(SUBDIRS) -- GitLab