mirror of
https://github.com/adulau/ssldump.git
synced 2024-12-03 14:57:13 +00:00
Autoconf setup rewritten
This commit is contained in:
parent
7491b98515
commit
0a840ae521
30 changed files with 103 additions and 10844 deletions
1
AUTHORS
Symbolic link
1
AUTHORS
Symbolic link
|
@ -0,0 +1 @@
|
|||
CREDITS
|
1
COPYING
Symbolic link
1
COPYING
Symbolic link
|
@ -0,0 +1 @@
|
|||
COPYRIGHT
|
27
Makefile.am
Normal file
27
Makefile.am
Normal file
|
@ -0,0 +1,27 @@
|
|||
bin_PROGRAMS = ssldump
|
||||
ssldump_SOURCES = \
|
||||
base/pcap-snoop.c\
|
||||
base/network.c\
|
||||
base/proto_mod.c\
|
||||
base/common.c\
|
||||
ssl/ssl_analyze.c\
|
||||
null/null_analyze.c\
|
||||
common/lib/r_errors.c\
|
||||
base/tcppack.c\
|
||||
base/tcpconn.c\
|
||||
ssl/ssldecode.c\
|
||||
ssl/sslprint.c\
|
||||
ssl/ssl.enums.c\
|
||||
ssl/sslxprint.c\
|
||||
ssl/ciphersuites.c
|
||||
|
||||
ssldump_CPPFLAGS = \
|
||||
-I$(top_srcdir)\
|
||||
-I$(top_srcdir)/common/include\
|
||||
-I$(top_srcdir)/null\
|
||||
-I$(top_srcdir)/ssl\
|
||||
-I$(top_srcdir)/base\
|
||||
-D_BSD_SOURCE=1\
|
||||
-D_DEFAULT_SOURCE=1\
|
||||
-DLINUX
|
||||
|
127
Makefile.in
127
Makefile.in
|
@ -1,127 +0,0 @@
|
|||
# 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
|
1
NEWS
Symbolic link
1
NEWS
Symbolic link
|
@ -0,0 +1 @@
|
|||
ChangeLog
|
|
@ -30,6 +30,13 @@ Additional back-end code available is in the [crl-monitor ](https://github.com/a
|
|||
|
||||
- Current version of ssldump is v1.1 (released: 2019-12-28) - [ChangeLog](https://raw.githubusercontent.com/adulau/ssldump/master/ChangeLog)
|
||||
|
||||
# Build instructions
|
||||
|
||||
./autogen.sh
|
||||
./configure --prefix=/usr/local
|
||||
make
|
||||
make install
|
||||
|
||||
## Contributing
|
||||
|
||||
The contributing policy is simple. If you have a patch to propose, make a pull-request
|
||||
|
|
5
autogen.sh
Executable file
5
autogen.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
autoreconf -v -i
|
||||
|
||||
|
|
@ -47,6 +47,10 @@
|
|||
#ifndef _network_h
|
||||
#define _network_h
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ static int pcap_if_type=DLT_NULL;
|
|||
int err_exit PROTO_LIST((char *str,int num));
|
||||
int usage PROTO_LIST((void));
|
||||
int print_version PROTO_LIST((void));
|
||||
RETSIGTYPE sig_handler PROTO_LIST((void));
|
||||
void sig_handler PROTO_LIST((void));
|
||||
void pcap_cb PROTO_LIST((u_char *ptr,struct pcap_pkthdr *hdr,u_char *data));
|
||||
int main PROTO_LIST((int argc,char **argv));
|
||||
|
||||
|
@ -124,7 +124,7 @@ int print_version()
|
|||
exit(0);
|
||||
}
|
||||
|
||||
RETSIGTYPE sig_handler()
|
||||
void sig_handler()
|
||||
{
|
||||
fflush(stdout);
|
||||
exit(0);
|
||||
|
|
275
base/targets.mk
275
base/targets.mk
|
@ -1,275 +0,0 @@
|
|||
#
|
||||
# targets.mk
|
||||
#
|
||||
# $Source: /usr/local/CVS/ssldump/base/targets.mk,v $
|
||||
# $Revision: 1.3 $
|
||||
# $Date: 2002/08/17 01:33:16 $
|
||||
# $Name: $
|
||||
# $Disclaimer$
|
||||
#
|
||||
# Copyright (C) 2001, Terisa Systems, Inc.
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# ekr@terisa.com
|
||||
#
|
||||
|
||||
|
||||
|
||||
#
|
||||
# CONFIGURE USER-DEFINED MAKE ENVIRONMENT
|
||||
#
|
||||
# These fields are specified by the user. The remainder of
|
||||
# this file is generated from this user-specified information.
|
||||
#
|
||||
# ANALYZE_DEFINES:
|
||||
# cpp defines, with the -D flag preceeding each
|
||||
#
|
||||
# ANALYZE_INCLUDES:
|
||||
# cpp include directories, with the -I flag preceeding each
|
||||
#
|
||||
# ANALYZE_INTERNAL:
|
||||
# headers files which are local to a specific module directory,
|
||||
# and should not be used by other parts of the toolkit or by
|
||||
# the user
|
||||
#
|
||||
# ANALYZE_LIBNAME:
|
||||
# the library associated with this module directory, used in
|
||||
# most cases for debugging purposes
|
||||
#
|
||||
# ANALYZE_LIBPATHS:
|
||||
# link-time directories to search for libraries, with the -L flag
|
||||
# preceeding each
|
||||
#
|
||||
# ANALYZE_LIBRARIES:
|
||||
# link-time libraries, with the -l flag preceeding each
|
||||
#
|
||||
# ANALYZE_LOCALFLAGS:
|
||||
# compile-time flags specific to compiling only the files in
|
||||
# this module directory--this variable should only be set in
|
||||
# extremely exceptional cases
|
||||
#
|
||||
# ANALYZE_MAKEFILES:
|
||||
# the makefiles
|
||||
#
|
||||
# ANALYZE_PREFIX:
|
||||
# defines the module name, which also serves as the
|
||||
# prefix for all the variable names defined in this file
|
||||
#
|
||||
# ANALYZE_PRIVATE:
|
||||
# the private, for-toolkit-use-only API header files
|
||||
#
|
||||
# ANALYZE_PROGRAMS:
|
||||
# programs to build
|
||||
#
|
||||
# ANALYZE_PUBLIC:
|
||||
# the header files that define the public API for the toolkit
|
||||
# and any other 'public' files that should be copied to
|
||||
# the build directory
|
||||
#
|
||||
# ANALYZE_SOURCES:
|
||||
# the source files to compile to object
|
||||
#
|
||||
ANALYZE_DEFINES =
|
||||
ANALYZE_INCLUDES = -I$(ANALYZE_SRCDIR)
|
||||
ANALYZE_INTERNAL =
|
||||
ANALYZE_LIBNAME =
|
||||
ANALYZE_LIBPATHS =
|
||||
ANALYZE_LIBRARIES =
|
||||
ANALYZE_LOCALFLAGS =
|
||||
ANALYZE_MAKEFILES = targets.mk
|
||||
ANALYZE_PREFIX = ANALYZE
|
||||
ANALYZE_PRIVATE = network.h proto_mod.h tcpconn.h tcppack.h
|
||||
ANALYZE_PROGRAMS =
|
||||
ANALYZE_PUBLIC =
|
||||
ANALYZE_SOURCES = network.c pcap-snoop.c proto_mod.c tcpconn.c \
|
||||
tcppack.c
|
||||
|
||||
|
||||
|
||||
#
|
||||
# CONFIGURE AUTOMATICALLY-GENERATED MAKE ENVIRONMENT
|
||||
#
|
||||
# ANALYZE_OBJECTS:
|
||||
# object files to build
|
||||
#
|
||||
# ANALYZE_UNUSED:
|
||||
# obsolete files in the module directory that are not
|
||||
# used during the build process
|
||||
#
|
||||
# ANALYZE_USED:
|
||||
# all files in the module directory that are used
|
||||
# during the build process
|
||||
#
|
||||
ANALYZE_OBJECTS = network.$(OBJSUFFIX) pcap-snoop.$(OBJSUFFIX) \
|
||||
proto_mod.$(OBJSUFFIX) tcpconn.$(OBJSUFFIX) \
|
||||
tcppack.$(OBJSUFFIX)
|
||||
ANALYZE_UNUSED = common.c debug.c debug.h print_utils.c \
|
||||
print_utils.h
|
||||
ANALYZE_USED = $(ANALYZE_INTERNAL:%=$(ANALYZE_SRCDIR)%) \
|
||||
$(ANALYZE_MAKEFILES:%=$(ANALYZE_SRCDIR)%) \
|
||||
$(ANALYZE_PRIVATE:%=$(ANALYZE_SRCDIR)%) \
|
||||
$(ANALYZE_PUBLIC:%=$(ANALYZE_SRCDIR)%) \
|
||||
$(ANALYZE_SOURCES:%=$(ANALYZE_SRCDIR)%)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# NOTES
|
||||
#
|
||||
# The following variables may be used during the build process,
|
||||
# but are not defined in this file. If they are to be set
|
||||
# to something other than the default blank, then they must
|
||||
# be set by the calling make system.
|
||||
#
|
||||
# ANALYZE_SRCDIR:
|
||||
# if the build target directory is different from the
|
||||
# module directory (the source directory), then this
|
||||
# variable contains the relative or full path of
|
||||
# the module directory
|
||||
#
|
||||
# LIBARS:
|
||||
# the library archive files (with fully-specified paths) that
|
||||
# executables built from this module directory depend upon
|
||||
#
|
||||
# LIBPATHS:
|
||||
# the paths to search for library archives (specified with
|
||||
# the -L)
|
||||
#
|
||||
# LIBRARIES:
|
||||
# the libraries to use while building executables from
|
||||
# this module directory (specified with the -l)
|
||||
#
|
||||
|
||||
|
||||
|
||||
#
|
||||
# GLOBAL ENVIRONMENT
|
||||
#
|
||||
DEFINES += $(ANALYZE_DEFINES)
|
||||
INCLUDES += $(ANALYZE_INCLUDES)
|
||||
LIBPATHS += $(ANALYZE_LIBPATHS)
|
||||
LIBRARIES += $(ANALYZE_LIBRARIES)
|
||||
OBJECTS += $(ANALYZE_OBJECTS)
|
||||
PUBLIC += $(ANALYZE_PUBLIC)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# GENERIC DEPENDENCIES
|
||||
#
|
||||
# default:
|
||||
# default dependency, must be the first dependency in this makefile
|
||||
#
|
||||
# all:
|
||||
# build everything in this module directory
|
||||
#
|
||||
# build:
|
||||
# make only the toolkit build files of this module directory
|
||||
#
|
||||
# ci:
|
||||
# perform an RCS check-in of this module directory
|
||||
#
|
||||
# clean:
|
||||
# remove the compiled files
|
||||
#
|
||||
# clean_public:
|
||||
# remove the public header files that have been copied
|
||||
# to a public build directory
|
||||
#
|
||||
# objects:
|
||||
# build the object files (this dependency is used for
|
||||
# building the toolkit library)
|
||||
#
|
||||
# private:
|
||||
# build only the private API header files
|
||||
#
|
||||
# public:
|
||||
# build only the public API header files
|
||||
#
|
||||
default: $(ANALYZE_LIBNAME)
|
||||
default: $(ANALYZE_PROGRAMS)
|
||||
|
||||
all: $(ANALYZE_PUBLIC)
|
||||
all: $(ANALYZE_OBJECTS)
|
||||
all: $(ANALYZE_LIBNAME)
|
||||
all: $(ANALYZE_PROGRAMS)
|
||||
build: $(ANALYZE_PUBLIC)
|
||||
build: $(ANALYZE_OBJECTS)
|
||||
ci: analyze_ci
|
||||
clean: analyze_clean
|
||||
clean_public: analyze_clean_public
|
||||
objects: $(ANALYZE_OBJECTS)
|
||||
private: $(ANALYZE_PRIVATE)
|
||||
public: $(ANALYZE_PUBLIC)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# LOCAL UTILITY DEPENDENCIES
|
||||
#
|
||||
# utility dependencies are necessary because of some
|
||||
# make-isms having to do with dependencies
|
||||
#
|
||||
|
||||
analyze_ci:
|
||||
$(CI) $(CIFLAGS) $(ANALYZE_USED)
|
||||
|
||||
analyze_clean:
|
||||
$(RM) $(RMFLAGS) $(ANALYZE_OBJECTS) $(ANALYZE_LIBNAME) $(ANALYZE_PROGRAMS)
|
||||
|
||||
analyze_clean_public:
|
||||
$(RM) $(RMFLAGS) $(ANALYZE_PUBLIC)
|
||||
|
||||
analyze_objects: $(ANALYZE_OBJECTS)
|
||||
|
||||
analyze_programs: $(ANALYZE_PROGRAMS)
|
||||
|
||||
analyze_public: $(ANALYZE_PUBLIC)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# BUILD DEPENDENCIES
|
||||
#
|
||||
# build dependencies invoke the rule used to build each
|
||||
# class of file
|
||||
#
|
||||
|
||||
$(ANALYZE_LIBNAME):
|
||||
$(AR) $(ARFLAGS) $@ $?
|
||||
$(RANLIB) $@
|
||||
|
||||
$(ANALYZE_OBJECTS):
|
||||
$(COMPILE.c) $(ANALYZE_SRCDIR)$(@:%.$(OBJSUFFIX)=%.c) $(DEFINES) $(INCLUDES) $(ANALYZE_LOCALFLAGS)
|
||||
|
||||
$(ANALYZE_PUBLIC):
|
||||
$(CP) $(CPFLAGS) $(ANALYZE_SRCDIR)$@ $@
|
||||
|
||||
$(ANALYZE_PROGRAMS):
|
||||
$(LINK.c) -o $@ $@.$(OBJSUFFIX) $(LDLIBS) $(LIBS) $(LIBRARIES) $(LIBPATHS)
|
||||
#LIBS above is obsolete (use LIBARARIES instead)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# FILE DEPENDENCIES
|
||||
#
|
||||
# file dependencies state, for each file that is built,
|
||||
# which file(s) it depends upon
|
||||
#
|
||||
|
||||
network.$(OBJSUFFIX): $(ANALYZE_SRCDIR)network.h
|
||||
network.$(OBJSUFFIX): $(ANALYZE_SRCDIR)network.c
|
||||
|
||||
pcap-snoop.$(OBJSUFFIX): $(ANALYZE_SRCDIR)pcap-snoop.c
|
||||
|
||||
proto_mod.$(OBJSUFFIX): $(ANALYZE_SRCDIR)proto_mod.h
|
||||
proto_mod.$(OBJSUFFIX): $(ANALYZE_SRCDIR)proto_mod.c
|
||||
|
||||
tcpconn.$(OBJSUFFIX): $(ANALYZE_SRCDIR)tcpconn.h
|
||||
tcpconn.$(OBJSUFFIX): $(ANALYZE_SRCDIR)tcpconn.c
|
||||
|
||||
tcppack.$(OBJSUFFIX): $(ANALYZE_SRCDIR)tcppack.h
|
||||
tcppack.$(OBJSUFFIX): $(ANALYZE_SRCDIR)tcppack.c
|
||||
|
||||
$(ANALYZE_LIBNAME): $(ANALYZE_OBJECTS)
|
1
common/Makefile.am
Normal file
1
common/Makefile.am
Normal file
|
@ -0,0 +1 @@
|
|||
SUBDIRS = lib
|
|
@ -47,6 +47,10 @@
|
|||
#ifndef _r_common_h
|
||||
#define _r_common_h
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include "r_defaults.h"
|
||||
#include "r_includes.h"
|
||||
#include "r_types.h"
|
||||
|
|
|
@ -47,6 +47,10 @@
|
|||
#ifndef _r_time_h
|
||||
#define _r_time_h
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <winsock2.h>
|
||||
#else
|
||||
|
|
|
@ -47,6 +47,10 @@
|
|||
#ifndef _r_types_h
|
||||
#define _r_types_h
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#ifndef R_DEFINED_UINT4
|
||||
#ifndef SIZEOF_UNSIGNED_INT
|
||||
typedef unsigned int UINT4;
|
||||
|
|
|
@ -1,279 +0,0 @@
|
|||
#
|
||||
# local.mk
|
||||
#
|
||||
# $Source: /usr/local/CVS/ssldump/common/lib/local.mk,v $
|
||||
# $Revision: 1.2 $
|
||||
# $Date: 2001/10/04 17:19:47 $
|
||||
# $Name: $
|
||||
# $Disclaimer$
|
||||
#
|
||||
# Copyright (C) 2001, Terisa Systems, Inc.
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# ekr@terisa.com
|
||||
#
|
||||
|
||||
|
||||
|
||||
#
|
||||
# CONFIGURE USER-DEFINED MAKE ENVIRONMENT
|
||||
#
|
||||
# These fields are specified by the user. The remainder of
|
||||
# this file is generated from this user-specified information.
|
||||
#
|
||||
# COMMON_LIB_DEFINES:
|
||||
# cpp defines, with the -D flag preceeding each
|
||||
#
|
||||
# COMMON_LIB_INCLUDES:
|
||||
# cpp include directories, with the -I flag preceeding each
|
||||
#
|
||||
# COMMON_LIB_INTERNAL:
|
||||
# headers files which are local to a specific module directory,
|
||||
# and should not be used by other parts of the toolkit or by
|
||||
# the user
|
||||
#
|
||||
# COMMON_LIB_LIBNAME:
|
||||
# the library associated with this module directory, used in
|
||||
# most cases for debugging purposes
|
||||
#
|
||||
# COMMON_LIB_LIBPATHS:
|
||||
# link-time directories to search for libraries, with the -L flag
|
||||
# preceeding each
|
||||
#
|
||||
# COMMON_LIB_LIBRARIES:
|
||||
# link-time libraries, with the -l flag preceeding each
|
||||
#
|
||||
# COMMON_LIB_LOCALFLAGS:
|
||||
# compile-time flags specific to compiling only the files in
|
||||
# this module directory--this variable should only be set in
|
||||
# extremely exceptional cases
|
||||
#
|
||||
# COMMON_LIB_MAKEFILES:
|
||||
# the makefiles
|
||||
#
|
||||
# COMMON_LIB_PREFIX:
|
||||
# defines the module name, which also serves as the
|
||||
# prefix for all the variable names defined in this file
|
||||
#
|
||||
# COMMON_LIB_PRIVATE:
|
||||
# the private, for-toolkit-use-only API header files
|
||||
#
|
||||
# COMMON_LIB_PROGRAMS:
|
||||
# programs to build
|
||||
#
|
||||
# COMMON_LIB_PUBLIC:
|
||||
# the header files that define the public API for the toolkit
|
||||
# and any other 'public' files that should be copied to
|
||||
# the build directory
|
||||
#
|
||||
# COMMON_LIB_SOURCES:
|
||||
# the source files to compile to object
|
||||
#
|
||||
COMMON_LIB_DEFINES =
|
||||
COMMON_LIB_INCLUDES =
|
||||
COMMON_LIB_INTERNAL =
|
||||
COMMON_LIB_LIBNAME =
|
||||
COMMON_LIB_LIBPATHS =
|
||||
COMMON_LIB_LIBRARIES =
|
||||
COMMON_LIB_LOCALFLAGS =
|
||||
COMMON_LIB_MAKEFILES = targets.mk
|
||||
COMMON_LIB_PREFIX = COMMON_LIB
|
||||
COMMON_LIB_PRIVATE =
|
||||
COMMON_LIB_PROGRAMS =
|
||||
COMMON_LIB_PUBLIC =
|
||||
COMMON_LIB_SOURCES = debug.c r_assoc.c r_bitfield.c r_data.c \
|
||||
r_errors.c r_list.c r_replace.c r_time.c
|
||||
|
||||
|
||||
|
||||
#
|
||||
# CONFIGURE AUTOMATICALLY-GENERATED MAKE ENVIRONMENT
|
||||
#
|
||||
# COMMON_LIB_OBJECTS:
|
||||
# object files to build
|
||||
#
|
||||
# COMMON_LIB_UNUSED:
|
||||
# obsolete files in the module directory that are not
|
||||
# used during the build process
|
||||
#
|
||||
# COMMON_LIB_USED:
|
||||
# all files in the module directory that are used
|
||||
# during the build process
|
||||
#
|
||||
COMMON_LIB_OBJECTS = debug.$(OBJSUFFIX) r_assoc.$(OBJSUFFIX) \
|
||||
r_bitfield.$(OBJSUFFIX) r_data.$(OBJSUFFIX) \
|
||||
r_errors.$(OBJSUFFIX) r_list.$(OBJSUFFIX) \
|
||||
r_replace.$(OBJSUFFIX) r_time.$(OBJSUFFIX)
|
||||
COMMON_LIB_UNUSED = assoc.h debug.h local.mk r_assoc_test.c r_data.h
|
||||
COMMON_LIB_USED = $(COMMON_LIB_INTERNAL:%=$(COMMON_LIB_SRCDIR)%) \
|
||||
$(COMMON_LIB_MAKEFILES:%=$(COMMON_LIB_SRCDIR)%) \
|
||||
$(COMMON_LIB_PRIVATE:%=$(COMMON_LIB_SRCDIR)%) \
|
||||
$(COMMON_LIB_PUBLIC:%=$(COMMON_LIB_SRCDIR)%) \
|
||||
$(COMMON_LIB_SOURCES:%=$(COMMON_LIB_SRCDIR)%)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# NOTES
|
||||
#
|
||||
# The following variables may be used during the build process,
|
||||
# but are not defined in this file. If they are to be set
|
||||
# to something other than the default blank, then they must
|
||||
# be set by the calling make system.
|
||||
#
|
||||
# COMMON_LIB_SRCDIR:
|
||||
# if the build target directory is different from the
|
||||
# module directory (the source directory), then this
|
||||
# variable contains the relative or full path of
|
||||
# the module directory
|
||||
#
|
||||
# LIBARS:
|
||||
# the library archive files (with fully-specified paths) that
|
||||
# executables built from this module directory depend upon
|
||||
#
|
||||
# LIBPATHS:
|
||||
# the paths to search for library archives (specified with
|
||||
# the -L)
|
||||
#
|
||||
# LIBRARIES:
|
||||
# the libraries to use while building executables from
|
||||
# this module directory (specified with the -l)
|
||||
#
|
||||
|
||||
|
||||
|
||||
#
|
||||
# GLOBAL ENVIRONMENT
|
||||
#
|
||||
DEFINES += $(COMMON_LIB_DEFINES)
|
||||
INCLUDES += $(COMMON_LIB_INCLUDES)
|
||||
LIBPATHS += $(COMMON_LIB_LIBPATHS)
|
||||
LIBRARIES += $(COMMON_LIB_LIBRARIES)
|
||||
OBJECTS += $(COMMON_LIB_OBJECTS)
|
||||
PUBLIC += $(COMMON_LIB_PUBLIC)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# GENERIC DEPENDENCIES
|
||||
#
|
||||
# default:
|
||||
# default dependency, must be the first dependency in this makefile
|
||||
#
|
||||
# all:
|
||||
# build everything in this module directory
|
||||
#
|
||||
# build:
|
||||
# make only the toolkit build files of this module directory
|
||||
#
|
||||
# ci:
|
||||
# perform an RCS check-in of this module directory
|
||||
#
|
||||
# clean:
|
||||
# remove the compiled files
|
||||
#
|
||||
# clean_public:
|
||||
# remove the public header files that have been copied
|
||||
# to a public build directory
|
||||
#
|
||||
# objects:
|
||||
# build the object files (this dependency is used for
|
||||
# building the toolkit library)
|
||||
#
|
||||
# private:
|
||||
# build only the private API header files
|
||||
#
|
||||
# public:
|
||||
# build only the public API header files
|
||||
#
|
||||
default: $(COMMON_LIB_LIBNAME)
|
||||
default: $(COMMON_LIB_PROGRAMS)
|
||||
|
||||
all: $(COMMON_LIB_PUBLIC)
|
||||
all: $(COMMON_LIB_OBJECTS)
|
||||
all: $(COMMON_LIB_LIBNAME)
|
||||
all: $(COMMON_LIB_PROGRAMS)
|
||||
build: $(COMMON_LIB_PUBLIC)
|
||||
build: $(COMMON_LIB_OBJECTS)
|
||||
ci: common_lib_ci
|
||||
clean: common_lib_clean
|
||||
clean_public: common_lib_clean_public
|
||||
objects: $(COMMON_LIB_OBJECTS)
|
||||
private: $(COMMON_LIB_PRIVATE)
|
||||
public: $(COMMON_LIB_PUBLIC)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# LOCAL UTILITY DEPENDENCIES
|
||||
#
|
||||
# utility dependencies are necessary because of some
|
||||
# make-isms having to do with dependencies
|
||||
#
|
||||
|
||||
common_lib_ci:
|
||||
$(CI) $(CIFLAGS) $(COMMON_LIB_USED)
|
||||
|
||||
common_lib_clean:
|
||||
$(RM) $(RMFLAGS) $(COMMON_LIB_OBJECTS) $(COMMON_LIB_LIBNAME) $(COMMON_LIB_PROGRAMS)
|
||||
|
||||
common_lib_clean_public:
|
||||
$(RM) $(RMFLAGS) $(COMMON_LIB_PUBLIC)
|
||||
|
||||
common_lib_objects: $(COMMON_LIB_OBJECTS)
|
||||
|
||||
common_lib_programs: $(COMMON_LIB_PROGRAMS)
|
||||
|
||||
common_lib_public: $(COMMON_LIB_PUBLIC)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# BUILD DEPENDENCIES
|
||||
#
|
||||
# build dependencies invoke the rule used to build each
|
||||
# class of file
|
||||
#
|
||||
|
||||
$(COMMON_LIB_LIBNAME):
|
||||
$(AR) $(ARFLAGS) $@ $?
|
||||
$(RANLIB) $@
|
||||
|
||||
$(COMMON_LIB_OBJECTS):
|
||||
$(COMPILE.c) $(COMMON_LIB_SRCDIR)$(@:%.$(OBJSUFFIX)=%.c) $(DEFINES) $(INCLUDES) $(COMMON_LIB_LOCALFLAGS)
|
||||
|
||||
$(COMMON_LIB_PUBLIC):
|
||||
$(CP) $(CPFLAGS) $(COMMON_LIB_SRCDIR)$@ $@
|
||||
|
||||
$(COMMON_LIB_PROGRAMS):
|
||||
$(LINK.c) $@.$(OBJSUFFIX) $(LDLIBS) $(LIBS) $(LIBRARIES) $(LIBPATHS)
|
||||
#LIBS above is obsolete (use LIBARARIES instead)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# FILE DEPENDENCIES
|
||||
#
|
||||
# file dependencies state, for each file that is built,
|
||||
# which file(s) it depends upon
|
||||
#
|
||||
|
||||
debug.$(OBJSUFFIX): $(COMMON_LIB_SRCDIR)debug.h
|
||||
debug.$(OBJSUFFIX): $(COMMON_LIB_SRCDIR)debug.c
|
||||
|
||||
r_assoc.$(OBJSUFFIX): $(COMMON_LIB_SRCDIR)r_assoc.c
|
||||
|
||||
r_bitfield.$(OBJSUFFIX): $(COMMON_LIB_SRCDIR)r_bitfield.c
|
||||
|
||||
r_data.$(OBJSUFFIX): $(COMMON_LIB_SRCDIR)r_data.h
|
||||
r_data.$(OBJSUFFIX): $(COMMON_LIB_SRCDIR)r_data.c
|
||||
|
||||
r_errors.$(OBJSUFFIX): $(COMMON_LIB_SRCDIR)r_errors.c
|
||||
|
||||
r_list.$(OBJSUFFIX): $(COMMON_LIB_SRCDIR)r_list.c
|
||||
|
||||
r_replace.$(OBJSUFFIX): $(COMMON_LIB_SRCDIR)r_replace.c
|
||||
|
||||
r_time.$(OBJSUFFIX): $(COMMON_LIB_SRCDIR)r_time.c
|
||||
|
||||
$(COMMON_LIB_LIBNAME): $(COMMON_LIB_OBJECTS)
|
|
@ -1,2 +0,0 @@
|
|||
include $(COMMON_LIB_SRCDIR)local.mk
|
||||
|
|
@ -1,259 +0,0 @@
|
|||
#
|
||||
# targets.mk
|
||||
#
|
||||
# $Source: /usr/local/CVS/ssldump/common/lib/threads/pthreads/targets.mk,v $
|
||||
# $Revision: 1.1.1.1 $
|
||||
# $Date: 2000/10/09 00:45:39 $
|
||||
# $Name: $
|
||||
# $Disclaimer$
|
||||
#
|
||||
# Copyright (C) 1999, Terisa Systems, Inc.
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# ekr@terisa.com
|
||||
#
|
||||
|
||||
|
||||
|
||||
#
|
||||
# CONFIGURE USER-DEFINED MAKE ENVIRONMENT
|
||||
#
|
||||
# These fields are specified by the user. The remainder of
|
||||
# this file is generated from this user-specified information.
|
||||
#
|
||||
# THREADS_PTHREADS_DEFINES:
|
||||
# cpp defines, with the -D flag preceeding each
|
||||
#
|
||||
# THREADS_PTHREADS_INCLUDES:
|
||||
# cpp include directories, with the -I flag preceeding each
|
||||
#
|
||||
# THREADS_PTHREADS_INTERNAL:
|
||||
# headers files which are local to a specific module directory,
|
||||
# and should not be used by other parts of the toolkit or by
|
||||
# the user
|
||||
#
|
||||
# THREADS_PTHREADS_LIBNAME:
|
||||
# the library associated with this module directory, used in
|
||||
# most cases for debugging purposes
|
||||
#
|
||||
# THREADS_PTHREADS_LIBPATHS:
|
||||
# link-time directories to search for libraries, with the -L flag
|
||||
# preceeding each
|
||||
#
|
||||
# THREADS_PTHREADS_LIBRARIES:
|
||||
# link-time libraries, with the -l flag preceeding each
|
||||
#
|
||||
# THREADS_PTHREADS_LOCALFLAGS:
|
||||
# compile-time flags specific to compiling only the files in
|
||||
# this module directory--this variable should only be set in
|
||||
# extremely exceptional cases
|
||||
#
|
||||
# THREADS_PTHREADS_MAKEFILES:
|
||||
# the makefiles
|
||||
#
|
||||
# THREADS_PTHREADS_PREFIX:
|
||||
# defines the module name, which also serves as the
|
||||
# prefix for all the variable names defined in this file
|
||||
#
|
||||
# THREADS_PTHREADS_PRIVATE:
|
||||
# the private, for-toolkit-use-only API header files
|
||||
#
|
||||
# THREADS_PTHREADS_PROGRAMS:
|
||||
# programs to build
|
||||
#
|
||||
# THREADS_PTHREADS_PUBLIC:
|
||||
# the header files that define the public API for the toolkit
|
||||
# and any other 'public' files that should be copied to
|
||||
# the build directory
|
||||
#
|
||||
# THREADS_PTHREADS_SOURCES:
|
||||
# the source files to compile to object
|
||||
#
|
||||
THREADS_PTHREADS_DEFINES =
|
||||
THREADS_PTHREADS_INCLUDES =
|
||||
THREADS_PTHREADS_INTERNAL =
|
||||
THREADS_PTHREADS_LIBNAME =
|
||||
THREADS_PTHREADS_LIBPATHS =
|
||||
THREADS_PTHREADS_LIBRARIES =
|
||||
THREADS_PTHREADS_LOCALFLAGS =
|
||||
THREADS_PTHREADS_MAKEFILES =
|
||||
THREADS_PTHREADS_PREFIX = THREADS_PTHREADS
|
||||
THREADS_PTHREADS_PRIVATE =
|
||||
THREADS_PTHREADS_PROGRAMS =
|
||||
THREADS_PTHREADS_PUBLIC =
|
||||
THREADS_PTHREADS_SOURCES = pthread.c
|
||||
|
||||
|
||||
|
||||
#
|
||||
# CONFIGURE AUTOMATICALLY-GENERATED MAKE ENVIRONMENT
|
||||
#
|
||||
# THREADS_PTHREADS_OBJECTS:
|
||||
# object files to build
|
||||
#
|
||||
# THREADS_PTHREADS_UNUSED:
|
||||
# obsolete files in the module directory that are not
|
||||
# used during the build process
|
||||
#
|
||||
# THREADS_PTHREADS_USED:
|
||||
# all files in the module directory that are used
|
||||
# during the build process
|
||||
#
|
||||
THREADS_PTHREADS_OBJECTS = pthread.$(OBJSUFFIX)
|
||||
THREADS_PTHREADS_UNUSED = targets.mk
|
||||
THREADS_PTHREADS_USED = $(THREADS_PTHREADS_INTERNAL:%=$(THREADS_PTHREADS_SRCDIR)%) \
|
||||
$(THREADS_PTHREADS_MAKEFILES:%=$(THREADS_PTHREADS_SRCDIR)%) \
|
||||
$(THREADS_PTHREADS_PRIVATE:%=$(THREADS_PTHREADS_SRCDIR)%) \
|
||||
$(THREADS_PTHREADS_PUBLIC:%=$(THREADS_PTHREADS_SRCDIR)%) \
|
||||
$(THREADS_PTHREADS_SOURCES:%=$(THREADS_PTHREADS_SRCDIR)%)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# NOTES
|
||||
#
|
||||
# The following variables may be used during the build process,
|
||||
# but are not defined in this file. If they are to be set
|
||||
# to something other than the default blank, then they must
|
||||
# be set by the calling make system.
|
||||
#
|
||||
# THREADS_PTHREADS_SRCDIR:
|
||||
# if the build target directory is different from the
|
||||
# module directory (the source directory), then this
|
||||
# variable contains the relative or full path of
|
||||
# the module directory
|
||||
#
|
||||
# LIBARS:
|
||||
# the library archive files (with fully-specified paths) that
|
||||
# executables built from this module directory depend upon
|
||||
#
|
||||
# LIBPATHS:
|
||||
# the paths to search for library archives (specified with
|
||||
# the -L)
|
||||
#
|
||||
# LIBRARIES:
|
||||
# the libraries to use while building executables from
|
||||
# this module directory (specified with the -l)
|
||||
#
|
||||
|
||||
|
||||
|
||||
#
|
||||
# GLOBAL ENVIRONMENT
|
||||
#
|
||||
DEFINES += $(THREADS_PTHREADS_DEFINES)
|
||||
INCLUDES += $(THREADS_PTHREADS_INCLUDES)
|
||||
LIBPATHS += $(THREADS_PTHREADS_LIBPATHS)
|
||||
LIBRARIES += $(THREADS_PTHREADS_LIBRARIES)
|
||||
OBJECTS += $(THREADS_PTHREADS_OBJECTS)
|
||||
PUBLIC += $(THREADS_PTHREADS_PUBLIC)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# GENERIC DEPENDENCIES
|
||||
#
|
||||
# default:
|
||||
# default dependency, must be the first dependency in this makefile
|
||||
#
|
||||
# all:
|
||||
# build everything in this module directory
|
||||
#
|
||||
# build:
|
||||
# make only the toolkit build files of this module directory
|
||||
#
|
||||
# ci:
|
||||
# perform an RCS check-in of this module directory
|
||||
#
|
||||
# clean:
|
||||
# remove the compiled files
|
||||
#
|
||||
# clean_public:
|
||||
# remove the public header files that have been copied
|
||||
# to a public build directory
|
||||
#
|
||||
# objects:
|
||||
# build the object files (this dependency is used for
|
||||
# building the toolkit library)
|
||||
#
|
||||
# private:
|
||||
# build only the private API header files
|
||||
#
|
||||
# public:
|
||||
# build only the public API header files
|
||||
#
|
||||
default: $(THREADS_PTHREADS_LIBNAME)
|
||||
default: $(THREADS_PTHREADS_PROGRAMS)
|
||||
|
||||
all: $(THREADS_PTHREADS_PUBLIC)
|
||||
all: $(THREADS_PTHREADS_OBJECTS)
|
||||
all: $(THREADS_PTHREADS_LIBNAME)
|
||||
all: $(THREADS_PTHREADS_PROGRAMS)
|
||||
build: $(THREADS_PTHREADS_PUBLIC)
|
||||
build: $(THREADS_PTHREADS_OBJECTS)
|
||||
ci: threads_pthreads_ci
|
||||
clean: threads_pthreads_clean
|
||||
clean_public: threads_pthreads_clean_public
|
||||
objects: $(THREADS_PTHREADS_OBJECTS)
|
||||
private: $(THREADS_PTHREADS_PRIVATE)
|
||||
public: $(THREADS_PTHREADS_PUBLIC)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# LOCAL UTILITY DEPENDENCIES
|
||||
#
|
||||
# utility dependencies are necessary because of some
|
||||
# make-isms having to do with dependencies
|
||||
#
|
||||
|
||||
threads_pthreads_ci:
|
||||
$(CI) $(CIFLAGS) $(THREADS_PTHREADS_USED)
|
||||
|
||||
threads_pthreads_clean:
|
||||
$(RM) $(RMFLAGS) $(THREADS_PTHREADS_OBJECTS) $(THREADS_PTHREADS_LIBNAME) $(THREADS_PTHREADS_PROGRAMS)
|
||||
|
||||
threads_pthreads_clean_public:
|
||||
$(RM) $(RMFLAGS) $(THREADS_PTHREADS_PUBLIC)
|
||||
|
||||
threads_pthreads_objects: $(THREADS_PTHREADS_OBJECTS)
|
||||
|
||||
threads_pthreads_programs: $(THREADS_PTHREADS_PROGRAMS)
|
||||
|
||||
threads_pthreads_public: $(THREADS_PTHREADS_PUBLIC)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# BUILD DEPENDENCIES
|
||||
#
|
||||
# build dependencies invoke the rule used to build each
|
||||
# class of file
|
||||
#
|
||||
|
||||
$(THREADS_PTHREADS_LIBNAME):
|
||||
$(AR) $(ARFLAGS) $@ $?
|
||||
$(RANLIB) $@
|
||||
|
||||
$(THREADS_PTHREADS_OBJECTS):
|
||||
$(COMPILE.c) $(THREADS_PTHREADS_SRCDIR)$(@:%.$(OBJSUFFIX)=%.c) $(DEFINES) $(INCLUDES) $(THREADS_PTHREADS_LOCALFLAGS)
|
||||
|
||||
$(THREADS_PTHREADS_PUBLIC):
|
||||
$(CP) $(CPFLAGS) $(THREADS_PTHREADS_SRCDIR)$@ $@
|
||||
|
||||
$(THREADS_PTHREADS_PROGRAMS):
|
||||
$(LINK.c) $@.$(OBJSUFFIX) $(LDLIBS) $(LIBS) $(LIBRARIES) $(LIBPATHS)
|
||||
#LIBS above is obsolete (use LIBARARIES instead)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# FILE DEPENDENCIES
|
||||
#
|
||||
# file dependencies state, for each file that is built,
|
||||
# which file(s) it depends upon
|
||||
#
|
||||
|
||||
pthread.$(OBJSUFFIX): $(THREADS_PTHREADS_SRCDIR)pthread.c
|
||||
|
||||
$(THREADS_PTHREADS_LIBNAME): $(THREADS_PTHREADS_OBJECTS)
|
|
@ -1,4 +0,0 @@
|
|||
THREADS_SRCDIR=$(COMMON_LIB_SRCDIR)threads/
|
||||
THREADS_PTHREADS_SRCDIR=$(THREADS_SRCDIR)pthreads/
|
||||
|
||||
include $(THREADS_SRCDIR)$(THREADS_TYPE)/targets.mk
|
1502
config.guess
vendored
1502
config.guess
vendored
File diff suppressed because it is too large
Load diff
1714
config.sub
vendored
1714
config.sub
vendored
File diff suppressed because it is too large
Load diff
42
configure.ac
Normal file
42
configure.ac
Normal file
|
@ -0,0 +1,42 @@
|
|||
# -*- Autoconf -*-
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ([2.69])
|
||||
AC_INIT([ssldump], [1.1])
|
||||
AM_INIT_AUTOMAKE([subdir-objects])
|
||||
AC_CONFIG_SRCDIR([base/pcap-snoop.c])
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_CC
|
||||
AM_PROG_CC_C_O
|
||||
AC_PROG_MAKE_SET
|
||||
AC_PROG_INSTALL
|
||||
|
||||
AC_CHECK_LIB([pcap],[pcap_create])
|
||||
AC_CHECK_LIB([ssl], [SSL_library_init])
|
||||
|
||||
# Checks for header files.
|
||||
AC_FUNC_ALLOCA
|
||||
AC_CHECK_HEADERS([arpa/inet.h malloc.h memory.h netdb.h netinet/in.h stdlib.h string.h sys/param.h sys/socket.h sys/time.h unistd.h pcap.h pcap-bpf.h],,[AC_MSG_ERROR([Missing header.])])
|
||||
AC_HEADER_STDC
|
||||
AC_HEADER_TIME
|
||||
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_CHECK_SIZEOF([unsigned short])
|
||||
AC_CHECK_SIZEOF([unsigned int])
|
||||
AC_CHECK_SIZEOF([unsigned long])
|
||||
AC_CHECK_SIZEOF([unsigned long long])
|
||||
|
||||
# Checks for library functions.
|
||||
AC_FUNC_MALLOC
|
||||
AC_FUNC_REALLOC
|
||||
AC_CHECK_FUNCS([gethostbyaddr gettimeofday inet_ntoa isascii memmove memset strchr strdup strstr strtol])
|
||||
|
||||
AC_CONFIG_FILES([Makefile
|
||||
common/Makefile
|
||||
common/lib/Makefile
|
||||
null/Makefile
|
||||
ssl/Makefile
|
||||
base/Makefile])
|
||||
AC_OUTPUT
|
253
configure.in
253
configure.in
|
@ -1,253 +0,0 @@
|
|||
dnl Copyright (C) 1999-2000 RTFM, Inc.
|
||||
dnl All Rights Reserved
|
||||
|
||||
dnl This package is a SSLv3/TLS protocol analyzer written by Eric
|
||||
dnl Rescorla <ekr@rtfm.com> and licensed by RTFM, Inc.
|
||||
|
||||
dnl Redistribution and use in source and binary forms, with or without
|
||||
dnl modification, are permitted provided that the following conditions
|
||||
dnl are met:
|
||||
dnl 1. Redistributions of source code must retain the above copyright
|
||||
dnl notice, this list of conditions and the following disclaimer.
|
||||
dnl 2. Redistributions in binary form must reproduce the above
|
||||
dnl copyright notice, this list of conditions and the following
|
||||
dnl disclaimer in the documentation and/or other materials provided
|
||||
dnl with the distribution.
|
||||
dnl 3. All advertising materials mentioning features or use of this
|
||||
dnl software must display the following acknowledgement:
|
||||
dnl
|
||||
dnl This product includes software developed by Eric Rescorla for
|
||||
dnl RTFM, Inc.
|
||||
dnl
|
||||
dnl 4. Neither the name of RTFM, Inc. nor the name of Eric Rescorla
|
||||
dnl may be used to endorse or promote products derived from this
|
||||
dnl software without specific prior written permission.
|
||||
dnl
|
||||
dnl THIS SOFTWARE IS PROVIDED BY ERIC RESCORLA AND RTFM, INC. ``AS
|
||||
dnl IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
dnl LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
dnl FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
dnl REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
dnl INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
dnl (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
dnl SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
dnl HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
dnl CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
dnl OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
||||
dnl EVEN IF ADVISED OF THE POSSIBILITY SUCH DAMAGE.
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
AC_INIT(ssldump, 1.0)
|
||||
AC_CANONICAL_SYSTEM
|
||||
|
||||
dnl Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_PROG_MAKE_SET
|
||||
AC_PROG_RANLIB
|
||||
AC_PROG_INSTALL
|
||||
|
||||
AC_MSG_RESULT(configuring for $target_os)
|
||||
|
||||
dnl Replace `main' with a function in -lm:
|
||||
AC_CHECK_LIB(m, pow)
|
||||
|
||||
dnl System-specific stuff
|
||||
case "$target_os" in
|
||||
linux*)
|
||||
DEFINES="$DEFINES -D_BSD_SOURCE=1 -DLINUX"
|
||||
;;
|
||||
solaris*)
|
||||
LIBS="$LIBS -lsocket -lnsl"
|
||||
;;
|
||||
esac
|
||||
|
||||
RECORD_MOD="dummy"
|
||||
|
||||
dnl Look for PCAP
|
||||
dnl We absolutely need pcap
|
||||
ac_pcap_inc_dir="/usr/include /usr/include/pcap /usr/local/include"
|
||||
ac_pcap_lib_dir="/usr/local/lib64 /usr/local/lib /usr/lib64 /usr/lib"
|
||||
|
||||
AC_ARG_WITH(pcap,[--with-pcap root location for pcap library],
|
||||
if test "$withval" = "no"; then
|
||||
AC_MSG_ERROR(PCAP required for ssldump)
|
||||
else
|
||||
ac_pcap_inc_dir=$withval/include
|
||||
ac_pcap_lib_dir=$withval/lib
|
||||
fi
|
||||
)
|
||||
|
||||
AC_ARG_WITH(pcap-inc,[--with-pcap-inc PCAP include files],
|
||||
ac_pcap_inc_dir=$withval
|
||||
)
|
||||
AC_ARG_WITH(pcap-lib,[--with-pcap-lib PCAP library files],
|
||||
ac_pcap_lib_dir=$withval
|
||||
)
|
||||
|
||||
dnl Now look for it
|
||||
AC_MSG_CHECKING(for PCAP include files)
|
||||
ac_found_pcap_inc_dir="no"
|
||||
for dir in $ac_pcap_inc_dir; do
|
||||
if test -f $dir/pcap.h; then
|
||||
if test "$dir" != "/usr/include"; then
|
||||
INCLUDES="-I$dir $INCLUDES"
|
||||
fi
|
||||
ac_found_pcap_inc_dir=$dir
|
||||
echo "found in $dir"
|
||||
break;
|
||||
fi
|
||||
done
|
||||
|
||||
if test "$ac_found_pcap_inc_dir" = "no"; then
|
||||
echo
|
||||
AC_MSG_ERROR(Couldn't find PCAP includes: needed for ssldump)
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(for PCAP library)
|
||||
ac_found_pcap_lib_dir="no"
|
||||
for dir in $ac_pcap_lib_dir; do
|
||||
if test -f $dir/libpcap.a -o -f $dir/libpcap.so; then
|
||||
dnl Ok, we think we've found them, but check that they
|
||||
dnl actually contain the right functions.
|
||||
save_LIBS=$LIBS
|
||||
save_LDFLAGS=$LDFLAGS
|
||||
LIBS="-lpcap $LIBS"
|
||||
if test "$dir" != "/usr/lib" -a "$dir" != "/usr/lib64"; then
|
||||
LDFLAGS="-L$dir $LDFLAGS"
|
||||
fi
|
||||
AC_TRY_LINK_FUNC(pcap_open_live,ac_linked_libpcap="true",
|
||||
ac_linked_libpcap="false");
|
||||
if test "$ac_linked_libpcap" != "false"; then
|
||||
ac_found_pcap_lib_dir=$dir
|
||||
break
|
||||
fi
|
||||
LIBS=$save_LIBS
|
||||
LDFLAGS=$save_LDFLAGS
|
||||
fi
|
||||
done
|
||||
|
||||
if test "$ac_found_pcap_lib_dir" = "no"; then
|
||||
echo
|
||||
AC_MSG_ERROR(Couldn't find PCAP library: needed for ssldump)
|
||||
else
|
||||
echo "found in $ac_found_pcap_lib_dir"
|
||||
fi
|
||||
|
||||
dnl See if we can find OpenSSL
|
||||
dnl We can compile without OpenSSL if we have to
|
||||
ac_use_openssl="true"
|
||||
ac_openssl_lib_dir="/usr/lib /usr/local /usr/local/ssl /usr/local/ssl/lib /usr/pkg"
|
||||
ac_openssl_inc_dir="/usr/include /usr/local /usr/local/ssl /usr/pkg /usr/local/ssl/include"
|
||||
|
||||
AC_ARG_WITH(openssl,[--with-openssl root location for OpenSSL],
|
||||
if test "$withval" = "no"; then
|
||||
ac_use_openssl="false"
|
||||
else
|
||||
ac_openssl_lib_dir="$withval/lib $withval"
|
||||
ac_openssl_inc_dir=$withval/include
|
||||
fi
|
||||
)
|
||||
|
||||
AC_ARG_WITH(openssl-inc,[--with-openssl-inc OpenSSL include files],
|
||||
ac_openssl_inc_dir=$withval
|
||||
)
|
||||
AC_ARG_WITH(openssl-lib,[--with-openssl-lib OpenSSL library files],
|
||||
ac_openssl_lib_dir=$withval
|
||||
)
|
||||
|
||||
dnl Now look for OpenSSL
|
||||
if test "$ac_use_openssl" != "false"; then
|
||||
ac_found_openssl_inc_dir="no"
|
||||
AC_MSG_CHECKING(for OpenSSL include files)
|
||||
for dir in $ac_openssl_inc_dir; do
|
||||
if test -f $dir/openssl/ssl.h; then
|
||||
ac_found_openssl_inc_dir=$dir
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test "$ac_found_openssl_inc_dir" != "no"; then
|
||||
echo "found in $ac_found_openssl_inc_dir"
|
||||
else
|
||||
echo "not found."
|
||||
ac_use_openssl="false"
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$ac_use_openssl" != "false"; then
|
||||
ac_found_openssl_lib_dir="no"
|
||||
AC_MSG_CHECKING(for OpenSSL libraries)
|
||||
for dir in $ac_openssl_lib_dir; do
|
||||
found_ssl="false"
|
||||
if test -f $dir/libssl.a -a -f $dir/libcrypto.a; then
|
||||
found_ssl="true"
|
||||
fi
|
||||
if test -f $dir/libssl.so -a -f $dir/libcrypto.so; then
|
||||
found_ssl="true"
|
||||
fi
|
||||
if $found_ssl != "false"; then
|
||||
dnl Ok, we think we've found them, but check that they
|
||||
dnl actually contain the right functions.
|
||||
save_LIBS=$LIBS
|
||||
save_LDFLAGS=$LDFLAGS
|
||||
LIBS="-lssl -lcrypto $LIBS"
|
||||
LDFLAGS="-L$dir $LDFLAGS"
|
||||
AC_TRY_LINK_FUNC(SSL_load_error_strings,ac_linked_libssl="true",
|
||||
ac_linked_libssl="false");
|
||||
AC_TRY_LINK_FUNC(RC4_set_key,ac_linked_libcrypto="true",
|
||||
ac_linked_libcrypto="false");
|
||||
if test "$ac_linked_libssl" != "false" -a \
|
||||
"$ac_linked_libcrypto" != "false"; then
|
||||
ac_found_openssl_lib_dir=$dir
|
||||
break
|
||||
fi
|
||||
LIBS=$save_LIBS
|
||||
LDFLAGS=$save_LDFLAGS
|
||||
fi
|
||||
done
|
||||
if test "$ac_found_openssl_lib_dir" != "no"; then
|
||||
echo "found in $ac_found_openssl_lib_dir"
|
||||
INCLUDES="-I$ac_found_openssl_inc_dir $INCLUDES"
|
||||
DEFINES="-DOPENSSL $DEFINES"
|
||||
else
|
||||
echo "not found."
|
||||
ac_use_openssl="false"
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$ac_use_openssl" = "false"; then
|
||||
AC_MSG_WARN(compiling without OpenSSL)
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(record,[--with-record Compile with record module (EKR Use Only)],
|
||||
DEFINES="-DENABLE_RECORD $DEFINES"
|
||||
RECORD_MOD="record"
|
||||
)
|
||||
|
||||
dnl Replace `main' with a function in -lpcap:
|
||||
AC_CHECK_LIB(pcap, pcap_open)
|
||||
|
||||
|
||||
dnl Checks for header files.
|
||||
AC_CHECK_HEADERS(sys/time.h)
|
||||
AC_HEADER_STDC
|
||||
|
||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_C_CONST
|
||||
AC_HEADER_TIME
|
||||
|
||||
dnl Find a 4-byte integer size
|
||||
AC_CHECK_SIZEOF(unsigned short)
|
||||
AC_CHECK_SIZEOF(unsigned int)
|
||||
AC_CHECK_SIZEOF(unsigned long)
|
||||
AC_CHECK_SIZEOF(unsigned long long)
|
||||
|
||||
dnl Checks for library functions.
|
||||
AC_FUNC_MEMCMP
|
||||
AC_TYPE_SIGNAL
|
||||
AC_FUNC_VPRINTF
|
||||
AC_CHECK_FUNCS(strdup)
|
||||
|
||||
|
||||
AC_SUBST(RECORD_MOD)
|
||||
AC_SUBST(INCLUDES)
|
||||
AC_SUBST(DEFINES)
|
||||
AC_OUTPUT(Makefile)
|
0
null/Makefile.am
Normal file
0
null/Makefile.am
Normal file
260
null/targets.mk
260
null/targets.mk
|
@ -1,260 +0,0 @@
|
|||
#
|
||||
# targets.mk
|
||||
#
|
||||
# $Source: /usr/local/CVS/ssldump/null/targets.mk,v $
|
||||
# $Revision: 1.1.1.1 $
|
||||
# $Date: 2000/10/09 00:45:39 $
|
||||
# $Name: $
|
||||
# $Disclaimer$
|
||||
#
|
||||
# Copyright (C) 1999, Terisa Systems, Inc.
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# ekr@terisa.com
|
||||
#
|
||||
|
||||
|
||||
|
||||
#
|
||||
# CONFIGURE USER-DEFINED MAKE ENVIRONMENT
|
||||
#
|
||||
# These fields are specified by the user. The remainder of
|
||||
# this file is generated from this user-specified information.
|
||||
#
|
||||
# ANALYZE_NULL_DEFINES:
|
||||
# cpp defines, with the -D flag preceeding each
|
||||
#
|
||||
# ANALYZE_NULL_INCLUDES:
|
||||
# cpp include directories, with the -I flag preceeding each
|
||||
#
|
||||
# ANALYZE_NULL_INTERNAL:
|
||||
# headers files which are local to a specific module directory,
|
||||
# and should not be used by other parts of the toolkit or by
|
||||
# the user
|
||||
#
|
||||
# ANALYZE_NULL_LIBNAME:
|
||||
# the library associated with this module directory, used in
|
||||
# most cases for debugging purposes
|
||||
#
|
||||
# ANALYZE_NULL_LIBPATHS:
|
||||
# link-time directories to search for libraries, with the -L flag
|
||||
# preceeding each
|
||||
#
|
||||
# ANALYZE_NULL_LIBRARIES:
|
||||
# link-time libraries, with the -l flag preceeding each
|
||||
#
|
||||
# ANALYZE_NULL_LOCALFLAGS:
|
||||
# compile-time flags specific to compiling only the files in
|
||||
# this module directory--this variable should only be set in
|
||||
# extremely exceptional cases
|
||||
#
|
||||
# ANALYZE_NULL_MAKEFILES:
|
||||
# the makefiles
|
||||
#
|
||||
# ANALYZE_NULL_PREFIX:
|
||||
# defines the module name, which also serves as the
|
||||
# prefix for all the variable names defined in this file
|
||||
#
|
||||
# ANALYZE_NULL_PRIVATE:
|
||||
# the private, for-toolkit-use-only API header files
|
||||
#
|
||||
# ANALYZE_NULL_PROGRAMS:
|
||||
# programs to build
|
||||
#
|
||||
# ANALYZE_NULL_PUBLIC:
|
||||
# the header files that define the public API for the toolkit
|
||||
# and any other 'public' files that should be copied to
|
||||
# the build directory
|
||||
#
|
||||
# ANALYZE_NULL_SOURCES:
|
||||
# the source files to compile to object
|
||||
#
|
||||
ANALYZE_NULL_DEFINES =
|
||||
ANALYZE_NULL_INCLUDES = -I$(ANALYZE_NULL_SRCDIR)
|
||||
ANALYZE_NULL_INTERNAL =
|
||||
ANALYZE_NULL_LIBNAME =
|
||||
ANALYZE_NULL_LIBPATHS =
|
||||
ANALYZE_NULL_LIBRARIES =
|
||||
ANALYZE_NULL_LOCALFLAGS =
|
||||
ANALYZE_NULL_MAKEFILES = targets.mk
|
||||
ANALYZE_NULL_PREFIX = ANALYZE_NULL
|
||||
ANALYZE_NULL_PRIVATE = null_analyze.h
|
||||
ANALYZE_NULL_PROGRAMS =
|
||||
ANALYZE_NULL_PUBLIC =
|
||||
ANALYZE_NULL_SOURCES = null_analyze.c
|
||||
|
||||
|
||||
|
||||
#
|
||||
# CONFIGURE AUTOMATICALLY-GENERATED MAKE ENVIRONMENT
|
||||
#
|
||||
# ANALYZE_NULL_OBJECTS:
|
||||
# object files to build
|
||||
#
|
||||
# ANALYZE_NULL_UNUSED:
|
||||
# obsolete files in the module directory that are not
|
||||
# used during the build process
|
||||
#
|
||||
# ANALYZE_NULL_USED:
|
||||
# all files in the module directory that are used
|
||||
# during the build process
|
||||
#
|
||||
ANALYZE_NULL_OBJECTS = null_analyze.$(OBJSUFFIX)
|
||||
ANALYZE_NULL_UNUSED =
|
||||
ANALYZE_NULL_USED = $(ANALYZE_NULL_INTERNAL:%=$(ANALYZE_NULL_SRCDIR)%) \
|
||||
$(ANALYZE_NULL_MAKEFILES:%=$(ANALYZE_NULL_SRCDIR)%) \
|
||||
$(ANALYZE_NULL_PRIVATE:%=$(ANALYZE_NULL_SRCDIR)%) \
|
||||
$(ANALYZE_NULL_PUBLIC:%=$(ANALYZE_NULL_SRCDIR)%) \
|
||||
$(ANALYZE_NULL_SOURCES:%=$(ANALYZE_NULL_SRCDIR)%)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# NOTES
|
||||
#
|
||||
# The following variables may be used during the build process,
|
||||
# but are not defined in this file. If they are to be set
|
||||
# to something other than the default blank, then they must
|
||||
# be set by the calling make system.
|
||||
#
|
||||
# ANALYZE_NULL_SRCDIR:
|
||||
# if the build target directory is different from the
|
||||
# module directory (the source directory), then this
|
||||
# variable contains the relative or full path of
|
||||
# the module directory
|
||||
#
|
||||
# LIBARS:
|
||||
# the library archive files (with fully-specified paths) that
|
||||
# executables built from this module directory depend upon
|
||||
#
|
||||
# LIBPATHS:
|
||||
# the paths to search for library archives (specified with
|
||||
# the -L)
|
||||
#
|
||||
# LIBRARIES:
|
||||
# the libraries to use while building executables from
|
||||
# this module directory (specified with the -l)
|
||||
#
|
||||
|
||||
|
||||
|
||||
#
|
||||
# GLOBAL ENVIRONMENT
|
||||
#
|
||||
DEFINES += $(ANALYZE_NULL_DEFINES)
|
||||
INCLUDES += $(ANALYZE_NULL_INCLUDES)
|
||||
LIBPATHS += $(ANALYZE_NULL_LIBPATHS)
|
||||
LIBRARIES += $(ANALYZE_NULL_LIBRARIES)
|
||||
OBJECTS += $(ANALYZE_NULL_OBJECTS)
|
||||
PUBLIC += $(ANALYZE_NULL_PUBLIC)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# GENERIC DEPENDENCIES
|
||||
#
|
||||
# default:
|
||||
# default dependency, must be the first dependency in this makefile
|
||||
#
|
||||
# all:
|
||||
# build everything in this module directory
|
||||
#
|
||||
# build:
|
||||
# make only the toolkit build files of this module directory
|
||||
#
|
||||
# ci:
|
||||
# perform an RCS check-in of this module directory
|
||||
#
|
||||
# clean:
|
||||
# remove the compiled files
|
||||
#
|
||||
# clean_public:
|
||||
# remove the public header files that have been copied
|
||||
# to a public build directory
|
||||
#
|
||||
# objects:
|
||||
# build the object files (this dependency is used for
|
||||
# building the toolkit library)
|
||||
#
|
||||
# private:
|
||||
# build only the private API header files
|
||||
#
|
||||
# public:
|
||||
# build only the public API header files
|
||||
#
|
||||
default: $(ANALYZE_NULL_LIBNAME)
|
||||
default: $(ANALYZE_NULL_PROGRAMS)
|
||||
|
||||
all: $(ANALYZE_NULL_PUBLIC)
|
||||
all: $(ANALYZE_NULL_OBJECTS)
|
||||
all: $(ANALYZE_NULL_LIBNAME)
|
||||
all: $(ANALYZE_NULL_PROGRAMS)
|
||||
build: $(ANALYZE_NULL_PUBLIC)
|
||||
build: $(ANALYZE_NULL_OBJECTS)
|
||||
ci: analyze_null_ci
|
||||
clean: analyze_null_clean
|
||||
clean_public: analyze_null_clean_public
|
||||
objects: $(ANALYZE_NULL_OBJECTS)
|
||||
private: $(ANALYZE_NULL_PRIVATE)
|
||||
public: $(ANALYZE_NULL_PUBLIC)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# LOCAL UTILITY DEPENDENCIES
|
||||
#
|
||||
# utility dependencies are necessary because of some
|
||||
# make-isms having to do with dependencies
|
||||
#
|
||||
|
||||
analyze_null_ci:
|
||||
$(CI) $(CIFLAGS) $(ANALYZE_NULL_USED)
|
||||
|
||||
analyze_null_clean:
|
||||
$(RM) $(RMFLAGS) $(ANALYZE_NULL_OBJECTS) $(ANALYZE_NULL_LIBNAME) $(ANALYZE_NULL_PROGRAMS)
|
||||
|
||||
analyze_null_clean_public:
|
||||
$(RM) $(RMFLAGS) $(ANALYZE_NULL_PUBLIC)
|
||||
|
||||
analyze_null_objects: $(ANALYZE_NULL_OBJECTS)
|
||||
|
||||
analyze_null_programs: $(ANALYZE_NULL_PROGRAMS)
|
||||
|
||||
analyze_null_public: $(ANALYZE_NULL_PUBLIC)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# BUILD DEPENDENCIES
|
||||
#
|
||||
# build dependencies invoke the rule used to build each
|
||||
# class of file
|
||||
#
|
||||
|
||||
$(ANALYZE_NULL_LIBNAME):
|
||||
$(AR) $(ARFLAGS) $@ $?
|
||||
$(RANLIB) $@
|
||||
|
||||
$(ANALYZE_NULL_OBJECTS):
|
||||
$(COMPILE.c) $(ANALYZE_NULL_SRCDIR)$(@:%.o=%.c) $(DEFINES) $(INCLUDES) $(ANALYZE_NULL_LOCALFLAGS)
|
||||
|
||||
$(ANALYZE_NULL_PUBLIC):
|
||||
$(CP) $(CPFLAGS) $(ANALYZE_NULL_SRCDIR)$@ $@
|
||||
|
||||
$(ANALYZE_NULL_PROGRAMS):
|
||||
$(LINK.c) $@.$(OBJSUFFIX) $(LDLIBS) $(LIBS) $(LIBRARIES) $(LIBPATHS)
|
||||
#LIBS above is obsolete (use LIBARARIES instead)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# FILE DEPENDENCIES
|
||||
#
|
||||
# file dependencies state, for each file that is built,
|
||||
# which file(s) it depends upon
|
||||
#
|
||||
|
||||
null_analyze.$(OBJSUFFIX): $(ANALYZE_NULL_SRCDIR)null_analyze.h
|
||||
null_analyze.$(OBJSUFFIX): $(ANALYZE_NULL_SRCDIR)null_analyze.c
|
||||
|
||||
$(ANALYZE_NULL_LIBNAME): $(ANALYZE_NULL_OBJECTS)
|
10
rules.mk
10
rules.mk
|
@ -1,10 +0,0 @@
|
|||
OBJSUFFIX=o
|
||||
LIBSUFFIX=a
|
||||
RANLIB=ranlib
|
||||
|
||||
COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@
|
||||
LINK.c = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
|
||||
|
||||
.c.$(OBJSUFFIX):
|
||||
$(COMPILE.c) $(OUTPUT_OPTION) $<
|
||||
|
0
ssl/Makefile.am
Normal file
0
ssl/Makefile.am
Normal file
282
ssl/targets.mk
282
ssl/targets.mk
|
@ -1,282 +0,0 @@
|
|||
#
|
||||
# targets.mk
|
||||
#
|
||||
# $Source: /usr/local/CVS/ssldump/ssl/targets.mk,v $
|
||||
# $Revision: 1.2 $
|
||||
# $Date: 2001/12/08 14:57:51 $
|
||||
# $Name: $
|
||||
# $Disclaimer$
|
||||
#
|
||||
# Copyright (C) 1999, Terisa Systems, Inc.
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# ekr@terisa.com
|
||||
#
|
||||
|
||||
|
||||
|
||||
#
|
||||
# CONFIGURE USER-DEFINED MAKE ENVIRONMENT
|
||||
#
|
||||
# These fields are specified by the user. The remainder of
|
||||
# this file is generated from this user-specified information.
|
||||
#
|
||||
# ANALYZE_SSL_DEFINES:
|
||||
# cpp defines, with the -D flag preceeding each
|
||||
#
|
||||
# ANALYZE_SSL_INCLUDES:
|
||||
# cpp include directories, with the -I flag preceeding each
|
||||
#
|
||||
# ANALYZE_SSL_INTERNAL:
|
||||
# headers files which are local to a specific module directory,
|
||||
# and should not be used by other parts of the toolkit or by
|
||||
# the user
|
||||
#
|
||||
# ANALYZE_SSL_LIBNAME:
|
||||
# the library associated with this module directory, used in
|
||||
# most cases for debugging purposes
|
||||
#
|
||||
# ANALYZE_SSL_LIBPATHS:
|
||||
# link-time directories to search for libraries, with the -L flag
|
||||
# preceeding each
|
||||
#
|
||||
# ANALYZE_SSL_LIBRARIES:
|
||||
# link-time libraries, with the -l flag preceeding each
|
||||
#
|
||||
# ANALYZE_SSL_LOCALFLAGS:
|
||||
# compile-time flags specific to compiling only the files in
|
||||
# this module directory--this variable should only be set in
|
||||
# extremely exceptional cases
|
||||
#
|
||||
# ANALYZE_SSL_MAKEFILES:
|
||||
# the makefiles
|
||||
#
|
||||
# ANALYZE_SSL_PREFIX:
|
||||
# defines the module name, which also serves as the
|
||||
# prefix for all the variable names defined in this file
|
||||
#
|
||||
# ANALYZE_SSL_PRIVATE:
|
||||
# the private, for-toolkit-use-only API header files
|
||||
#
|
||||
# ANALYZE_SSL_PROGRAMS:
|
||||
# programs to build
|
||||
#
|
||||
# ANALYZE_SSL_PUBLIC:
|
||||
# the header files that define the public API for the toolkit
|
||||
# and any other 'public' files that should be copied to
|
||||
# the build directory
|
||||
#
|
||||
# ANALYZE_SSL_SOURCES:
|
||||
# the source files to compile to object
|
||||
#
|
||||
ANALYZE_SSL_DEFINES =
|
||||
ANALYZE_SSL_INCLUDES = -I$(ANALYZE_SSL_SRCDIR)
|
||||
ANALYZE_SSL_INTERNAL =
|
||||
ANALYZE_SSL_LIBNAME =
|
||||
ANALYZE_SSL_LIBPATHS =
|
||||
ANALYZE_SSL_LIBRARIES =
|
||||
ANALYZE_SSL_LOCALFLAGS =
|
||||
ANALYZE_SSL_MAKEFILES =
|
||||
ANALYZE_SSL_PREFIX = ANALYZE_SSL
|
||||
ANALYZE_SSL_PRIVATE = ssl_analyze.h
|
||||
ANALYZE_SSL_PROGRAMS =
|
||||
ANALYZE_SSL_PUBLIC =
|
||||
ANALYZE_SSL_SOURCES = ciphersuites.c ssl.enums.c ssl_analyze.c \
|
||||
ssl_rec.c ssldecode.c sslprint.c sslxprint.c
|
||||
|
||||
|
||||
|
||||
#
|
||||
# CONFIGURE AUTOMATICALLY-GENERATED MAKE ENVIRONMENT
|
||||
#
|
||||
# ANALYZE_SSL_OBJECTS:
|
||||
# object files to build
|
||||
#
|
||||
# ANALYZE_SSL_UNUSED:
|
||||
# obsolete files in the module directory that are not
|
||||
# used during the build process
|
||||
#
|
||||
# ANALYZE_SSL_USED:
|
||||
# all files in the module directory that are used
|
||||
# during the build process
|
||||
#
|
||||
ANALYZE_SSL_OBJECTS = ciphersuites.$(OBJSUFFIX) ssl.enums.$(OBJSUFFIX) \
|
||||
ssl_analyze.$(OBJSUFFIX) ssl_rec.$(OBJSUFFIX) \
|
||||
ssldecode.$(OBJSUFFIX) sslprint.$(OBJSUFFIX) \
|
||||
sslxprint.$(OBJSUFFIX)
|
||||
ANALYZE_SSL_UNUSED = Makefile lex.yy.c main.c ssl.enums.h ssl_enum.c \
|
||||
ssl_h.h sslciphers.h ssldecode.h sslprint.h \
|
||||
sslxprint.h targets.mk y.tab.c y.tab.h
|
||||
ANALYZE_SSL_USED = $(ANALYZE_SSL_INTERNAL:%=$(ANALYZE_SSL_SRCDIR)%) \
|
||||
$(ANALYZE_SSL_MAKEFILES:%=$(ANALYZE_SSL_SRCDIR)%) \
|
||||
$(ANALYZE_SSL_PRIVATE:%=$(ANALYZE_SSL_SRCDIR)%) \
|
||||
$(ANALYZE_SSL_PUBLIC:%=$(ANALYZE_SSL_SRCDIR)%) \
|
||||
$(ANALYZE_SSL_SOURCES:%=$(ANALYZE_SSL_SRCDIR)%)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# NOTES
|
||||
#
|
||||
# The following variables may be used during the build process,
|
||||
# but are not defined in this file. If they are to be set
|
||||
# to something other than the default blank, then they must
|
||||
# be set by the calling make system.
|
||||
#
|
||||
# ANALYZE_SSL_SRCDIR:
|
||||
# if the build target directory is different from the
|
||||
# module directory (the source directory), then this
|
||||
# variable contains the relative or full path of
|
||||
# the module directory
|
||||
#
|
||||
# LIBARS:
|
||||
# the library archive files (with fully-specified paths) that
|
||||
# executables built from this module directory depend upon
|
||||
#
|
||||
# LIBPATHS:
|
||||
# the paths to search for library archives (specified with
|
||||
# the -L)
|
||||
#
|
||||
# LIBRARIES:
|
||||
# the libraries to use while building executables from
|
||||
# this module directory (specified with the -l)
|
||||
#
|
||||
|
||||
|
||||
|
||||
#
|
||||
# GLOBAL ENVIRONMENT
|
||||
#
|
||||
DEFINES += $(ANALYZE_SSL_DEFINES)
|
||||
INCLUDES += $(ANALYZE_SSL_INCLUDES)
|
||||
LIBPATHS += $(ANALYZE_SSL_LIBPATHS)
|
||||
LIBRARIES += $(ANALYZE_SSL_LIBRARIES)
|
||||
OBJECTS += $(ANALYZE_SSL_OBJECTS)
|
||||
PUBLIC += $(ANALYZE_SSL_PUBLIC)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# GENERIC DEPENDENCIES
|
||||
#
|
||||
# default:
|
||||
# default dependency, must be the first dependency in this makefile
|
||||
#
|
||||
# all:
|
||||
# build everything in this module directory
|
||||
#
|
||||
# build:
|
||||
# make only the toolkit build files of this module directory
|
||||
#
|
||||
# ci:
|
||||
# perform an RCS check-in of this module directory
|
||||
#
|
||||
# clean:
|
||||
# remove the compiled files
|
||||
#
|
||||
# clean_public:
|
||||
# remove the public header files that have been copied
|
||||
# to a public build directory
|
||||
#
|
||||
# objects:
|
||||
# build the object files (this dependency is used for
|
||||
# building the toolkit library)
|
||||
#
|
||||
# private:
|
||||
# build only the private API header files
|
||||
#
|
||||
# public:
|
||||
# build only the public API header files
|
||||
#
|
||||
default: $(ANALYZE_SSL_LIBNAME)
|
||||
default: $(ANALYZE_SSL_PROGRAMS)
|
||||
|
||||
all: $(ANALYZE_SSL_PUBLIC)
|
||||
all: $(ANALYZE_SSL_OBJECTS)
|
||||
all: $(ANALYZE_SSL_LIBNAME)
|
||||
all: $(ANALYZE_SSL_PROGRAMS)
|
||||
build: $(ANALYZE_SSL_PUBLIC)
|
||||
build: $(ANALYZE_SSL_OBJECTS)
|
||||
ci: analyze_ssl_ci
|
||||
clean: analyze_ssl_clean
|
||||
clean_public: analyze_ssl_clean_public
|
||||
objects: $(ANALYZE_SSL_OBJECTS)
|
||||
private: $(ANALYZE_SSL_PRIVATE)
|
||||
public: $(ANALYZE_SSL_PUBLIC)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# LOCAL UTILITY DEPENDENCIES
|
||||
#
|
||||
# utility dependencies are necessary because of some
|
||||
# make-isms having to do with dependencies
|
||||
#
|
||||
|
||||
analyze_ssl_ci:
|
||||
$(CI) $(CIFLAGS) $(ANALYZE_SSL_USED)
|
||||
|
||||
analyze_ssl_clean:
|
||||
$(RM) $(RMFLAGS) $(ANALYZE_SSL_OBJECTS) $(ANALYZE_SSL_LIBNAME) $(ANALYZE_SSL_PROGRAMS)
|
||||
|
||||
analyze_ssl_clean_public:
|
||||
$(RM) $(RMFLAGS) $(ANALYZE_SSL_PUBLIC)
|
||||
|
||||
analyze_ssl_objects: $(ANALYZE_SSL_OBJECTS)
|
||||
|
||||
analyze_ssl_programs: $(ANALYZE_SSL_PROGRAMS)
|
||||
|
||||
analyze_ssl_public: $(ANALYZE_SSL_PUBLIC)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# BUILD DEPENDENCIES
|
||||
#
|
||||
# build dependencies invoke the rule used to build each
|
||||
# class of file
|
||||
#
|
||||
|
||||
$(ANALYZE_SSL_LIBNAME):
|
||||
$(AR) $(ARFLAGS) $@ $?
|
||||
$(RANLIB) $@
|
||||
|
||||
$(ANALYZE_SSL_OBJECTS):
|
||||
$(COMPILE.c) $(ANALYZE_SSL_SRCDIR)$(@:%.o=%.c) $(DEFINES) $(INCLUDES) $(ANALYZE_SSL_LOCALFLAGS)
|
||||
|
||||
$(ANALYZE_SSL_PUBLIC):
|
||||
$(CP) $(CPFLAGS) $(ANALYZE_SSL_SRCDIR)$@ $@
|
||||
|
||||
$(ANALYZE_SSL_PROGRAMS):
|
||||
$(LINK.c) $@.$(OBJSUFFIX) $(LDLIBS) $(LIBS) $(LIBRARIES) $(LIBPATHS)
|
||||
#LIBS above is obsolete (use LIBARARIES instead)
|
||||
|
||||
|
||||
|
||||
#
|
||||
# FILE DEPENDENCIES
|
||||
#
|
||||
# file dependencies state, for each file that is built,
|
||||
# which file(s) it depends upon
|
||||
#
|
||||
|
||||
ciphersuites.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)ciphersuites.c
|
||||
|
||||
ssl.enums.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)ssl.enums.h
|
||||
ssl.enums.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)ssl.enums.c
|
||||
|
||||
ssl_analyze.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)ssl_analyze.h
|
||||
ssl_analyze.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)ssl_analyze.c
|
||||
|
||||
ssl_rec.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)ssl_rec.c
|
||||
|
||||
ssldecode.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)ssldecode.h
|
||||
ssldecode.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)ssldecode.c
|
||||
|
||||
sslprint.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)sslprint.h
|
||||
sslprint.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)sslprint.c
|
||||
|
||||
sslxprint.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)sslxprint.h
|
||||
sslxprint.$(OBJSUFFIX): $(ANALYZE_SSL_SRCDIR)sslxprint.c
|
||||
|
||||
$(ANALYZE_SSL_LIBNAME): $(ANALYZE_SSL_OBJECTS)
|
Loading…
Reference in a new issue