suricata/examples/lib/cplusplus/Makefile.example.in
Jason Ish 8540627b4e examples: add simple c++ example
For now just used to make sure a C++ variation of our custom example
can build.
2025-04-30 22:22:25 +02:00

9 lines
245 B
Makefile

LIBSURICATA_CONFIG ?= @CONFIGURE_PREFIX@/bin/libsuricata-config
SURICATA_LIBS = `$(LIBSURICATA_CONFIG) --libs`
SURICATA_CFLAGS := `$(LIBSURICATA_CONFIG) --cflags`
all: main
main: main.cpp
$(CXX) -o $@ $^ $(SURICATA_CFLAGS) $(SURICATA_LIBS)