#
#
#                         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 = ../..

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

      RANLIB = ranlib

          RM = rm -f
        MAKE = make
        ECHO = echo


#
# `quad_cksum' is not a part of this package any longer.
#
#     QS_SRCS = quad_cksum.c
#     QS_OBJS = quad_cksum.o

        SRCS = encrypt.c ${QS_SRCS}

        OBJS = encrypt.o ${QS_SRCS}


         LIB = libextra.a

     REMOVES = ${LIB}

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


all	: ${LIB}

${LIB}	: ${OBJS}
	ar r $@ $?
	${RANLIB} $@

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

clean	:
	${RM} ${REMOVES} *.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}


quad_cksum.o:	quad_cksum.c
encrypt.o:	encrypt.c


# DEPEND
#
# Don not change the lines below, run make depend
#
