1# $Id
2AUTOMAKE_OPTIONS=foreign no-dependencies
3
4INCLUDES = -I../include -I${srcdir}/../libs
5
6dynamicpreprocessordir = ${libdir}/snort_dynamicpreprocessor
7
8dynamicpreprocessor_LTLIBRARIES = libsf_dnp3_preproc.la
9
10libsf_dnp3_preproc_la_LDFLAGS = -export-dynamic -module @XCCFLAGS@
11if SO_WITH_STATIC_LIB
12libsf_dnp3_preproc_la_LIBADD = ../libsf_dynamic_preproc.la
13if BUILD_SNORT_RELOAD
14libsf_dnp3_preproc_la_LIBADD += ../libsf_dynamic_utils.la
15endif
16else
17nodist_libsf_dnp3_preproc_la_SOURCES = \
18../include/sf_dynamic_preproc_lib.c \
19../include/sfPolicyUserData.c \
20../include/mempool.c \
21../include/sf_sdlist.c
22if BUILD_SNORT_RELOAD
23nodist_libsf_dnp3_preproc_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
24endif
25endif
26
27libsf_dnp3_preproc_la_SOURCES = \
28spp_dnp3.c \
29spp_dnp3.h \
30dnp3_paf.c \
31dnp3_paf.h \
32dnp3_reassembly.c \
33dnp3_reassembly.h \
34dnp3_roptions.c \
35dnp3_roptions.h \
36dnp3_map.c \
37dnp3_map.h
38
39if BUILD_BUFFER_DUMP
40libsf_dnp3_preproc_la_SOURCES += \
41dnp3_buffer_dump.c \
42dnp3_buffer_dump.h
43endif
44
45
46EXTRA_DIST = \
47sf_dnp3.vcxproj \
48sf_dnp3.dsp
49
50all-local: $(LTLIBRARIES)
51	$(MAKE) DESTDIR=`pwd`/../build install-dynamicpreprocessorLTLIBRARIES
52
53