From a13e97380b64f429a8d0c97f965bb8ec7b67af76 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sun, 19 May 2013 08:35:48 +0300 Subject: Detect libdivecomputer using pkg-config if possible If libdivecomputer is managed by pkg-config, we should query it for the compiler parameters on Linux also. Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index e0689548d..895a3338e 100644 --- a/Makefile +++ b/Makefile @@ -77,6 +77,9 @@ ifeq ($(CC), i686-w64-mingw32-gcc) else ifeq ($(UNAME), darwin) LIBDIVECOMPUTERINCLUDES = $(shell $(PKGCONFIG) --cflags libdivecomputer) LIBDIVECOMPUTERARCHIVE = $(shell $(PKGCONFIG) --libs libdivecomputer) +else ifeq ($(shell $(PKGCONFIG) --exists libdivecomputer; echo $$?),0) + LIBDIVECOMPUTERINCLUDES = $(shell $(PKGCONFIG) --cflags libdivecomputer) + LIBDIVECOMPUTERARCHIVE = $(shell $(PKGCONFIG) --libs libdivecomputer) else libdc-local := $(wildcard /usr/local/lib/libdivecomputer.a) libdc-local64 := $(wildcard /usr/local/lib64/libdivecomputer.a) -- cgit v1.2.3-70-g09d2