You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
suricata/examples/lib/live/Makefile.example.in

18 lines
490 B
Makefile

LIBSURICATA_CONFIG ?= @CONFIGURE_PREFIX@/bin/libsuricata-config
# Define STATIC=1 to request static linking where available
SURICATA_LIBS = `$(LIBSURICATA_CONFIG) --libs $${STATIC:+--static}`
SURICATA_CFLAGS := `$(LIBSURICATA_CONFIG) --cflags`
# Currently the Suricata logging system requires this to be even for
# plugins.
CPPFLAGS += "-D__SCFILENAME__=\"$(*F)\""
all: live
live: main.c
$(CC) -o $@ $^ $(CPPFLAGS) $(CFLAGS) $(SURICATA_CFLAGS) $(SURICATA_LIBS)
clean:
rm -f live