summaryrefslogtreecommitdiff
path: root/linux/net/ipsec/alg/Makefile.alg_cryptoapi
blob: 77ee6481f1a9e1337ced517fb65885fbe5c2918a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
MOD_CRYPTOAPI := ipsec_cryptoapi.o

ifneq ($(wildcard $(TOPDIR)/include/linux/crypto.h),)
ALG_MODULES += $(MOD_CRYPTOAPI)
obj-$(CONFIG_IPSEC_ALG_CRYPTOAPI) += $(MOD_CRYPTOAPI)
static_init-func-$(CONFIG_IPSEC_ALG_CRYPTOAPI)+= ipsec_cryptoapi_init
alg_obj-$(CONFIG_IPSEC_ALG_CRYPTOAPI) += ipsec_alg_cryptoapi.o
else
$(warning "Linux CryptoAPI (2.4.22+ or 2.6.x) not found, not building ipsec_cryptoapi.o")
endif

CRYPTOAPI_OBJS := ipsec_alg_cryptoapi.o 
$(MOD_CRYPTOAPI): $(CRYPTOAPI_OBJS)
	$(LD) -r $(CRYPTOAPI_OBJS) -o $@