#
#
#                         DES SOFTWARE PACKAGE
#                             Version 2.2
#
#                                        _
# Copyright (c) 1990,1991,1992,1993 Stig Ostholm.
# All Rights Reserved
#
#
# The author takes no responsibility of actions caused by the use of this
# software package and does not guarantee the correctness of the functions.
#
# This software package may be freely distributed for non-commercial purpose
# as long as the copyright notice is kept. Any changes made should be
# accompanied by a comment indicating who made the change, when it was made
# and what was changed.
#
# This software package, or any parts of it, may not be used or in any way
# re-distributed for commercial purpose without the authors permission.
# The author keeps the right to decide between of what is commercial and
# what is non-commercial purpose.
#
# Restrictions due to national laws governing the use, import or export of
# cryptographic software is the responsibility of the software user/importer/
# exporter to follow.
#
#
#                                              _
#                                         Stig Ostholm
#                                         Chalmers University of Technology
#                                         Department of Computer Engineering
#                                         S-412 96 Gothenburg
#                                         Sweden
#                                         ----------------------------------
#                                         Email: ostholm@ce.chalmers.se
#                                         Phone: +46 31 772 1703
#                                         Fax:   +46 31 772 3663
#

       TOPDIR = .
      SUBDIRS = config util fips include lib prog man verify

           CC = cc
#           CC = gcc
        CCOPT = -O
#        CCOPT = -g

# Some make programs (old 4.3) don't define the MAKE macro automaticly
         MAKE = make
         ECHO = echo
           RM = rm -f

       BINDIR =
       LIBDIR =
       INCDIR =
       MANDIR =

    MAKE_ARGS = 'TOPDIR=${TOPDIR}/..' 'MAKE=${MAKE}' 'ECHO=${ECHO}' 'RM=${RM}' \
		'CC=${CC}' 'CCOPT=${CCOPT}' 'BINDIR=${BINDIR}' \
		'LIBDIR=${LIBDIR}' 'INCDIR=${INCDIR}' 'MANDIR=${MANDIR}'

 MAKE_SUBDIRS = case '${MFLAGS}' in -*s*) :;; *) set -x;; esac; \
		PATH="$${PATH}:`pwd`/util"; export PATH; \
 		for D in ${SUBDIRS}; do \
			( cd $$D && ${MAKE} ${MFLAGS} ${MAKE_ARGS} $@ ); \
		done


all	:
	@ ${MAKE_SUBDIRS}


verify	::
	@ case '${MFLAGS}' in -*s*) :;; *) set -x;; esac; \
	  cd verify && ${MAKE} ${MFLAGS} ${MAKE_ARGS} $@


install	:
	@ ${MAKE_SUBDIRS}

clean	:
	${RM} core a.out tmp.c tmp.h *.NEW *.BAK
	@ ${MAKE_SUBDIRS}

depend	:
	@ ${MAKE_SUBDIRS}
