mirror of
https://github.com/adulau/ssldump.git
synced 2024-11-24 02:17:05 +00:00
127 lines
5 KiB
Makefile
127 lines
5 KiB
Makefile
# Copyright (C) 1999-2000 RTFM, Inc.
|
|
# All Rights Reserved
|
|
|
|
# This package is a SSLv3/TLS protocol analyzer written by Eric
|
|
# Rescorla <ekr@rtfm.com> and licensed by RTFM, Inc.
|
|
|
|
# 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.
|
|
# 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:
|
|
#
|
|
# This product includes software developed by Eric Rescorla for
|
|
# RTFM, Inc.
|
|
|
|
# 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.
|
|
CC=@CC@
|
|
|
|
all: ssldump
|
|
|
|
PACKAGE_TARNAME=@PACKAGE_TARNAME@
|
|
PACKAGE_VERSION=@PACKAGE_VERSION@
|
|
|
|
OBJSUFFIX=o
|
|
LIBSUFFIX=a
|
|
INSTALL=@INSTALL@
|
|
prefix=@prefix@
|
|
exec_prefix=@exec_prefix@
|
|
sbindir=@sbindir@
|
|
mandir=@mandir@
|
|
datarootdir=@datarootdir@
|
|
docdir=@docdir@
|
|
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/
|
|
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
|
|
include $(ANALYZE_RECORD_SRCDIR)targets.mk
|
|
|
|
INCLUDES += -I$(COMMONDIR)include/ -I$(ANALYZE_NULL_SRCDIR) -I$(ANALYZE_SSL_SRCDIR)
|
|
|
|
|
|
DEFINES += @DEFINES@
|
|
INCLUDES += @INCLUDES@
|
|
LIBS += @LDFLAGS@ @LIBS@
|
|
|
|
CFLAGS += @CFLAGS@ @DEFS@
|
|
|
|
|
|
.PHONY: clean install dist
|
|
|
|
ssldump: $(OBJECTS)
|
|
$(CC) $(OBJECTS) -o $@ $(LIBS)
|
|
|
|
clean:
|
|
rm -f $(OBJECTS) ssldump
|
|
|
|
install:
|
|
$(INSTALL) -m 755 -d $(sbindir)
|
|
$(INSTALL) -m 755 -d $(mandir)/man1
|
|
$(INSTALL) -m 755 -d $(docdir)
|
|
$(INSTALL) -m 755 ssldump $(sbindir)/ssldump
|
|
$(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)
|
|
|
|
dist:
|
|
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
|