]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
build: separate private headers from installed headers 13125/head
authorJason Ish <jason.ish@oisf.net>
Wed, 30 Apr 2025 16:23:38 +0000 (10:23 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 30 Apr 2025 20:22:25 +0000 (22:22 +0200)
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

index 4bb52d773f535eb6f237c027107adf553b7903d7..839e323d74ef57155a0e00c7bd762c9b436c5ee3 100755 (executable)
@@ -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 \