From bf9d25039c770867d2761ef11ef700e21addffba Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Fri, 2 Sep 2011 20:41:42 +0200 Subject: build/include: Only install headers for enabled options Signed-off-by: Sylvain Munaut --- include/osmocom/core/Makefile.am | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include/osmocom') diff --git a/include/osmocom/core/Makefile.am b/include/osmocom/core/Makefile.am index 1ef37693..adf7220c 100644 --- a/include/osmocom/core/Makefile.am +++ b/include/osmocom/core/Makefile.am @@ -2,11 +2,19 @@ osmocore_HEADERS = signal.h linuxlist.h timer.h select.h msgb.h bits.h \ bitvec.h statistics.h utils.h socket.h \ gsmtap.h write_queue.h prim.h \ logging.h rate_ctr.h gsmtap_util.h \ - plugin.h crc16.h panic.h process.h msgfile.h \ + crc16.h panic.h process.h \ backtrace.h conv.h application.h +if ENABLE_PLUGIN +osmocore_HEADERS += plugin.h +endif + if ENABLE_TALLOC osmocore_HEADERS += talloc.h endif +if ENABLE_MSGFILE +osmocore_HEADERS += msgfile.h +endif + osmocoredir = $(includedir)/osmocom/core -- cgit v1.2.3