Home | History | Annotate | Line # | Download | only in sodium
Makefile.sodmod revision 1.3
      1  1.3  christos #	$NetBSD: Makefile.sodmod,v 1.3 2021/08/21 09:07:08 christos Exp $
      2  1.1  christos 
      3  1.1  christos SODIUMDIR=	${S}/external/isc/libsodium
      4  1.1  christos SODIUMSRCDIR=	${SODIUMDIR}/dist/src/libsodium
      5  1.1  christos 
      6  1.1  christos .PATH:	${SODIUMDIR}/src
      7  1.3  christos SRCS+=	sodium_module.c
      8  1.1  christos 
      9  1.1  christos .PATH:	${SODIUMSRCDIR}/crypto_scalarmult/curve25519/ref10
     10  1.1  christos SRCS+=	x25519_ref10.c
     11  1.1  christos 
     12  1.1  christos .PATH:	${SODIUMSRCDIR}/crypto_scalarmult/curve25519
     13  1.1  christos SRCS+=	scalarmult_curve25519.c
     14  1.1  christos 
     15  1.1  christos .PATH:	${SODIUMSRCDIR}/crypto_scalarmult
     16  1.1  christos SRCS+=	crypto_scalarmult.c
     17  1.1  christos 
     18  1.1  christos .PATH:	${SODIUMSRCDIR}/crypto_onetimeauth/poly1305/donna
     19  1.1  christos SRCS+=	poly1305_donna.c
     20  1.1  christos 
     21  1.1  christos .PATH:	${SODIUMSRCDIR}/crypto_onetimeauth/poly1305
     22  1.1  christos SRCS+=	onetimeauth_poly1305.c
     23  1.1  christos 
     24  1.1  christos .PATH:	${SODIUMSRCDIR}/crypto_onetimeauth
     25  1.1  christos SRCS+=	crypto_onetimeauth.c
     26  1.1  christos 
     27  1.1  christos .PATH:	${SODIUMSRCDIR}/crypto_stream/chacha20/ref
     28  1.1  christos SRCS+=	chacha20_ref.c
     29  1.1  christos 
     30  1.1  christos .PATH:	${SODIUMSRCDIR}/crypto_stream/chacha20
     31  1.1  christos SRCS+=	stream_chacha20.c
     32  1.1  christos 
     33  1.1  christos .PATH:	${SODIUMSRCDIR}/crypto_aead/xchacha20poly1305/sodium
     34  1.1  christos SRCS+=	aead_xchacha20poly1305.c
     35  1.1  christos 
     36  1.1  christos .PATH:	${SODIUMSRCDIR}/crypto_aead/chacha20poly1305/sodium
     37  1.1  christos SRCS+=	aead_chacha20poly1305.c
     38  1.1  christos 
     39  1.1  christos .PATH:	${SODIUMSRCDIR}/crypto_core/hchacha20
     40  1.1  christos SRCS+=	core_hchacha20.c
     41  1.1  christos 
     42  1.1  christos .PATH:	${SODIUMSRCDIR}/crypto_core/ed25519/ref10
     43  1.1  christos SRCS+=	ed25519_ref10.c
     44  1.1  christos 
     45  1.1  christos WARNS=		3
     46  1.1  christos 
     47  1.1  christos CWARNFLAGS+=	-Wall
     48  1.1  christos CWARNFLAGS+=	-Wno-shadow
     49  1.1  christos CWARNFLAGS+=	-Wno-unused-function
     50  1.1  christos CWARNFLAGS+=	-Wno-unused-variable
     51  1.1  christos 
     52  1.2  christos .if ${MACHINE_CPU} == "x86_64"
     53  1.2  christos CPPFLAGS+=	-DHAVE_TI_MODE
     54  1.2  christos .endif
     55  1.2  christos CPPFLAGS+=	-I${SODIUMDIR}/include 
     56  1.1  christos CPPFLAGS+=	-I${SODIUMDIR}/dist/src/libsodium/include/sodium
     57