Commit cbbaa3a2 authored by 's avatar

first try for a working 'make distcheck'

git-svn-id: file:///home/svn/mapi/trunk@783 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent b3a0c7b3
SUBDIRS = src doc etc
EXTRA_DIST = COPYING INSTALL tests
# Automake automatically rebuilds Makefile.ins, Makefiles and the configure
# script, however runs aclocal by default without the necessary arguments
ACLOCAL_AMFLAGS = -I .
EXTRA_DIST = COPYING INSTALL tests
dist-hook:
rm -rf `find $(distdir)/tests -name .svn`
......@@ -630,7 +630,6 @@ AC_CONFIG_FILES([
src/extraflib/Makefile
src/extraflib/libnids/Makefile
doc/Makefile
tests/Makefile
etc/Makefile
etc/mapi.conf
applications/appmon/Makefile
......
......@@ -23,4 +23,9 @@ clean:
rm -rf *.aux *.bbl *.blg *.log *.dvi *.toc *.lof mapitutor.ps *.bak man_mapi*tex
man_MANS = mapi.3 mapi_stdflib.3 mapi_extraflib.3 mapi_trackflib.3 mapi_anonflib.3
dist_man_MANS = mapi.3 mapi_stdflib.3 mapi_extraflib.3 mapi_trackflib.3 mapi_anonflib.3
EXTRA_DIST = ipfixlib.txt \
mapi_functions_tutorial.pdf \
mapitutor.pdf \
README_DIMAPI
......@@ -19,7 +19,7 @@ fi \
# ssl stuff
if SSL_IS_ENABLED
install-data-local:
echo Generating SSL keys
echo "Generating SSL keys"
openssl genrsa -out mapicommd_key.pem 1024 2> /dev/null
openssl req -new -x509 -days 30000 -key mapicommd_key.pem -out mapicommd_cert.pem -config mapicommd_cert.cnf
${INSTALL} -m 600 mapicommd_key.pem $(DESTDIR)$(confdir)/mapicommd_key.pem
......@@ -30,3 +30,5 @@ uninstall-local:
rm -f $(DESTDIR)$(confdir)/mapicommd_key.pem
rm -f $(DESTDIR)$(confdir)/mapicommd_cert.pem
endif
EXTRA_DIST = createlib.pl funct_template.c mapicommd_cert.cnf
AM_CPPFLAGS = -Ilib -Icommon -Idrivers -D_GNU_SOURCE -D_THREAD_SAFE
AM_CPPFLAGS = -I$(srcdir)/lib -I$(srcdir)/common -I$(srcdir)/drivers -D_GNU_SOURCE -D_THREAD_SAFE
if BINARY_TRACKFLIB
BUILD_trackflib = trackflib
......@@ -31,15 +31,28 @@ endif
sbin_PROGRAMS = mapid $(BUILD_mapicommd)
mapid_LDADD = common/libflist.la common/libmapiipc.la common/libparseconf.la common/libprintfstring.la -lpthread -ldl
mapid_SOURCES = mapid.c mapid.h
mapid_LDADD = \
common/libflist.la \
common/libmapiipc.la \
common/libparseconf.la \
common/libprintfstring.la -lpthread -ldl
mapid_SOURCES = mapid.c mapid.h mapidevices.h debug.h
if BINARY_DIMAPI
mapicommd_LDADD = common/libmapiipc.la common/libmapilibhandler.la common/libfhelp.la common/libflist.la common/libparseconf.la common/libprintfstring.la -lpthread lib/libmapi.la
mapicommd_LDADD = \
common/libmapiipc.la \
common/libmapilibhandler.la \
common/libfhelp.la \
common/libflist.la \
common/libparseconf.la \
common/libprintfstring.la \
lib/libmapi.la -lpthread
mapicommd_SOURCES = mapicommd.c
endif
#EXTRA_DIST = tests
#dist-hook:
# rm -rf `find $(distdir)/tests -name .svn`
EXTRA_DIST = errors.mapi combo6flib vod
dist-hook:
rm -rf `find $(distdir)/combo6flib -name .svn`
rm -rf `find $(distdir)/vod -name .svn`
AM_CPPFLAGS = -I.. -I../lib -I../drivers -I../common @PCREINC@ -D_GNU_SOURCE -D_THREAD_SAFE
AM_CPPFLAGS = -I$(srcdir)/.. -I$(srcdir)/../lib -I$(srcdir)/../drivers -I$(srcdir)/../common @PCREINC@ -D_GNU_SOURCE -D_THREAD_SAFE
libdir = $(pkgdatadir)
# anonflib
......@@ -6,24 +6,28 @@ libdir = $(pkgdatadir)
# libraries for users)
lib_LTLIBRARIES = anonflib.la
anonflib_la_LDFLAGS = -module
anonflib_la_LIBADD = ../common/libflist.la ../common/libmapiipc.la ../common/libfhelp.la -lm @PCRELIB@
anonflib_la_SOURCES = anonflib.c \
names.c \
anonflib_la_LIBADD = \
../common/libflist.la \
../common/libmapiipc.la \
../common/libfhelp.la -lm @PCRELIB@
anonflib_la_SOURCES = \
aes.c aes.h \
anon_checksums.c \
anonflib.c \
anon_prefix_preserving.c anon_prefix_preserving.h \
anon_print_packet.c \
anon_snort_decode.c \
anonymization_functions.c anonymization_functions.h \
anonymize.c \
uncook.c \
crc32.c crc32.h \
decoders.c \
anon_snort_decode.c \
anon_print_packet.c \
anon_checksums.c \
anon_prefix_preserving.c \
md5.c \
sha1.c \
sha256.c \
anonymization_functions.c \
prefix_preserving_map.c \
des.c des.h \
md5.c md5.h \
names.c names.h \
prefix_preserving_map.c prefix_preserving_map.h \
print_packet.c \
crc32.c \
des.c \
aes.c
sha1.c sha1.h \
sha256.c sha256.h \
uncook.c
pkginclude_HEADERS = anonymization.h anon_snort_decode.h
## Process this file with automake to produce Makefile.in
AM_CPPFLAGS = -I.. -I../lib -I../drivers @SSLINC@ -D_GNU_SOURCE -D_THREAD_SAFE
AM_CPPFLAGS = -I$(srcdir)/.. -I$(srcdir)/../lib -I$(srcdir)/../drivers @SSLINC@ -D_GNU_SOURCE -D_THREAD_SAFE
noinst_LTLIBRARIES = libflist.la libfhelp.la libmapiipc.la libparseconf.la libprintfstring.la libmapilibhandler.la libmsearch.la libacsmx2.la
libflist_la_SOURCES = flist.c flist.h
......@@ -13,12 +13,12 @@ libmapilibhandler_la_SOURCES = mapilibhandler.c mapilibhandler.h
libmsearch_la_SOURCES = mstring.c mstring.h
libacsmx2_la_SOURCES = acsmx2.c acsmx2.h
noinst_HEADERS = mapi_errors.h
noinst_HEADERS = mapidflib.h mapi_errors.h
mapi_errors.h: ../errors.mapi
mapi_errors.h: $(srcdir)/../errors.mapi
echo -e "#ifndef _MAPI_ERRORS_H_ \n#define _MAPI_ERRORS_H_\n" > mapi_errors.h
echo -e "typedef struct errstrct{ \nint err_no; \nchar *desc; \n} errorstruct;\n" >> mapi_errors.h
cat ../errors.mapi|grep "^#" >> mapi_errors.h
cat $(srcdir)/../errors.mapi|grep "^#" >> mapi_errors.h
echo -e "#endif\n" >> mapi_errors.h
clean-local:
......
AM_CPPFLAGS = -I.. -I../lib -I../drivers -I../common @DAGINC@ -D_GNU_SOURCE -D_THREAD_SAFE
AM_CPPFLAGS = -I$(srcdir)/.. -I$(srcdir)/../lib -I$(srcdir)/../drivers -I$(srcdir)/../common @DAGINC@ -D_GNU_SOURCE -D_THREAD_SAFE
libdir = $(pkgdatadir)
# dagflib
......@@ -6,5 +6,9 @@ libdir = $(pkgdatadir)
# libraries for users)
lib_LTLIBRARIES = dagflib.la
dagflib_la_LDFLAGS = -module
dagflib_la_LIBADD = ../common/libflist.la ../common/libmsearch.la ../common/libfhelp.la ../common/libmapiipc.la
dagflib_la_LIBADD = \
../common/libflist.la \
../common/libmsearch.la \
../common/libfhelp.la \
../common/libmapiipc.la
dagflib_la_SOURCES = dagflib.c interface.c to_erf.c
AM_CPPFLAGS = -I.. -I../lib -I../common @PCAPINC@ @DAGINC@ -D_GNU_SOURCE -D_THREAD_SAFE
AM_CPPFLAGS = -I$(srcdir)/.. -I$(srcdir)/../lib -I$(srcdir)/../common @PCAPINC@ @DAGINC@ -D_GNU_SOURCE -D_THREAD_SAFE
libdir = $(pkgdatadir)
if DRIVER_DAG
BUILD_dagdrv = mapidagdrv.la
endif
# mapinicdrv
lib_LTLIBRARIES = mapinicdrv.la $(BUILD_dagdrv)
# mapi device drivers are dynamically loadable modules (but not standalone
# libraries for users)
lib_LTLIBRARIES = mapinicdrv.la $(BUILD_dagdrv)
mapinicdrv_la_LDFLAGS = -module
mapinicdrv_la_LIBADD = ../common/libflist.la ../common/libmapiipc.la ../common/libparseconf.la ../common/libprintfstring.la ../common/libmapilibhandler.la @PCAPLIB@ -lrt
mapinicdrv_la_SOURCES = mapinicdrv.c mapidlib.c cbuf.c
mapinicdrv_la_LIBADD = \
../common/libflist.la \
../common/libmapiipc.la \
../common/libparseconf.la \
../common/libprintfstring.la \
../common/libmapilibhandler.la @PCAPLIB@ -lrt
mapinicdrv_la_SOURCES = mapinicdrv.c mapidlib.c mapidlib.h mapidrv.h
mapidagdrv_la_LDFLAGS = -module
if DRIVER_DAG
mapidagdrv_la_LIBADD = ../common/libflist.la ../common/libmapiipc.la ../common/libparseconf.la ../common/libprintfstring.la ../common/libmapilibhandler.la @DAGLIB@ -lrt
mapidagdrv_la_SOURCES = mapidagdrv.c mapidlib.c
mapidagdrv_la_LDFLAGS = -module
mapidagdrv_la_LIBADD = \
../common/libflist.la \
../common/libmapiipc.la \
../common/libparseconf.la \
../common/libprintfstring.la \
../common/libmapilibhandler.la @DAGLIB@ -lrt
mapidagdrv_la_SOURCES = mapidagdrv.c mapidlib.c mapidlib.h mapidrv.h
endif
EXTRA_DIST = mapicombo6drv.c
SUBDIRS = libnids
AM_CPPFLAGS = -I.. -I../lib -I../common -I../drivers @PCAPINC@ @PCREINC@ -D_GNU_SOURCE -D_THREAD_SAFE
AM_CPPFLAGS = -I$(srcdir)/.. -I$(srcdir)/../lib -I$(srcdir)/../common -I$(srcdir)/../drivers @PCAPINC@ @PCREINC@ -D_GNU_SOURCE -D_THREAD_SAFE
# install mapidstdflib into $(prefix)/share/mapi/
# install extraflib into $(prefix)/share/mapi/
libdir = $(pkgdatadir)
# extraflib
lib_LTLIBRARIES = extraflib.la
extraflib_la_LDFLAGS = -module
extraflib_la_LIBADD = libnids/libnids.la ../common/libflist.la ../common/libfhelp.la ../common/libmapiipc.la @PCAPLIB@ @PCRELIB@ -lm
extraflib_la_SOURCES = extraflib.c \
extraflib_la_LIBADD = \
libnids/libnids.la \
../common/libflist.la \
../common/libfhelp.la \
../common/libmapiipc.la @PCAPLIB@ @PCRELIB@ -lm
extraflib_la_SOURCES = \
cooking.c cooking.h \
extraflib.c \
pcapio.h \
protocols.h \
regexp.c \
topx.c
noinst_HEADERS = pcapio.h protocols.h
pkginclude_HEADERS = topx.h
AM_CPPFLAGS = -I../../common \
AM_CPPFLAGS = -I$(srcdir)/../../common \
-D_BSD_SOURCE -DLIBNET_VER=1 -DHAVE_ICMPHDR=1 \
-DHAVE_TCP_STATES=1 -DHAVE_BSD_UDPHDR=1
noinst_LTLIBRARIES = libnids.la
libnids_la_SOURCES = \
ip_fragment.c \
config.h \
hash.c hash.h \
ip_fragment.c ip_fragment.h \
ip_options.c \
libnids.c \
tcp.c \
util.c \
hash.c
nids.h \
tcp.c tcp.h \
util.c util.h
AM_CPPFLAGS = -I.. -I../lib -I../drivers -I../common -D_GNU_SOURCE -D_THREAD_SAFE
AM_CPPFLAGS = -I$(srcdir)/.. -I$(srcdir)/../lib -I$(srcdir)/../drivers -I$(srcdir)/../common -D_GNU_SOURCE -D_THREAD_SAFE
# install ipfixflib into $(prefix)/share/mapi/
libdir = $(pkgdatadir)
# ipfixlib
# mapi function libraries are dynamically loadable modules (but not standalone
# libraries for users)
lib_LTLIBRARIES = ipfixlib.la
ipfixlib_la_LDFLAGS = -module
ipfixlib_la_LIBADD = ../common/libfhelp.la ../common/libmapiipc.la ../common/libflist.la ../common/ -lz -lpcap ../common/libmsearch.la ../common/libparseconf.la
ipfixlib_la_LIBADD = \
../common/libfhelp.la \
../common/libmapiipc.la \
../common/libflist.la \
../common/ \
../common/libmsearch.la \
../common/libparseconf.la -lz -lpcap
ipfixlib_la_SOURCES = ipfixlib.c \
nprobe.c \
npktproc.c \
md5.c \
engine.c \
util.c \
ipfixlib_la_SOURCES = \
engine.c engine.h\
ifp-priv.h \
ipfixlib.c \
ipfixprobe.c \
npctrl.c \
services.c
md5.c md5.h \
npctrl.c npctrl.h \
npctxt.h \
npktproc.c npktproc.h \
nprobe_bucket.h \
nprobe.c nprobe.h \
nprobe-priv.h \
services.c services.h \
util.c util.h
# these headers will be installd in $prefix/include/mapi
pkginclude_HEADERS = ipfixlib.h
EXTRA_DIST = COPYING etter.passive.os.fp README-nprobe
AM_CPPFLAGS = -I.. -I../common -I../drivers -D_GNU_SOURCE -D_THREAD_SAFE
AM_CPPFLAGS = -I$(srcdir)/.. -I$(srcdir)/../common -I$(srcdir)/../drivers -D_GNU_SOURCE -D_THREAD_SAFE
lib_LTLIBRARIES = libmapi.la
#libmapi_la_DEPENDENCIES = ../common/libflist.la
libmapi_la_LDFLAGS = -no-undefined -avoid-version
libmapi_la_LIBADD = ../common/libflist.la ../common/libfhelp.la ../common/libmapiipc.la ../common/libparseconf.la ../common/libprintfstring.la ../common/libmapilibhandler.la -lpthread -ldl
libmapi_la_LIBADD = \
../common/libflist.la \
../common/libfhelp.la \
../common/libmapiipc.la \
../common/libparseconf.la \
../common/libprintfstring.la \
../common/libmapilibhandler.la -lpthread -ldl
libmapi_la_SOURCES = mapi.c mapi_errors.c
include_HEADERS = mapi.h
mapi_errors.c: ../errors.mapi
mapi_errors.c: $(srcdir)/../errors.mapi
echo -e "#include \"mapi_errors.h\"\n" > mapi_errors.c
echo -e "const errorstruct Errors[] = {" >> mapi_errors.c
cat ../errors.mapi|grep -v "#"| awk -F= '{print "{" $$1 "," $$2 "},"}' >> mapi_errors.c
......
AM_CPPFLAGS = -I.. -I../lib -I../common -I../drivers @PCAPINC@ -D_GNU_SOURCE -D_THREAD_SAFE
AM_CPPFLAGS = -I$(srcdir)/.. -I$(srcdir)/../lib -I$(srcdir)/../common -I$(srcdir)/../drivers @PCAPINC@ -D_GNU_SOURCE -D_THREAD_SAFE
# install mapidstdflib into $(prefix)/share/mapi/
libdir = $(pkgdatadir)
......@@ -8,7 +8,11 @@ libdir = $(pkgdatadir)
# libraries for users)
lib_LTLIBRARIES = stdflib.la
stdflib_la_LDFLAGS = -module
stdflib_la_LIBADD = ../common/libflist.la ../common/libfhelp.la ../common/libmapiipc.la ../common/libmsearch.la @PCAPLIB@ -lm
stdflib_la_LIBADD = \
../common/libflist.la \
../common/libfhelp.la \
../common/libmapiipc.la \
../common/libmsearch.la @PCAPLIB@ -lm
stdflib_la_SOURCES = stdflib.c \
binop.c binop.h \
bpffilter.c \
......
AM_CPPFLAGS = -I.. -I../lib -I../drivers -I../common -D_GNU_SOURCE -D_THREAD_SAFE
AM_CPPFLAGS = -I$(srcdir)/.. -I$(srcdir)/../lib -I$(srcdir)/../drivers -I$(srcdir)/../common -D_GNU_SOURCE -D_THREAD_SAFE
libdir = $(pkgdatadir)
# trackflib
......@@ -6,7 +6,10 @@ libdir = $(pkgdatadir)
# libraries for users)
lib_LTLIBRARIES = trackflib.la
trackflib_la_LDFLAGS = -module
trackflib_la_LIBADD = ../common/libflist.la ../common/libmsearch.la ../common/libacsmx2.la
trackflib_la_LIBADD = \
../common/libflist.la \
../common/libmsearch.la \
../common/libacsmx2.la
trackflib_la_SOURCES = \
dc.c \
edonkey.c edonkey.h \
......
CC = @CC@
CFLAGS = @CFLAGS@
LDFLAGS = -L@prefix@/lib -lmapi @PCAPLIB@
INCLUDE = -I@prefix@/include @PCAPINC@
CC = gcc
CFLAGS = -g -O2 -W -Wall
LDFLAGS = -lmapi -lpcap
INCLUDE =
SOURCES=$(wildcard *.c)
TARGETS=$(SOURCES:.c=)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment