From: Jason Ish Date: Wed, 30 Apr 2025 16:23:38 +0000 (-0600) Subject: build: separate private headers from installed headers X-Git-Tag: suricata-8.0.0-rc1~390 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13125%2Fhead;p=thirdparty%2Fsuricata.git 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. --- 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 \