#
# Makefile for the Linux kernel crypto library.
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (not a .c file).
#
# Note 2! The CFLAGS definitions are now in the main makefile.

L_TARGET := crypto.a
L_OBJS   := 
LX_OBJS  := 

ifeq ($(CONFIG_CIPHERS),y)
  LX_OBJS += cipherapi.o
else
  ifeq ($(CONFIG_CIPHERS),m)
    MX_OBJS += cipherapi.o
  endif
endif

ifeq ($(CONFIG_CIPHER_SERPENT),y)
  L_OBJS += serp6f.o
else
  ifeq ($(CONFIG_CIPHER_SERPENT),m)
    M_OBJS += serp6f.o
  endif
endif

ifeq ($(CONFIG_CIPHER_MARS),y)
  L_OBJS += mars6.o
else
  ifeq ($(CONFIG_CIPHER_MARS),m)
    M_OBJS += mars6.o
  endif
endif

ifeq ($(CONFIG_CIPHER_RC5),y)
  L_OBJS += rc5.o
else
  ifeq ($(CONFIG_CIPHER_RC5),m)
    M_OBJS += rc5.o
  endif
endif

ifeq ($(CONFIG_CIPHER_RC6),y)
  L_OBJS += rc62.o
else
  ifeq ($(CONFIG_CIPHER_RC6),m)
    M_OBJS += rc62.o
  endif
endif

ifeq ($(CONFIG_CIPHER_DFC),y)
  L_OBJS += dfc2.o
else
  ifeq ($(CONFIG_CIPHER_DFC),m)
    M_OBJS += dfc2.o
  endif
endif

ifeq ($(CONFIG_CIPHER_RIJNDAEL),y)
  L_OBJS += rijndael3.o
else
  ifeq ($(CONFIG_CIPHER_RIJNDAEL),m)
    M_OBJS += rijndael3.o
  endif
endif

ifeq ($(CONFIG_CIPHER_BLOWFISH),y)
  L_OBJS += blowfish.o
else
  ifeq ($(CONFIG_CIPHER_BLOWFISH),m)
    M_OBJS += blowfish.o
  endif
endif

ifeq ($(CONFIG_CIPHER_IDEA),y)
  L_OBJS += idea.o
else
  ifeq ($(CONFIG_CIPHER_IDEA),m)
    M_OBJS += idea.o
  endif
endif

ifeq ($(CONFIG_CIPHER_DES),y)
  L_OBJS += des.o
else
  ifeq ($(CONFIG_CIPHER_DES),m)
    M_OBJS += des.o
  endif
endif

ifeq ($(CONFIG_DIGEST),y)
  L_OBJS += digestapi.o
else
  ifeq ($(CONFIG_DIGEST),y)
    MX_OBJS += digestapi.o
  endif
endif

ifeq ($(CONFIG_DIGEST_MD5),y)
  L_OBJS += md5glue.o md5c.o
else
  ifeq ($(CONFIG_DIGEST_MD5),m)
    M_OBJS += md5glue.o md5c.o
  endif
endif

include $(TOPDIR)/Rules.make
