mirror of
https://github.com/OISF/suricata.git
synced 2026-02-19 02:28:46 -05:00
To keep the simple example simple, move the lib based capture method example to its own example. Ticket: #7240
16 lines
424 B
Makefile
16 lines
424 B
Makefile
LIBSURICATA_CONFIG ?= @CONFIGURE_PREFIX@/bin/libsuricata-config
|
|
|
|
SURICATA_LIBS = `$(LIBSURICATA_CONFIG) --libs --static`
|
|
SURICATA_CFLAGS := `$(LIBSURICATA_CONFIG) --cflags`
|
|
|
|
# Currently the Suricata logging system requires this to be even for
|
|
# plugins.
|
|
CPPFLAGS += "-D__SCFILENAME__=\"$(*F)\""
|
|
|
|
all: custom
|
|
|
|
custom: main.c
|
|
$(CC) -o $@ $^ $(CPPFLAGS) $(CFLAGS) $(SURICATA_CFLAGS) $(SURICATA_LIBS)
|
|
|
|
clean:
|
|
rm -f custom
|