mirror of https://github.com/OISF/suricata
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.
17 lines
424 B
Makefile
17 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
|