From 12e149b99b9dfe3c13e844e453edc84bb82ba10e Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Wed, 30 Apr 2025 10:23:38 -0600 Subject: [PATCH] build: separate private headers from installed headers Create a new list of headers for headers that should never be installed, such as private headers that should only be available within the Suricata project. For now, just the util-device-private.h belongs to this set. --- src/Makefile.am | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 4bb52d773f..839e323d74 100755 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -9,6 +9,13 @@ if HAS_FUZZPCAP endif endif +# Headers that should never be installed. +PRIVATE_INCLUDES = \ + util-device-private.h + +# Headers that are installed with "make install-headers". They are +# declared as "noinst_HEADERS" to avoid them being installed by +# default. noinst_HEADERS = \ action-globals.h \ alert-debuglog.h \ @@ -486,7 +493,6 @@ noinst_HEADERS = \ util-debug.h \ util-detect.h \ util-device.h \ - util-device-private.h \ util-dpdk.h \ util-dpdk-bonding.h \ util-dpdk-common.h \ @@ -1172,6 +1178,7 @@ libsuricata_c_a_SOURCES = \ win32-syscall.c EXTRA_DIST = \ + ${PRIVATE_INCLUDES} \ tests/stream-tcp-inline.c \ tests/stream-tcp-list.c \ tests/detect-ipv4hdr.c \ -- 2.47.2