fluffy/Makefile.am

84 lines
2.5 KiB
Makefile
Raw Permalink Normal View History

ACLOCAL_AMFLAGS = -I m4
2013-02-05 12:03:02 -07:00
bin_PROGRAMS = hdng unhex xor repr puniq pmerge p4split pcat
dist_bin_SCRIPTS = scripts/dumbdecode
dist_man1_MANS = docs/hdng.mdoc docs/unhex.mdoc docs/xor.mdoc docs/repr.mdoc \
docs/puniq.mdoc docs/pmerge.mdoc docs/p4split.mdoc \
docs/pcat.mdoc docs/dumbdecode.mdoc
dist_man7_MANS = docs/netre-tools.mdoc
MANPAGES = $(dist_man1_MANS) $(dist_man7_MANS)
AM_CFLAGS =
AM_CPPFLAGS =
if IS_GCC
AM_CFLAGS += -std=c99
AM_CPPFLAGS += -D_GNU_SOURCE
if IS_DEBUG
AM_CFLAGS += -g -ggdb -O0
AM_CFLAGS += -Wno-long-long -Wall -W -Wnested-externs -Wformat=2
AM_CFLAGS += -Wstrict-prototypes
AM_CFLAGS += -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare
AM_CFLAGS += -Wundef -Wbad-function-cast -Winline -Wcast-align -Wno-pointer-sign
endif
endif
if IS_DEBUG
AM_CPPFLAGS += -DDEBUGSTMTS
endif
2013-02-05 12:03:02 -07:00
noinst_LTLIBRARIES = libpcap.la libstream.la
libpcap_la_SOURCES = src/pcap.c src/pcap.h
libstream_la_SOURCES = src/stream.c src/stream.h
noinst_HEADERS = src/netre.h
hdng_SOURCES = src/hdng.c
unhex_SOURCES = src/unhex.c
xor_SOURCES = src/xor.c
repr_SOURCES = src/repr.c
puniq_SOURCES = src/puniq.c
puniq_LDADD = libpcap.la
pmerge_SOURCES = src/pmerge.c
pmerge_LDADD = libpcap.la
p4split_SOURCES = src/p4split.c
p4split_LDADD = libpcap.la
pcat_SOURCES = src/pcat.c
pcat_LDADD = libpcap.la libstream.la
MAINTAINERCLEANFILES = Makefile.in aclocal.m4 build-aux/compile \
build-aux/config.guess build-aux/config.sub \
build-aux/depcomp build-aux/install-sh build-aux/missing \
2013-02-05 12:03:02 -07:00
config.h.in config.h.in~ configure build-aux/ltmain.sh \
m4/libtool.m4 m4/lt~obsolete.m4 m4/ltoptions.m4 \
m4/ltsugar.m4 m4/ltversion.m4
EXTRA_DIST = $(MANPAGES)
2013-02-05 12:03:02 -07:00
docdir = $(datadir)/doc/@PACKAGE@
doc_DATA = README AUTHORS TODO
docs: Makefile $(MANPAGES)
maintainer-clean-local:
rmdir build-aux
rmdir m4
dist-hook: docs
install-exec-hook:
(cd $(DESTDIR)$(bindir); \
2013-02-05 12:03:02 -07:00
$(LN_S) xor rot; \
$(LN_S) xor rol; \
$(LN_S) xor caesar; )
install-data-hook:
(cd $(DESTDIR)$(man1dir); \
2013-02-05 12:03:02 -07:00
$(LN_S) xor.1 rot.1; \
$(LN_S) xor.1 rol.1; \
$(LN_S) xor.1 caesar.1; )
uninstall-hook:
rm $(DESTDIR)$(bindir)/{rot,rol,caesar}
rm $(DESTDIR)$(man1dir)/{rot,rol,caesar}.1