suricata/examples/lib/simple
Jason Ish 4df33c496e .gitignore: add more files
- the generated binaries for lib examples
- LSP files
- man pages
2025-04-01 10:17:04 +02:00
..
.gitignore .gitignore: add more files 2025-04-01 10:17:04 +02:00
main.c examples: rename lib capture example to custom 2025-04-01 10:17:04 +02:00
Makefile.am detect: helper to have pure rust keywords 2024-06-15 15:43:33 +02:00
Makefile.example.in examples: rename lib capture example to custom 2025-04-01 10:17:04 +02:00
README.md examples: program linking against library 2024-02-20 13:51:25 +01:00

Simple Library Example

Building In Tree

The Suricata build system has created a Makefile that should allow you to build this application in-tree on most supported platforms. To build simply run:

make

Building Out of Tree

A Makefile.example has also been generated to use as an example on how to build against the library in a standalone application.

First build and install the Suricata library including:

make install-library
make install-headers

Then run:

make -f Makefile.example

If you installed to a non-standard location, you need to ensure that libsuricata-config is in your path, for example:

PATH=/opt/suricata/bin:$PATH make -f Makefile.example