2015-01-31 09:13:33 +00:00
|
|
|
# Copyright (C) 1999-2000 RTFM, Inc.
|
|
|
|
# All Rights Reserved
|
|
|
|
|
2019-05-20 08:31:58 +00:00
|
|
|
# This package is a SSLv3/TLS protocol analyzer written by Eric
|
|
|
|
# Rescorla <ekr@rtfm.com> and licensed by RTFM, Inc.
|
2015-01-31 09:13:33 +00:00
|
|
|
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions
|
|
|
|
# are met:
|
|
|
|
# 1. Redistributions of source code must retain the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
2019-05-20 08:31:58 +00:00
|
|
|
# 2. Redistributions in binary form must reproduce the above
|
|
|
|
# copyright notice, this list of conditions and the following
|
|
|
|
# disclaimer in the documentation and/or other materials provided
|
|
|
|
# with the distribution.
|
|
|
|
# 3. All advertising materials mentioning features or use of this
|
|
|
|
# software must display the following acknowledgement:
|
2015-01-31 09:13:33 +00:00
|
|
|
#
|
|
|
|
# This product includes software developed by Eric Rescorla for
|
|
|
|
# RTFM, Inc.
|
|
|
|
|
2019-05-20 08:31:58 +00:00
|
|
|
# 4. Neither the name of RTFM, Inc. nor the name of Eric Rescorla may
|
|
|
|
# be used to endorse or promote products derived from this software
|
|
|
|
# without specific prior written permission.
|
|
|
|
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY ERIC RESCORLA AND RTFM, INC. ``AS IS''
|
|
|
|
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
|
|
|
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
|
|
|
|
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
|
|
|
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
|
|
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
|
|
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
|
|
|
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
|
|
|
|
# SUCH DAMAGE.
|
2015-01-31 09:13:33 +00:00
|
|
|
CC=@CC@
|
|
|
|
|
|
|
|
all: ssldump
|
|
|
|
|
2019-05-20 08:36:13 +00:00
|
|
|
PACKAGE_TARNAME=@PACKAGE_TARNAME@
|
|
|
|
PACKAGE_VERSION=@PACKAGE_VERSION@
|
|
|
|
|
2015-01-31 09:13:33 +00:00
|
|
|
OBJSUFFIX=o
|
|
|
|
LIBSUFFIX=a
|
|
|
|
INSTALL=@INSTALL@
|
|
|
|
prefix=@prefix@
|
|
|
|
exec_prefix=@exec_prefix@
|
2019-05-20 15:28:13 +00:00
|
|
|
sbindir=@sbindir@
|
|
|
|
mandir=@mandir@
|
2019-05-20 10:39:28 +00:00
|
|
|
datarootdir=@datarootdir@
|
|
|
|
docdir=@docdir@
|
2015-01-31 09:13:33 +00:00
|
|
|
RM=rm -f
|
|
|
|
|
|
|
|
ROOT=./
|
|
|
|
ANALYZE_SRCDIR=$(ROOT)base/
|
|
|
|
COMMONDIR=common/
|
|
|
|
COMMON_LIB_SRCDIR=$(COMMONDIR)lib/
|
|
|
|
ANALYZE_NULL_SRCDIR=$(ROOT)null/
|
|
|
|
ANALYZE_SSL_SRCDIR=$(ROOT)ssl/
|
2020-04-11 22:14:38 +00:00
|
|
|
PCAP_SRCDIR=$(ROOT)pcap/
|
2015-01-31 09:13:33 +00:00
|
|
|
ANALYZE_RECORD_SRCDIR=$(ROOT)@RECORD_MOD@/
|
|
|
|
include rules.mk
|
|
|
|
|
|
|
|
include $(COMMON_LIB_SRCDIR)/targets.mk
|
|
|
|
include $(ANALYZE_SRCDIR)targets.mk
|
|
|
|
include $(ANALYZE_NULL_SRCDIR)targets.mk
|
|
|
|
include $(ANALYZE_SSL_SRCDIR)targets.mk
|
2020-04-11 22:14:38 +00:00
|
|
|
include $(PCAP_SRCDIR)targets.mk
|
2015-01-31 09:13:33 +00:00
|
|
|
include $(ANALYZE_RECORD_SRCDIR)targets.mk
|
|
|
|
|
2020-04-11 22:14:38 +00:00
|
|
|
INCLUDES += -I$(COMMONDIR)include/ -I$(ANALYZE_NULL_SRCDIR) -I$(ANALYZE_SSL_SRCDIR) -I$(PCAP_SRCDIR)
|
2015-01-31 09:13:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
DEFINES += @DEFINES@
|
|
|
|
INCLUDES += @INCLUDES@
|
|
|
|
LIBS += @LDFLAGS@ @LIBS@
|
|
|
|
|
|
|
|
CFLAGS += @CFLAGS@ @DEFS@
|
|
|
|
|
|
|
|
|
2019-05-20 08:36:13 +00:00
|
|
|
.PHONY: clean install dist
|
|
|
|
|
2015-01-31 09:13:33 +00:00
|
|
|
ssldump: $(OBJECTS)
|
2019-05-20 08:31:58 +00:00
|
|
|
$(CC) $(OBJECTS) -o $@ $(LIBS)
|
2015-01-31 09:13:33 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJECTS) ssldump
|
|
|
|
|
|
|
|
install:
|
2019-05-20 10:39:28 +00:00
|
|
|
$(INSTALL) -m 755 -d $(sbindir)
|
|
|
|
$(INSTALL) -m 755 -d $(mandir)/man1
|
|
|
|
$(INSTALL) -m 755 -d $(docdir)
|
2019-05-20 15:28:13 +00:00
|
|
|
$(INSTALL) -m 755 ssldump $(sbindir)/ssldump
|
2019-05-20 10:39:28 +00:00
|
|
|
$(INSTALL) -m 644 ssldump.1 $(mandir)/man1/ssldump.1
|
|
|
|
$(INSTALL) -m 644 README $(docdir)
|
|
|
|
$(INSTALL) -m 644 README.md $(docdir)
|
|
|
|
$(INSTALL) -m 644 ChangeLog $(docdir)
|
|
|
|
$(INSTALL) -m 644 COPYRIGHT $(docdir)
|
|
|
|
$(INSTALL) -m 644 CREDITS $(docdir)
|
2015-01-31 09:13:33 +00:00
|
|
|
|
|
|
|
dist:
|
2019-05-20 08:36:13 +00:00
|
|
|
rm -rf dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
|
|
|
|
mkdir -p dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
|
|
|
|
ls -1| grep -vx -e dist -e autom4te.cache \
|
|
|
|
| xargs cp -pR -t dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
|
|
|
|
make -C dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) clean
|
|
|
|
rm dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)/Makefile
|
|
|
|
find dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) -name '*~' -exec rm {} \; -print
|
|
|
|
find dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) -name '*.o' -exec rm {} \; -print
|
|
|
|
find dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) -name '#*#' -exec rm {} \; -print
|
|
|
|
find dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) -name '.#*' -exec rm {} \; -print
|
|
|
|
find dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) -name 'CVS' -exec rm -rf {} \; -print
|
|
|
|
find dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) -name '*bak' -exec rm -rf {} \; -print
|
|
|
|
find dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) -name '*.core' -exec rm -rf {} \; -print
|
|
|
|
find dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) -name '*.tr' -exec rm -rf {} \; -print
|
|
|
|
find dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) -name '*.pl' -exec rm -rf {} \; -print
|
|
|
|
find dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) -name '*.pem' -exec rm -rf {} \; -print
|
|
|
|
find dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) -name '*orig' -exec rm -rf {} \; -print
|
|
|
|
find dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION) -name '*.rej' -exec rm -rf {} \; -print
|
|
|
|
rm -f dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)/config.status
|
|
|
|
rm -f dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)/config.log
|
|
|
|
rm -f dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)/config.cache
|
|
|
|
rm -f dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)/config.h
|
|
|
|
rm -f dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)/ssl/a.out
|
|
|
|
rm -f dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)/all
|
|
|
|
tar cf - -C dist $(PACKAGE_TARNAME)-$(PACKAGE_VERSION) \
|
|
|
|
| gzip >dist/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz
|