#
#
#                         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 = ..
  DEALIB = ${TOPDIR}/lib/dea/libdea.a
  DESLIB = ${TOPDIR}/lib/libdes.a

    SRCS = vry.c test.c bench.c

#      CC = gcc
INCLUDES = -I${TOPDIR}/include -I${TOPDIR}/config/include
   CCOPT = -O
#   CCOPT = -g
  CFLAGS = ${CCOPT} ${DEFINES} ${INCLUDES}
 LDFLAGS =

 INSTALL = install -c

      RM = rm -f
    ECHO = echo

   SRCS1 = deavrfy.c
   OBJS1 = deavrfy.o data.o

   SRCS2 = test.c
   OBJS2 = test.o

   SRCS3 = bench.c
   OBJS3 = bench.o

   SRCS = data.c ${SRCS1} ${SRCS2} ${SRCS3}
   OBJS = ${OBJS1} ${OBJS2} ${OBJS3}

   PROGS = deavrfy desktest desbench


# This rule should be defined in all make programs.
#
#.c.o:
#	${CC} ${CFLAGS} -c $* $<


all	: ${PROGS}


deavrfy : ${OBJS1} ${DEALIB}
	${CC} ${CFLAGS} -o $@ ${OBJS1} ${LDFLAGS} ${DEALIB}

desktest: ${OBJS2} ${DESLIB}
	${CC} ${CFLAGS} -o $@ ${OBJS2} ${LDFLAGS} ${DESLIB}

desbench: ${OBJS3} ${DEALIB}
	${CC} ${CFLAGS} -o $@ ${OBJS3} ${LDFLAGS} ${DEALIB}


verify	:
	./verify.sh ${MFLAGS}


install	:
	@ case '${MFLAGS}' in -*s*) :;; *) ${ECHO} 'Nothing to install';; esac


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


depend	:
	${TOPDIR}/util/mkdepend.sh ${MFLAGS} 'CC=${CC}' 'CFLAGS=${CFLAGS}' 'RM=${RM}' -f Makefile ${SRCS}

