Makefile: allow building against an oFono variant
This commit is contained in:
7
Makefile
7
Makefile
@@ -5,6 +5,9 @@
|
||||
.PHONY: print_debug_lib print_release_lib print_coverage_lib
|
||||
.PHONY: debug_ext_so release_ext_so
|
||||
|
||||
# Allow building against an oFono variant.
|
||||
OFONO_PKG ?= ofono
|
||||
|
||||
#
|
||||
# Required packages
|
||||
#
|
||||
@@ -13,7 +16,7 @@
|
||||
#
|
||||
|
||||
LDPKGS = libgbinder-radio libgbinder libmce-glib libglibutil gobject-2.0 glib-2.0
|
||||
PKGS = ofono $(LDPKGS)
|
||||
PKGS = $(OFONO_PKG) $(LDPKGS)
|
||||
|
||||
#
|
||||
# Default target
|
||||
@@ -231,7 +234,7 @@ $(COVERAGE_LIB): $(COVERAGE_OBJS)
|
||||
# Install
|
||||
#
|
||||
|
||||
PLUGINDIR ?= $$(pkg-config ofono --variable=plugindir)
|
||||
PLUGINDIR ?= $$(pkg-config $(OFONO_PKG) --variable=plugindir)
|
||||
ABS_PLUGINDIR := $(shell echo /$(PLUGINDIR) | sed -r 's|/+|/|g')
|
||||
|
||||
INSTALL = install
|
||||
|
||||
Reference in New Issue
Block a user