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