Makefile: allow building against an oFono variant

This commit is contained in:
Marius Gripsgard
2023-08-31 11:54:06 +02:00
committed by kuailexs
parent f1bc06ee38
commit cd40ce7466
3 changed files with 14 additions and 5 deletions

View File

@@ -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