⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 This is the snapshot of Snot Latest Rules
💻
字号:
BASEDIR=../../ENGINEDIR=$(BASEDIR)/src/dynamic-plugins/sf_enginePLUGINDIR=$(BASEDIR)/src/dynamic-pluginsENGINE=$(BASEDIR)/src/dynamic-plugins/sf_engine/.libs/libsf_engine.soSNORT=$(BASEDIR)/src/snortSNORT_VERSION=2.8.0.2RANDSTRING=$(shell perl -e 'for($$i=0;$$i<128;$$i++){$$_ .= unpack("h*",chr(int(rand(256))));} print')CFLAGS = -ggdb -I$(ENGINEDIR) -I$(PLUGINDIR) -fPIC -fno-common `pcre-config --cflags` -DVRT_RAND_STRING=\"$(RANDSTRING)\"ifeq (${SNORT_VERSION},2.8.0.2)CFLAGS+= -DHAS_SESSION_DATA=1endififeq (${SNORT_VERSION},2.8.1)CFLAGS+= -DHAS_METADATA=1 -DHAS_SESSION_DATA=1 -DREQ_ENGINE_LIB_MINOR=7 endififeq (${SNORT_VERSION},2.8.2)CFLAGS+= -DHAS_METADATA=1 -DHAS_SESSION_DATA=1 -DREQ_ENGINE_LIB_MINOR=8 endififeq (${SNORT_VERSION},2.8.2.1)CFLAGS+= -DHAS_METADATA=1 -DHAS_SESSION_DATA=1 -DREQ_ENGINE_LIB_MINOR=8 endiflibs := p2p dos exploit bad-traffic web-client netbios misc nntp smtp web-misc sql imapfiles := $(shell for i in ${libs}; do ls $$i\_*.c | cut -d. -f1; done)OS=$(shell echo $$OSTYPE)ifeq ($(OS),darwin8.0)export MACOSX_DEPLOYMENT_TARGET=10.4LD_FLAGS = -bundle -ldl -undefined dynamic_lookup -lSystemStubs /usr/lib/bundle1.o elseLD_FLAGS = -shared -call_shared -ldlendifall: $(files) $(libs)	@rm -f test.conf	@for i in ${libs}; do echo include $$i.rules >> test.conf; done$(files):	@$(CC) -c $(CFLAGS) -o $@.o $@.c$(libs):	@echo -n "building $@ ... "	@perl category-build.pl $@	@$(CC) -c $(CFLAGS) -D DETECTION_LIB_NAME=\"$@\" -o $@.o $@.c	@$(CC) -c $(CFLAGS) -D DETECTION_LIB_NAME=\"$@\" -o _meta.o _meta.c	@ld $(LD_FLAGS) $@_*.o _meta.o $@.o -o $@.so	@$(SNORT) -q --dynamic-engine-lib=$(ENGINE) \		--dynamic-detection-lib=./$@.so \		--dump-dynamic-rules=./	@echo done	-@rm _meta.otest:	@perl tests/test.pl -basedir ${BASEDIR} -testdir tests -version ${SNORT_VERSION} >/dev/nulldistclean: cleanclean:	-@rm -rf *.o *.so *.rules	-@for i in ${libs}; do rm -f $$i.c; done

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -