Makefile revision 1.20
11.20Sriastrad# $NetBSD: Makefile,v 1.20 2020/08/26 15:49:56 riastradh Exp $ 21.1Spooka# 31.1Spooka 41.14SriastradSODIUM_IMPORTDIR=${.CURDIR}/../../../../external/isc/libsodium 51.14SriastradSODIUM_DIR=${.CURDIR}/../../../../external/isc/libsodium/dist/src/libsodium 61.14Sriastrad 71.8Sriastrad.PATH: ${.CURDIR}/../../../../crypto/adiantum \ 81.8Sriastrad ${.CURDIR}/../../../../crypto/aes \ 91.16Sriastrad ${.CURDIR}/../../../../crypto/blake2 \ 101.7Sriastrad ${.CURDIR}/../../../../crypto/blowfish \ 111.2Spgoyette ${.CURDIR}/../../../../crypto/camellia \ 121.1Spooka ${.CURDIR}/../../../../crypto/cast128 \ 131.1Spooka ${.CURDIR}/../../../../crypto/des \ 141.14Sriastrad ${.CURDIR}/../../../../crypto/skipjack \ 151.14Sriastrad ${SODIUM_DIR}/crypto_scalarmult/curve25519/ref10 \ 161.14Sriastrad ${SODIUM_DIR}/crypto_scalarmult/curve25519 \ 171.14Sriastrad ${SODIUM_DIR}/crypto_scalarmult \ 181.14Sriastrad ${SODIUM_DIR}/crypto_onetimeauth/poly1305/donna \ 191.14Sriastrad ${SODIUM_DIR}/crypto_onetimeauth/poly1305 \ 201.14Sriastrad ${SODIUM_DIR}/crypto_onetimeauth \ 211.14Sriastrad ${SODIUM_DIR}/crypto_stream/chacha20/ref \ 221.14Sriastrad ${SODIUM_DIR}/crypto_stream/chacha20 \ 231.14Sriastrad ${SODIUM_DIR}/crypto_aead/xchacha20poly1305/sodium \ 241.14Sriastrad ${SODIUM_DIR}/crypto_aead/chacha20poly1305/sodium \ 251.14Sriastrad ${SODIUM_DIR}/crypto_core/hchacha20 \ 261.14Sriastrad ${SODIUM_DIR}/crypto_core/ed25519/ref10 271.1Spooka 281.1SpookaLIB= rumpkern_crypto 291.4SpookaCOMMENT=Cryptographic routines 301.1Spooka 311.8Sriastrad# Adiantum 321.8SriastradSRCS+= adiantum.c 331.8SriastradSRCS+= adiantum_selftest.c 341.8Sriastrad 351.12Sriastrad# AES 361.12SriastradSRCS+= aes_bear.c 371.12SriastradSRCS+= aes_ccm.c 381.12SriastradSRCS+= aes_ccm_mbuf.c 391.12SriastradSRCS+= aes_ct.c 401.12SriastradSRCS+= aes_ct_dec.c 411.12SriastradSRCS+= aes_ct_enc.c 421.12SriastradSRCS+= aes_impl.c 431.12SriastradSRCS+= aes_selftest.c 441.12Sriastrad 451.1Spooka# blowfish 461.2SpgoyetteSRCS+= bf_ecb.c bf_enc.c bf_cbc.c bf_skey.c bf_module.c 471.2Spgoyette 481.2Spgoyette# camellia 491.2SpgoyetteSRCS+= camellia.c camellia-api.c 501.1Spooka 511.12Sriastrad# cast128 521.12SriastradSRCS+= cast128.c 531.12Sriastrad 541.1Spooka# DES 551.2SpgoyetteSRCS+= des_ecb.c des_setkey.c des_enc.c des_cbc.c des_module.c 561.1Spooka 571.1Spooka# skipjack 581.1SpookaSRCS+= skipjack.c 591.1Spooka 601.14Sriastrad# BLAKE2 611.15SriastradSRCS+= blake2s.c 621.14Sriastrad 631.20Sriastrad# libsodium 641.14SriastradSODIUM_CPPFLAGS+= -I${SODIUM_IMPORTDIR}/include 651.14SriastradSODIUM_CPPFLAGS+= -I${SODIUM_IMPORTDIR}/dist/src/libsodium/include/sodium 661.18Sriastrad 671.19Sriastrad#SODIUM_CPPFLAGS+= -DHAVE_TI_MODE 681.18Sriastrad 691.20SriastradSODIUM_CWARNFLAGS+= -Wno-shadow 701.20SriastradSODIUM_CWARNFLAGS+= -Wno-unused-function 711.20SriastradSODIUM_CWARNFLAGS+= -Wno-unused-variable 721.20Sriastrad 731.20SriastradSODIUM_SRCS+= x25519_ref10.c 741.20SriastradSODIUM_SRCS+= scalarmult_curve25519.c 751.20SriastradSODIUM_SRCS+= crypto_scalarmult.c 761.20SriastradSODIUM_SRCS+= poly1305_donna.c 771.20SriastradSODIUM_SRCS+= onetimeauth_poly1305.c 781.20SriastradSODIUM_SRCS+= crypto_onetimeauth.c 791.20SriastradSODIUM_SRCS+= chacha20_ref.c 801.20SriastradSODIUM_SRCS+= stream_chacha20.c 811.20SriastradSODIUM_SRCS+= aead_xchacha20poly1305.c 821.20SriastradSODIUM_SRCS+= aead_chacha20poly1305.c 831.20SriastradSODIUM_SRCS+= core_hchacha20.c 841.20SriastradSODIUM_SRCS+= ed25519_ref10.c 851.20Sriastrad 861.20SriastradSRCS+= ${SODIUM_SRCS} 871.20Sriastrad 881.20Sriastrad.for _s_ in ${SODIUM_SRCS} 891.20SriastradCPPFLAGS.${_s_}+= ${SODIUM_CPPFLAGS} 901.20SriastradCOPTS.${_s_}+= ${SODIUM_CWARNFLAGS} 911.20Sriastrad.endfor 921.14Sriastrad 931.1Spooka.include <bsd.lib.mk> 941.1Spooka.include <bsd.klinks.mk> 95