mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
Makefile hack to allow building with uninstalled libdivecomputer
Simply call "make LIBDCDEVEL=1" and the libdivecomputer includefiles are expected in ../libdivecomputer/include and the actual library is linked from ../libdivecomputer/src/.libs Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
cdbdf40848
commit
ad0f91deca
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
@ -49,7 +49,11 @@ libdc-local64 := $(wildcard /usr/local/lib64/libdivecomputer.a)
|
|||
libdc-usr := $(wildcard /usr/lib/libdivecomputer.a)
|
||||
libdc-usr64 := $(wildcard /usr/lib64/libdivecomputer.a)
|
||||
|
||||
ifneq ($(strip $(libdc-local)),)
|
||||
ifneq ($(LIBDCDEVEL),)
|
||||
LIBDIVECOMPUTERDIR = ../libdivecomputer
|
||||
LIBDIVECOMPUTERINCLUDES = -I$(LIBDIVECOMPUTERDIR)/include
|
||||
LIBDIVECOMPUTERARCHIVE = $(LIBDIVECOMPUTERDIR)/src/.libs/libdivecomputer.a
|
||||
else ifneq ($(strip $(libdc-local)),)
|
||||
LIBDIVECOMPUTERDIR = /usr/local
|
||||
LIBDIVECOMPUTERINCLUDES = -I$(LIBDIVECOMPUTERDIR)/include
|
||||
LIBDIVECOMPUTERARCHIVE = $(LIBDIVECOMPUTERDIR)/lib/libdivecomputer.a
|
||||
|
|
Loading…
Reference in a new issue