summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2021-04-28 16:40:55 +0200
committerMarcel Holtmann <marcel@holtmann.org>2021-04-28 16:40:55 +0200
commit2df4bd71937b56c7b1e5a9ddffe9d702f7630bd1 (patch)
treedf2bdd2ec65662962e47e125b4a78aeab957e905
parent84bfd8fe875db697c6ae7273aa1ad2cdcbf25092 (diff)
downloadofono-2df4bd71937b56c7b1e5a9ddffe9d702f7630bd1.tar.gz
build: Always link in the ell/useful.h header file
-rw-r--r--Makefile.am16
1 files changed, 13 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index d1f380b1..ba8e1b98 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,11 +6,11 @@ noinst_LTLIBRARIES =
if EXTERNAL_ELL
ell_cflags = @ELL_CFLAGS@
ell_ldadd = @ELL_LIBS@
-ell_built_sources =
+ell_built_sources = ell/shared
else
ell_cflags =
ell_ldadd = ell/libell-internal.la
-ell_built_sources = ell/internal ell/ell.h
+ell_built_sources = ell/shared ell/internal ell/ell.h
noinst_LTLIBRARIES += ell/libell-internal.la
@@ -57,7 +57,9 @@ ell_sources = ell/private.h \
ell/string.c \
ell/gpio.c
-ell_libell_internal_la_SOURCES = $(ell_headers) $(ell_sources)
+ell_shared = ell/useful.h
+
+ell_libell_internal_la_SOURCES = $(ell_headers) $(ell_sources) $(ell_shared)
endif
pkginclude_HEADERS = include/log.h include/plugin.h include/history.h \
@@ -1105,6 +1107,14 @@ include/ofono/%.h: $(abs_top_srcdir)/include/%.h
$(AM_V_at)$(MKDIR_P) include/ofono
$(AM_V_GEN)$(LN_S) $< $@
+ell/shared: Makefile
+ $(AM_V_at)$(MKDIR_P) ell
+ $(AM_V_GEN)for f in $(ell_shared) ; do \
+ if [ ! -f $$f ] ; then \
+ $(LN_S) -t ell -f $(abs_srcdir)/../ell/$$f ; \
+ fi \
+ done > $@
+
ell/internal: Makefile
$(AM_V_at)$(MKDIR_P) ell
$(AM_V_GEN)for f in $(ell_headers) $(ell_sources) ; do \