-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile-windows.brim
25 lines (20 loc) · 1.25 KB
/
Makefile-windows.brim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
include Makefile
LIBS := $(filter-out -ljansson -llz4 -lpcre -lplc4 -lplds4 -lyaml -lz,$(LIBS))
nspr_libs = /mingw64/lib/libnspr4_s.a /mingw64/lib/libplc4_s.a /mingw64/lib/libplds4_s.a
suricata$(EXEEXT): $(suricata_OBJECTS) $(suricata_DEPENDENCIES) $(EXTRA_suricata_DEPENDENCIES)
@rm -f suricata$(EXEEXT)
$(AM_V_CCLD)$(suricata_LINK) $(suricata_OBJECTS) $(suricata_LDADD) $(LIBS) $(nspr_libs) /mingw64/lib/libpcre.a /mingw64/lib/libjansson.a /mingw64/lib/liblz4.a /mingw64/lib/libpcap.a /mingw64/lib/libyaml.a /mingw64/lib/libz.a
# we have our own install-rules because (1) the configure script on
# the github actions windows runner doesn't detect the presence of
# python (though it does on a regular win/msys) and (2) the
# suricata-update python script fails with a cert error when trying to
# connect to https://rules.emergingthreats.net fails with a
# certificate error.
install-rules:
curl -L -o /tmp/emerging.rules.tar.gz https://rules.emergingthreats.net/open/suricata-5.0.3/emerging.rules.tar.gz
$(DESTDIR)$(bindir)/suricata-update \
--suricata-version 5.0.3 \
--url file:///tmp/emerging.rules.tar.gz \
--local /home/runneradmin/suricata/share/suricata/rules \
--suricata-conf $(DESTDIR)$(sysconfdir)/suricata/suricata.yaml \
--no-test --no-reload