"Fossies" - the Fresh Open Source Software Archive

Member "snort-2.9.17/src/dynamic-preprocessors/Makefile.am" (16 Oct 2020, 27353 Bytes) of package /linux/misc/snort-2.9.17.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.am": 2.9.16.1_vs_2.9.17.

    1 ## $Id$
    2 AUTOMAKE_OPTIONS=foreign no-dependencies
    3 
    4 INCLUDES = -I${top_builddir}/src/dynamic-preprocessors/include -I${top_builddir}/src/dynamic-preprocessors/ssl_common -I${top_srcdir}/src/dynamic-preprocessors/libs -I${top_builddir}
    5 
    6 if SO_WITH_STATIC_LIB
    7 
    8 preproclibdir=$(pkglibdir)/dynamic_preproc
    9 
   10 preproclib_LTLIBRARIES = libsf_dynamic_preproc.la
   11 libsf_dynamic_preproc_la_CFLAGS = -fPIC -DPIC -DDYNAMIC_PREPROC_CONTEXT
   12 libsf_dynamic_preproc_la_LDFLAGS = -static
   13 
   14 libsf_dynamic_preproc_la_SOURCES = \
   15 ssl_common/ssl.c \
   16 ssl_common/ssl_config.c \
   17 ssl_common/ssl_inspect.c \
   18 ssl_common/ssl_ha.c 
   19 
   20 nodist_libsf_dynamic_preproc_la_SOURCES = \
   21 include/sf_dynamic_preproc_lib.c \
   22 include/sf_ip.c \
   23 include/sfrt.c \
   24 include/sfrt_dir.c \
   25 include/sfrt_flat.c \
   26 include/sfrt_flat_dir.c \
   27 include/segment_mem.c \
   28 include/mempool.c \
   29 include/sf_sdlist.c \
   30 include/sfPolicyUserData.c \
   31 include/util_unfold.c \
   32 include/sf_base64decode.c \
   33 include/sf_email_attach_decode.c \
   34 include/reg_test.c \
   35 libs/sfparser.c
   36 
   37 preprocdir=$(pkgincludedir)/dynamic_preproc
   38 
   39 preproc_HEADERS = \
   40 ssl_common/ssl.h \
   41 ssl_common/ssl_include.h \
   42 ssl_common/ssl_session.h \
   43 ssl_common/ssl_config.h \
   44 ssl_common/ssl_ha.h \
   45 ssl_common/ssl_inspect.h
   46 
   47 nodist_preproc_HEADERS = \
   48 libs/sfcommon.h \
   49 libs/sf_preproc_info.h \
   50 include/sf_snort_packet.h \
   51 include/sf_protocols.h \
   52 include/sf_snort_plugin_api.h \
   53 include/sf_decompression.h \
   54 include/sf_decompression_define.h \
   55 include/sfPolicyUserData.h \
   56 include/snort_debug.h \
   57 include/snort_bounds.h \
   58 include/cpuclock.h \
   59 include/profiler.h \
   60 include/bitop.h \
   61 include/mempool.h \
   62 include/sf_sdlist_types.h \
   63 include/sf_ip.h \
   64 include/sfrt_flat.h \
   65 include/sfrt_flat_dir.h \
   66 include/segment_mem.h \
   67 include/sf_dynamic_common.h \
   68 include/sf_dynamic_engine.h \
   69 include/sf_dynamic_define.h \
   70 include/sf_dynamic_meta.h \
   71 include/sf_dynamic_preprocessor.h \
   72 include/sf_dynamic_preproc_lib.h \
   73 include/ipv6_port.h \
   74 include/sfPolicy.h \
   75 include/sfrt.h \
   76 include/sfrt_dir.h \
   77 include/sfrt_trie.h \
   78 include/obfuscation.h \
   79 include/packet_time.h \
   80 include/session_api.h \
   81 include/stream_api.h \
   82 include/str_search.h \
   83 include/preprocids.h \
   84 include/sfcontrol.h \
   85 include/sidechannel_define.h \
   86 include/idle_processing.h \
   87 include/sf_seqnums.h \
   88 include/perf_indicators.h \
   89 include/mpse_methods.h \
   90 include/file_api.h \
   91 include/reload_api.h \
   92 include/reg_test.h
   93 
   94 preproclib_LTLIBRARIES += libsf_dynamic_utils.la
   95 
   96 libsf_dynamic_utils_la_CFLAGS = -fPIC -DPIC -DDYNAMIC_PREPROC_CONTEXT
   97 libsf_dynamic_utils_la_LDFLAGS = -static
   98 
   99 if FEAT_OPEN_APPID
  100 nodist_libsf_dynamic_utils_la_SOURCES = include/sfprimetable.c include/sfxhash.c include/sfmemcap.c include/sfmemcap.h \
  101 						  include/sfghash.c include/sfhashfcn.c include/sflsq.c include/md5.c
  102 
  103 nodist_preproc_HEADERS += include/appId.h include/appIdApi.h include/thirdparty_appid_types.h \
  104 						  include/thirdparty_appid_api.h include/dns_defs.h
  105 else
  106 nodist_libsf_dynamic_utils_la_SOURCES = include/sfmemcap.c include/sfmemcap.h
  107 endif
  108 
  109 if BUILD_SNORT_RELOAD
  110 #appdata_adjuster
  111 nodist_libsf_dynamic_utils_la_SOURCES += include/appdata_adjuster.c include/sfxhash.c include/sfhashfcn.c include/sfmemcap.c include/sfprimetable.c include/reg_test.h include/reg_test.c
  112 
  113 nodist_preproc_HEADERS += include/appdata_adjuster.h
  114 endif
  115 
  116 all-local: $(LTLIBRARIES)
  117 	$(MAKE) DESTDIR=`pwd`/build install-preproclibLTLIBRARIES
  118 
  119 endif
  120 
  121 BUILT_SOURCES = \
  122 	include/snort_bounds.h \
  123 	include/snort_debug.h \
  124 	include/preprocids.h \
  125 	include/profiler.h \
  126 	include/cpuclock.h \
  127 	include/sf_dynamic_common.h \
  128 	include/sf_dynamic_engine.h \
  129 	include/sf_dynamic_define.h \
  130 	include/sf_dynamic_meta.h \
  131 	include/sf_dynamic_preprocessor.h \
  132 	include/sf_dynamic_preproc_lib.c \
  133 	include/sf_dynamic_preproc_lib.h \
  134 	include/sfghash.h \
  135 	include/sfhashfcn.h \
  136 	include/bitop.h \
  137 	include/sf_ip.h \
  138 	include/sf_ip.c \
  139 	include/sf_ipvar.h \
  140 	include/sf_vartable.h \
  141 	include/ipv6_port.h \
  142 	include/sfsnort_dynamic_detection_lib.c \
  143 	include/sfsnort_dynamic_detection_lib.h \
  144 	include/sf_snort_packet.h \
  145 	include/sf_protocols.h \
  146 	include/sf_snort_plugin_api.h \
  147 	include/sf_decompression.h \
  148 	include/sf_decompression_define.h \
  149 	include/pcap_pkthdr32.h \
  150 	include/session_api.h \
  151 	include/stream_api.h \
  152 	include/str_search.h \
  153 	include/sf_types.h \
  154 	include/sfrt.h \
  155 	include/sfrt.c \
  156 	include/sfrt_dir.h \
  157 	include/sfrt_dir.c \
  158 	include/sfrt_flat.h \
  159 	include/sfrt_flat.c \
  160 	include/sfrt_flat_dir.h \
  161 	include/sfrt_flat_dir.c \
  162 	include/sfrt_trie.h \
  163 	include/segment_mem.h \
  164 	include/segment_mem.c \
  165 	include/mempool.h \
  166 	include/mempool.c \
  167 	include/sfmemcap.h \
  168 	include/sfmemcap.c \
  169 	include/sf_sdlist.h \
  170 	include/sf_sdlist_types.h \
  171 	include/sf_sdlist.c \
  172 	include/sfPolicyUserData.c \
  173 	include/sfPolicyUserData.h \
  174 	include/sfPolicy.h \
  175 	include/util_unfold.h \
  176 	include/util_unfold.c \
  177 	include/sf_base64decode.h \
  178 	include/sf_base64decode.c \
  179 	include/sf_email_attach_decode.h \
  180 	include/sf_email_attach_decode.c \
  181 	include/treenodes.h \
  182 	include/signature.h \
  183 	include/plugin_enum.h \
  184 	include/obfuscation.h \
  185 	include/packet_time.h \
  186 	include/rule_option_types.h \
  187 	include/event.h \
  188 	include/Unified2_common.h \
  189 	include/sfcontrol.h \
  190 	include/sidechannel_define.h \
  191 	include/idle_processing.h \
  192 	include/sf_seqnums.h \
  193 	include/perf_indicators.h \
  194 	include/file_api.h \
  195 	include/file_mail_common.h \
  196 	include/mpse_methods.h \
  197 	include/sfdebug.h \
  198 	include/sip_common.h \
  199 	include/cip_common.h \
  200 	include/reload_api.h \
  201 	include/reg_test.h \
  202 	include/reg_test.c \
  203 	ssl_common/ssl.h \
  204 	ssl_common/ssl.c \
  205 	ssl_common/ssl_include.h \
  206 	ssl_common/ssl_config.h \
  207 	ssl_common/ssl_config.c \
  208 	ssl_common/ssl_session.h \
  209 	ssl_common/ssl_inspect.h \
  210 	ssl_common/ssl_inspect.c \
  211 	ssl_common/ssl_ha.h \
  212 	ssl_common/ssl_ha.c \
  213 	libs/sfparser.c \
  214 	libs/sfcommon.h
  215 
  216 if FEAT_OPEN_APPID
  217 BUILT_SOURCES += include/appId.h  include/appIdApi.h include/thirdparty_appid_types.h \
  218 				 include/thirdparty_appid_api.h \
  219 				 include/sfprimetable.h include/sfprimetable.c include/sfxhash.h \
  220 				 include/sfxhash.c \
  221 				 include/sfghash.c include/sfhashfcn.c include/sflsq.h include/sflsq.c \
  222 				 include/md5.h include/md5.c \
  223 				 include/dns_defs.h
  224 endif
  225 
  226 if BUILD_SNORT_RELOAD
  227 BUILT_SOURCES += include/sfprimetable.h \
  228         include/sfprimetable.c \
  229         include/sfmemcap.h \
  230         include/sfmemcap.c \
  231         include/sfhashfcn.h \
  232         include/sfhashfcn.c \
  233         include/sfxhash.h \
  234         include/sfxhash.c \
  235         include/appdata_adjuster.h \
  236         include/appdata_adjuster.c
  237 endif
  238 
  239 sed_ipv6_headers = \
  240 	sed -e "s/->iph->ip_src/->ip4_header->source/" \
  241 	    -e "s/->iph->ip_dst/->ip4_header->destination/" \
  242 	    -e "s/->iph->/->ip4_header->/" \
  243 	    -e "s/->iph$$/->ip4_header/" \
  244 	    -e "s/orig_iph/orig_ipv4h/" \
  245 	    -e "s/ip_verhl/version_headerlength/" \
  246 	    -e "s/ip_tos/type_service/" \
  247 	    -e "s/ip_len/data_length/" \
  248 	    -e "s/ip_id/identifier/" \
  249 	    -e "s/ip_off/offset/" \
  250 	    -e "s/ip_ttl/time_to_live/" \
  251 	    -e "s/ip_proto/proto/" \
  252 	    -e "s/ip_csum/checksum/" \
  253 	    $$dst_header.new > $$dst_header
  254 
  255 massage_ipv6_headers = \
  256 	mkdir -p include; \
  257 	mkdir -p build; \
  258 	if test -f $$dst_header; then \
  259 		x=`diff $$src_header $$dst_header.new >> /dev/null`; \
  260 		if test "$$x" != "0"; then \
  261 			echo "Updating " $$dst_header; \
  262 			cp $$src_header $$dst_header.new; \
  263 			$(sed_ipv6_headers); \
  264 		fi \
  265 	else \
  266 		echo "Updating " $$dst_header; \
  267 		cp $$src_header $$dst_header.new; \
  268 		$(sed_ipv6_headers); \
  269 	fi
  270 
  271 sed_headers = \
  272 	sed -e "s/Packet /SFSnortPacket /" \
  273 	    -e "s/SnortPktHdr /SFSnortPktHdr /" \
  274 	    -e "s/decode\.h/sf_snort_packet.h/" \
  275 	    -e "/sfportobject\.h/d" \
  276 	    -e "s/PortObject \*/void */g" \
  277 	    $$dst_header.new > $$dst_header
  278 
  279 massage_headers = \
  280 	mkdir -p include; \
  281 	mkdir -p build; \
  282 	if test -f $$dst_header; then \
  283 		x=`diff $$src_header $$dst_header.new.new >> /dev/null`; \
  284 		if test "$$x" != "0"; then \
  285 			echo "Updating " $$dst_header; \
  286 			cp $$src_header $$dst_header.new; \
  287 			$(sed_headers); \
  288 		fi \
  289 	else \
  290 		echo "Updating " $$dst_header; \
  291 		cp $$src_header $$dst_header.new; \
  292 		$(sed_headers); \
  293 	fi
  294 
  295 sed_debug_header = \
  296 	sed -e "s/DebugMessageFile = /*_dpd.debugMsgFile = /" \
  297 	    -e "s/DebugMessageLine = /*_dpd.debugMsgLine = /" \
  298 	    -e "s/; DebugMessageFunc$$/; _dpd.debugMsg/" \
  299 	    -e "s/; DebugWideMessageFunc$$/; _dpd.debugWideMsg/" \
  300 	    $$dst_header.new > $$dst_header
  301 
  302 copy_debug_header = \
  303 	mkdir -p include; \
  304 	mkdir -p build; \
  305 	if test -f $$dst_header; then \
  306 		x=`diff $$src_header $$dst_header.new.new >> /dev/null`; \
  307 		if test "$$x" != "0"; then \
  308 			echo "Updating " $$dst_header; \
  309 			cp $$src_header $$dst_header.new; \
  310 			$(sed_debug_header); \
  311 		fi \
  312 	else \
  313 		echo "Updating " $$dst_header; \
  314 		cp $$src_header $$dst_header.new; \
  315 		$(sed_debug_header); \
  316 	fi
  317 
  318 copy_error_message = \
  319         if test -f $$dst_header; then \
  320 	   sed -e "s/ErrorMessage/_dpd.errMsg/" \
  321 	       -e "s/LogMessage/_dpd.logMsg/" \
  322 	       -e "s/FatalError/_dpd.fatalMsg/" \
  323 	       -e "/util.h/d" \
  324 	       -e "/snort.h/d" \
  325                         $$dst_header > $$dst_header.new; \
  326                 mv -f $$dst_header.new $$dst_header; \
  327         fi
  328 
  329 copy_no_static_hash = \
  330         if test -f $$dst_header; then \
  331                 echo "Updating " $$dst_header; \
  332                 sed -e "s/\#ifndef MODULUS_HASH/\#ifdef STATIC_HASH/" \
  333                         $$dst_header > $$dst_header.new; \
  334                 mv -f $$dst_header.new $$dst_header; \
  335         fi
  336 
  337 replace_policy_globals = \
  338 	if test -f $$dst_header; then \
  339 		sed -e "/SharedObjectAddStarts/d" \
  340 		    -e "/SharedObjectAddEnds/d" \
  341             -e "/SharedObjectDeleteBegins/,/SharedObjectDeleteEnds/d" \
  342 		    -e "s/getDefaultPolicy()/_dpd.getDefaultPolicy()/" \
  343 		    -e "s/SnortStrnStr/_dpd.SnortStrnStr/" \
  344 		    -e "s/SnortStrncpy/_dpd.SnortStrncpy/" \
  345 		    -e "s/ReloadAdjustRegister/_dpd.reloadAdjustRegister/" \
  346 		    -e "s/session_api/_dpd.sessionAPI/" \
  347 		        $$dst_header > $$dst_header.new; \
  348 		mv -f $$dst_header.new $$dst_header; \
  349 	fi
  350 
  351 copy_headers = \
  352 	mkdir -p include; \
  353 	mkdir -p build; \
  354 	if test -f $$dst_header; then \
  355 		x=`diff $$src_header $$dst_header.new.new >> /dev/null`; \
  356 		if test "$$x" != "0"; then \
  357 			echo "Updating " $$dst_header; \
  358 			cp $$src_header $$dst_header; \
  359 		fi \
  360 	else \
  361 		echo "Updating " $$dst_header; \
  362 		cp $$src_header $$dst_header; \
  363 	fi
  364 
  365 sed_treenode_header = \
  366 	sed -f $(srcdir)/treenodes.sed $$dst_header.new > $$dst_header
  367 
  368 copy_treenode_header = \
  369 	mkdir -p include; \
  370 	mkdir -p build; \
  371 	if test -f $$dst_header; then \
  372 		x=`diff $$src_header $$dst_header.new.new >> /dev/null`; \
  373 		if test "$$x" != "0"; then \
  374 			echo "Updating " $$dst_header; \
  375 			cp $$src_header $$dst_header.new; \
  376 			$(sed_treenode_header); \
  377 		fi \
  378 	else \
  379 		echo "Updating " $$dst_header; \
  380 		cp $$src_header $$dst_header.new; \
  381 		$(sed_treenode_header); \
  382 	fi
  383 
  384 # From main src tree
  385 include/snort_debug.h: $(srcdir)/../snort_debug.h
  386 	@src_header=$?; dst_header=$@; $(copy_debug_header)
  387 
  388 include/preprocids.h: $(srcdir)/../preprocids.h
  389 	@src_header=$?; dst_header=$@; $(copy_headers)
  390 
  391 include/profiler.h: $(srcdir)/../profiler.h
  392 	@src_header=$?; dst_header=$@; $(copy_headers)
  393 
  394 include/cpuclock.h: $(srcdir)/../cpuclock.h
  395 	@src_header=$?; dst_header=$@; $(copy_headers)
  396 
  397 include/pcap_pkthdr32.h: $(srcdir)/../pcap_pkthdr32.h
  398 	@src_header=$?; dst_header=$@; $(copy_headers)
  399 
  400 include/snort_bounds.h: $(srcdir)/../snort_bounds.h
  401 	@src_header=$?; dst_header=$@; $(copy_headers)
  402 
  403 include/ipv6_port.h: $(srcdir)/../ipv6_port.h
  404 	@src_header=$?; dst_header=$@; $(massage_ipv6_headers)
  405 
  406 include/sf_types.h: $(srcdir)/../sf_types.h
  407 	@src_header=$?; dst_header=$@; $(copy_headers)
  408 
  409 include/obfuscation.h: $(srcdir)/../obfuscation.h
  410 	@src_header=$?; dst_header=$@; $(massage_headers)
  411 
  412 include/packet_time.h: $(srcdir)/../packet_time.h
  413 	@src_header=$?; dst_header=$@; $(massage_headers)
  414 
  415 include/rule_option_types.h: $(srcdir)/../rule_option_types.h
  416 	@src_header=$?; dst_header=$@; $(copy_headers)
  417 
  418 include/event.h: $(srcdir)/../event.h
  419 	@src_header=$?; dst_header=$@; $(copy_headers)
  420 
  421 include/sidechannel_define.h: $(srcdir)/../side-channel/sidechannel_define.h
  422 	@src_header=$?; dst_header=$@; $(massage_headers)
  423 
  424 include/reload_api.h: $(srcdir)/../reload_api.h
  425 	@src_header=$?; dst_header=$@; $(massage_headers)
  426 
  427 include/reg_test.h: $(srcdir)/../reg_test.h
  428 	@src_header=$?; dst_header=$@; $(copy_headers)
  429 
  430 include/reg_test.c: $(srcdir)/../reg_test.c
  431 	@src_header=$?; dst_header=$@; $(copy_headers)
  432 
  433 # From dynamic-plugins
  434 include/sf_dynamic_common.h: $(srcdir)/../dynamic-plugins/sf_dynamic_common.h
  435 	@src_header=$?; dst_header=$@; $(copy_headers)
  436 
  437 include/sf_dynamic_engine.h: $(srcdir)/../dynamic-plugins/sf_dynamic_engine.h
  438 	@src_header=$?; dst_header=$@; $(copy_headers)
  439 
  440 include/sf_dynamic_define.h: $(srcdir)/../dynamic-plugins/sf_dynamic_define.h
  441 	@src_header=$?; dst_header=$@; $(copy_headers)
  442 
  443 include/sf_dynamic_meta.h: $(srcdir)/../dynamic-plugins/sf_dynamic_meta.h
  444 	@src_header=$?; dst_header=$@; $(copy_headers)
  445 
  446 include/sf_dynamic_preprocessor.h: $(srcdir)/../dynamic-plugins/sf_dynamic_preprocessor.h
  447 	@src_header=$?; dst_header=$@; $(massage_headers)
  448 
  449 # From dynamic-plugins/sf_preproc_example
  450 include/sf_dynamic_preproc_lib.c: $(srcdir)/../dynamic-plugins/sf_preproc_example/sf_dynamic_preproc_lib.c
  451 	@src_header=$?; dst_header=$@; $(copy_headers)
  452 
  453 include/sf_dynamic_preproc_lib.h: $(srcdir)/../dynamic-plugins/sf_preproc_example/sf_dynamic_preproc_lib.h
  454 	@src_header=$?; dst_header=$@; $(copy_headers)
  455 
  456 # From Utils
  457 include/sfghash.h: $(srcdir)/../sfutil/sfghash.h
  458 	@src_header=$?; dst_header=$@; $(copy_headers)
  459 
  460 include/sfhashfcn.h: $(srcdir)/../sfutil/sfhashfcn.h
  461 	@src_header=$?; dst_header=$@; $(copy_headers)
  462 
  463 include/bitop.h: $(srcdir)/../sfutil/bitop.h
  464 	@src_header=$?; dst_header=$@; $(copy_headers)
  465 
  466 include/sf_ip.h: $(srcdir)/../sfutil/sf_ip.h
  467 	@src_header=$?; dst_header=$@; $(copy_headers)
  468 
  469 include/sf_ip.c: $(srcdir)/../sfutil/sf_ip.c
  470 	@src_header=$?; dst_header=$@; $(copy_headers)
  471 
  472 include/sf_ipvar.h: $(srcdir)/../sfutil/sf_ipvar.h
  473 	@src_header=$?; dst_header=$@; $(copy_headers)
  474 
  475 include/sf_vartable.h: $(srcdir)/../sfutil/sf_vartable.h
  476 	@src_header=$?; dst_header=$@; $(copy_headers)
  477 
  478 include/sfrt.h: $(srcdir)/../sfutil/sfrt.h
  479 	@src_header=$?; dst_header=$@; $(copy_headers)
  480 
  481 include/sfrt.c: $(srcdir)/../sfutil/sfrt.c
  482 	@src_header=$?; dst_header=$@; $(copy_headers)
  483 
  484 include/sfrt_dir.h: $(srcdir)/../sfutil/sfrt_dir.h
  485 	@src_header=$?; dst_header=$@; $(copy_headers)
  486 
  487 include/sfrt_dir.c: $(srcdir)/../sfutil/sfrt_dir.c
  488 	@src_header=$?; dst_header=$@; $(copy_headers)
  489 	
  490 include/sfrt_flat.h: $(srcdir)/../sfutil/sfrt_flat.h
  491 	@src_header=$?; dst_header=$@; $(copy_headers)
  492 
  493 include/sfrt_flat.c: $(srcdir)/../sfutil/sfrt_flat.c
  494 	@src_header=$?; dst_header=$@; $(copy_headers)
  495 
  496 include/sfrt_flat_dir.h: $(srcdir)/../sfutil/sfrt_flat_dir.h
  497 	@src_header=$?; dst_header=$@; $(copy_headers)
  498 
  499 include/sfrt_flat_dir.c: $(srcdir)/../sfutil/sfrt_flat_dir.c
  500 	@src_header=$?; dst_header=$@; $(copy_headers)
  501 	
  502 include/sfrt_trie.h: $(srcdir)/../sfutil/sfrt_trie.h
  503 	@src_header=$?; dst_header=$@; $(copy_headers)
  504 
  505 include/segment_mem.c: $(srcdir)/../sfutil/segment_mem.c
  506 	@src_header=$?; dst_header=$@; $(copy_headers)
  507 
  508 include/segment_mem.h: $(srcdir)/../sfutil/segment_mem.h
  509 	@src_header=$?; dst_header=$@; $(copy_headers)
  510 
  511 include/mempool.h: $(srcdir)/../mempool.h
  512 	@src_header=$?; dst_header=$@; $(copy_headers); $(copy_error_message); $(replace_policy_globals)
  513 
  514 include/mempool.c: $(srcdir)/../mempool.c
  515 	@src_header=$?; dst_header=$@; $(copy_headers); $(copy_error_message); $(replace_policy_globals)
  516 
  517 include/sfmemcap.h: $(srcdir)/../sfutil/sfmemcap.h
  518 	    @src_header=$?; dst_header=$@; $(copy_headers); $(copy_error_message); $(replace_policy_globals)
  519 
  520 include/sfmemcap.c: $(srcdir)/../sfutil/sfmemcap.c
  521 	    @src_header=$?; dst_header=$@; $(copy_headers); $(copy_error_message); $(replace_policy_globals)
  522 
  523 include/sf_sdlist.h: $(srcdir)/../sf_sdlist.h
  524 	@src_header=$?; dst_header=$@; $(copy_headers); $(copy_error_message); $(replace_policy_globals)
  525 
  526 include/sf_sdlist_types.h: $(srcdir)/../sf_sdlist_types.h
  527 	@src_header=$?; dst_header=$@; $(copy_headers); $(copy_error_message); $(replace_policy_globals)
  528 
  529 include/sf_sdlist.c: $(srcdir)/../sf_sdlist.c
  530 	@src_header=$?; dst_header=$@; $(copy_headers); $(copy_error_message); $(replace_policy_globals)
  531 
  532 include/sfPolicyUserData.c: $(srcdir)/../sfutil/sfPolicyUserData.c
  533 	@src_header=$?; dst_header=$@; $(copy_headers); $(replace_policy_globals)
  534 
  535 include/sfPolicyUserData.h: $(srcdir)/../sfutil/sfPolicyUserData.h
  536 	@src_header=$?; dst_header=$@; $(copy_headers); $(replace_policy_globals)
  537 
  538 include/sfPolicy.h: $(srcdir)/../sfutil/sfPolicy.h
  539 	@src_header=$?; dst_header=$@; $(copy_headers); $(replace_policy_globals)
  540 
  541 include/util_unfold.h: $(srcdir)/../sfutil/util_unfold.h
  542 	@src_header=$?; dst_header=$@; $(copy_headers)
  543 
  544 include/util_unfold.c: $(srcdir)/../sfutil/util_unfold.c
  545 	@src_header=$?; dst_header=$@; $(copy_headers)
  546 
  547 include/sf_base64decode.h: $(srcdir)/../sfutil/sf_base64decode.h
  548 	@src_header=$?; dst_header=$@; $(copy_headers)
  549 
  550 include/sf_base64decode.c: $(srcdir)/../sfutil/sf_base64decode.c
  551 	@src_header=$?; dst_header=$@; $(copy_headers)
  552 
  553 include/sf_email_attach_decode.h: $(srcdir)/../sfutil/sf_email_attach_decode.h
  554 	@src_header=$?; dst_header=$@; $(copy_headers)
  555 
  556 include/sf_email_attach_decode.c: $(srcdir)/../sfutil/sf_email_attach_decode.c
  557 	@src_header=$?; dst_header=$@; $(copy_headers); $(copy_error_message); $(replace_policy_globals)
  558 
  559 include/Unified2_common.h: $(srcdir)/../sfutil/Unified2_common.h
  560 	@src_header=$?; dst_header=$@; $(copy_headers)
  561 
  562 # From dynamic-plugins/sf_engine/examples
  563 include/sfsnort_dynamic_detection_lib.c: $(srcdir)/../dynamic-plugins/sf_engine/examples/sfsnort_dynamic_detection_lib.c
  564 	@src_header=$?; dst_header=$@; $(copy_headers)
  565 
  566 include/sfsnort_dynamic_detection_lib.h: $(srcdir)/../dynamic-plugins/sf_engine/examples/sfsnort_dynamic_detection_lib.h
  567 	@src_header=$?; dst_header=$@; $(copy_headers)
  568 
  569 # From dynamic-plugins/sf_engine
  570 include/sf_snort_packet.h: $(srcdir)/../dynamic-plugins/sf_engine/sf_snort_packet.h
  571 	@src_header=$?; dst_header=$@; $(copy_headers)
  572 
  573 include/sf_protocols.h: $(srcdir)/../sf_protocols.h
  574 	@src_header=$?; dst_header=$@; $(copy_headers)
  575 
  576 include/sf_snort_plugin_api.h: $(srcdir)/../dynamic-plugins/sf_engine/sf_snort_plugin_api.h
  577 	@src_header=$?; dst_header=$@; $(copy_headers)
  578 
  579 include/sf_decompression.h: $(srcdir)/../dynamic-plugins/sf_engine/sf_decompression.h
  580 	@src_header=$?; dst_header=$@; $(copy_headers)
  581 
  582 include/sf_decompression_define.h: $(srcdir)/../dynamic-plugins/sf_decompression_define.h
  583 	@src_header=$?; dst_header=$@; $(copy_headers)
  584 
  585 # Session API/String Searching, massage it to use SFSnortPacket
  586 include/session_api.h: $(srcdir)/../preprocessors/session_api.h
  587 	@src_header=$?; dst_header=$@; $(massage_headers)
  588 
  589 # Stream API/String Searching, massage it to use SFSnortPacket
  590 include/stream_api.h: $(srcdir)/../preprocessors/stream_api.h
  591 	@src_header=$?; dst_header=$@; $(massage_headers)
  592 
  593 include/str_search.h: $(srcdir)/../preprocessors/str_search.h
  594 	@src_header=$?; dst_header=$@; $(massage_headers)
  595 
  596 include/treenodes.h: $(srcdir)/../treenodes.h
  597 	@src_header=$?; dst_header=$@; $(copy_treenode_header)
  598 
  599 include/signature.h: $(srcdir)/../signature.h
  600 	@src_header=$?; dst_header=$@; $(copy_treenode_header)
  601 
  602 include/plugin_enum.h: $(srcdir)/../plugin_enum.h
  603 	@src_header=$?; dst_header=$@; $(copy_headers)
  604 
  605 include/sfcontrol.h: $(top_srcdir)/src/control/sfcontrol.h
  606 	@src_header=$?; dst_header=$@; $(copy_headers)
  607 
  608 include/idle_processing.h: $(top_srcdir)/src/idle_processing.h
  609 	@src_header=$?; dst_header=$@; $(copy_headers)
  610 
  611 include/sf_seqnums.h: $(top_srcdir)/src/sfutil/sf_seqnums.h
  612 	@src_header=$?; dst_header=$@; $(copy_headers)
  613 
  614 include/perf_indicators.h: $(srcdir)/../preprocessors/perf_indicators.h
  615 	@src_header=$?; dst_header=$@; $(copy_headers)
  616 
  617 include/file_api.h: $(top_srcdir)/src/file-process/file_api.h
  618 	@src_header=$?; dst_header=$@; $(copy_headers)
  619 
  620 include/file_mail_common.h: $(top_srcdir)/src/file-process/file_mail_common.h
  621 	@src_header=$?; dst_header=$@; $(copy_headers)
  622 	
  623 include/sfdebug.h: $(srcdir)/../sfutil/sfdebug.h
  624 	@src_header=$?; dst_header=$@; $(copy_headers)
  625 
  626 include/mpse_methods.h: $(srcdir)/../sfutil/mpse_methods.h
  627 	@src_header=$?; dst_header=$@; $(copy_headers)
  628 
  629 include/sip_common.h: $(srcdir)/../preprocessors/sip_common.h
  630 	@src_header=$?; dst_header=$@; $(copy_headers)
  631 
  632 include/cip_common.h: $(srcdir)/../preprocessors/cip_common.h
  633 	@src_header=$?; dst_header=$@; $(copy_headers)
  634 
  635 include/appId.h: $(srcdir)/appid/appId.h
  636 	@src_header=$?; dst_header=$@; $(copy_headers)
  637 
  638 if FEAT_OPEN_APPID
  639 include/appIdApi.h: $(srcdir)/../appIdApi.h
  640 	@src_header=$?; dst_header=$@; $(copy_headers)
  641 
  642 include/thirdparty_appid_types.h: $(srcdir)/appid/thirdparty_appid_types.h
  643 	@src_header=$?; dst_header=$@; $(copy_headers)
  644 
  645 include/thirdparty_appid_api.h: $(srcdir)/appid/thirdparty_appid_api.h
  646 	@src_header=$?; dst_header=$@; $(copy_headers)
  647 
  648 include/dns_defs.h: $(srcdir)/appid/dns_defs.h
  649 	@src_header=$?; dst_header=$@; $(copy_headers)
  650 
  651 include/md5.c: $(srcdir)/../sfutil/md5.c
  652 	@src_header=$?; dst_header=$@; $(copy_headers)
  653 
  654 include/md5.h: $(srcdir)/../sfutil/md5.h
  655 	@src_header=$?; dst_header=$@; $(copy_headers)
  656 
  657 include/sfprimetable.h: $(srcdir)/../sfutil/sfprimetable.h
  658 	@src_header=$?; dst_header=$@; $(copy_headers); $(copy_error_message); $(replace_policy_globals)
  659 
  660 include/sfprimetable.c: $(srcdir)/../sfutil/sfprimetable.c
  661 	@src_header=$?; dst_header=$@; $(copy_headers); $(copy_error_message); $(replace_policy_globals)
  662 
  663 include/sfxhash.h: $(srcdir)/../sfutil/sfxhash.h
  664 	@src_header=$?; dst_header=$@; $(copy_headers); $(copy_error_message); $(replace_policy_globals)
  665 
  666 include/sfxhash.c: $(srcdir)/../sfutil/sfxhash.c
  667 	@src_header=$?; dst_header=$@; $(copy_headers); $(copy_error_message); $(replace_policy_globals)
  668 
  669 include/sfghash.c: $(srcdir)/../sfutil/sfghash.c
  670 	@src_header=$?; dst_header=$@; $(copy_headers); $(copy_error_message); $(replace_policy_globals)
  671 
  672 include/sfhashfcn.c: $(srcdir)/../sfutil/sfhashfcn.c
  673 	@src_header=$?; dst_header=$@; $(copy_headers); $(copy_error_message); $(replace_policy_globals); $(copy_no_static_hash)
  674 
  675 include/sflsq.h: $(srcdir)/../sfutil/sflsq.h
  676 	@src_header=$?; dst_header=$@; $(copy_headers); $(copy_error_message); $(replace_policy_globals)
  677 
  678 include/sflsq.c: $(srcdir)/../sfutil/sflsq.c
  679 	@src_header=$?; dst_header=$@; $(copy_headers); $(copy_error_message); $(replace_policy_globals)
  680 else
  681 if BUILD_SNORT_RELOAD
  682 include/sfxhash.h: $(srcdir)/../sfutil/sfxhash.h
  683 	@src_header=$?; dst_header=$@; $(copy_headers); $(copy_error_message); $(replace_policy_globals)
  684 
  685 include/sfxhash.c: $(srcdir)/../sfutil/sfxhash.c
  686 	@src_header=$?; dst_header=$@; $(copy_headers); $(copy_error_message); $(replace_policy_globals)
  687 
  688 include/sfprimetable.h: $(srcdir)/../sfutil/sfprimetable.h
  689 	@src_header=$?; dst_header=$@; $(copy_headers); $(copy_error_message); $(replace_policy_globals)
  690 
  691 include/sfprimetable.c: $(srcdir)/../sfutil/sfprimetable.c
  692 	@src_header=$?; dst_header=$@; $(copy_headers); $(copy_error_message); $(replace_policy_globals)
  693 
  694 include/sfhashfcn.c: $(srcdir)/../sfutil/sfhashfcn.c
  695 	@src_header=$?; dst_header=$@; $(copy_headers); $(copy_error_message); $(replace_policy_globals); $(copy_no_static_hash)
  696 endif
  697 endif
  698 
  699 if BUILD_SNORT_RELOAD
  700 include/appdata_adjuster.c: $(srcdir)/../reload-adjust/appdata_adjuster.c
  701 	@src_header=$?; dst_header=$@; $(copy_headers); $(copy_error_message); $(replace_policy_globals)
  702 
  703 include/appdata_adjuster.h: $(srcdir)/../reload-adjust/appdata_adjuster.h
  704 	@src_header=$?; dst_header=$@; $(copy_headers)
  705 endif
  706 
  707 if FEAT_FILE_INSPECT
  708 FILE_INSPECT_DIR = file
  709 endif
  710 
  711 SUBDIRS = . libs ftptelnet pop imap smtp ssh dns ssl dcerpc2 sdf sip reputation gtp modbus dnp3 s7commplus $(FILE_INSPECT_DIR)
  712 
  713 if FEAT_OPEN_APPID
  714 SUBDIRS += appid
  715 endif
  716 
  717 clean-local:
  718 	rm -rf include build
  719 
  720 EXTRA_DIST = \
  721 dynamic_preprocessors.vcxproj \
  722 dynamic_preprocessors.dsp \
  723 sf_dynamic_initialize/sf_dynamic_initialize.vcxproj \
  724 sf_dynamic_initialize/sf_dynamic_initialize.dsp \
  725 treenodes.sed
  726 
  727 srcinstdir = $(exec_prefix)/src/snort_dynamicsrc
  728 
  729 exported_files = \
  730 include/sf_dynamic_common.h \
  731 include/sf_dynamic_define.h \
  732 include/sf_dynamic_engine.h \
  733 include/sf_dynamic_meta.h \
  734 include/sf_dynamic_preprocessor.h \
  735 include/sf_dynamic_preproc_lib.h \
  736 include/sf_dynamic_preproc_lib.c \
  737 include/sf_ip.h \
  738 include/sf_snort_packet.h \
  739 include/sf_protocols.h \
  740 include/sf_snort_plugin_api.h \
  741 include/sf_decompression.h \
  742 include/sf_decompression_define.h \
  743 include/sf_types.h \
  744 include/sfsnort_dynamic_detection_lib.h \
  745 include/sfsnort_dynamic_detection_lib.c \
  746 include/pcap_pkthdr32.h \
  747 include/str_search.h \
  748 include/session_api.h \
  749 include/stream_api.h \
  750 include/snort_debug.h \
  751 include/profiler.h \
  752 include/sfghash.h \
  753 include/sfhashfcn.h \
  754 include/sfmemcap.h \
  755 include/bitop.h \
  756 include/preprocids.h \
  757 include/sfPolicyUserData.h \
  758 include/util_unfold.h \
  759 include/util_unfold.c \
  760 include/sf_base64decode.h \
  761 include/sf_base64decode.c \
  762 include/sf_email_attach_decode.h \
  763 include/sf_email_attach_decode.c \
  764 include/treenodes.h \
  765 include/signature.h \
  766 include/plugin_enum.h \
  767 include/sfPolicyUserData.c \
  768 include/obfuscation.h \
  769 include/sidechannel_define.h \
  770 include/rule_option_types.h \
  771 include/event.h \
  772 include/Unified2_common.h \
  773 include/sfcontrol.h \
  774 include/idle_processing.h \
  775 include/sf_seqnums.h \
  776 include/perf_indicators.h \
  777 include/file_api.h \
  778 include/file_mail_common.h \
  779 include/mpse_methods.h \
  780 include/sfdebug.h \
  781 include/sip_common.h \
  782 include/cip_common.h \
  783 include/reload_api.h \
  784 include/reg_test.h \
  785 include/reg_test.c \
  786 ssl_common/ssl.h \
  787 ssl_common/ssl.c \
  788 ssl_common/ssl_include.h \
  789 ssl_common/ssl_config.h \
  790 ssl_common/ssl_config.c \
  791 ssl_common/ssl_session.h \
  792 ssl_common/ssl_inspect.h \
  793 ssl_common/ssl_inspect.c \
  794 ssl_common/ssl_ha.h \
  795 ssl_common/ssl_ha.c \
  796 libs/sfparser.c
  797 
  798 if FEAT_OPEN_APPID
  799 exported_files += include/appId.h include/appIdApi.h include/thirdparty_appid_types.h \
  800 				  include/thirdparty_appid_api.h \
  801 				  include/sfprimetable.h include/sfxhash.h include/sfhashfcn.h \
  802 				  include/md5.h \
  803 				  include/dns_defs.h
  804 endif
  805 
  806 if BUILD_SNORT_RELOAD
  807 exported_files += include/sfprimetable.h \
  808 include/sfprimetable.c \
  809 include/sfmemcap.h \
  810 include/sfmemcap.c \
  811 include/sfhashfcn.h \
  812 include/sfhashfcn.c \
  813 include/sfxhash.h \
  814 include/sfxhash.c \
  815 include/appdata_adjuster.h \
  816 include/appdata_adjuster.c
  817 endif
  818 
  819 install-data-local:
  820 	@for f in $(exported_files); do \
  821 ## Compute the filename only
  822 		truefile=`echo $$f | sed -e "s/.*\///"`; \
  823 ## Make the install directory.
  824 		$(mkinstalldirs) $(DESTDIR)$(srcinstdir); \
  825 ## Find the header file -- in our case it might be in srcdir or
  826 ## it might be in the build directory.  "p" is the variable that
  827 ## names the actual file we will install.
  828 		if test -f $(srcdir)/$$f; then p=$(srcdir)/$$f; else p=$$f; fi; \
  829 ## Actually install the file.
  830 		$(INSTALL_DATA) $$p $(DESTDIR)$(srcinstdir)/$$truefile; \
  831 	done
  832 
  833 uninstall-local:
  834 	@for f in $(exported_files); do \
  835 ## Compute the filename only
  836 		truefile=`echo $$f | sed -e "s/.*\///"`; \
  837 ## Make the install directory.
  838 		$(mkinstalldirs) $(DESTDIR)$(srcinstdir); \
  839 ## Actually install the file.
  840 		rm -f $(DESTDIR)$(srcinstdir)/$$truefile; \
  841 	done