Home | History | Annotate | Line # | Download | only in wpa_passphrase
      1 # $NetBSD: Makefile,v 1.8 2025/10/19 00:59:59 riastradh Exp $
      2 
      3 .include "${.CURDIR}/../Makefile.inc"
      4 
      5 .PATH.c: ${WPA_SUPPLICANT_DISTDIR} ${.CURDIR}/../wpa_supplicant ${COMMON_PATH}
      6 
      7 PROG=	wpa_passphrase
      8 SRCS= \
      9 common.c \
     10 os_unix.c \
     11 wpa_debug.c \
     12 wpa_passphrase.c \
     13 wpabuf.c 
     14 
     15 .if !defined(NO_CRYPT) && !defined(NO_OPENSSL) && !defined(RELEASE_CRUNCH)
     16 SRCS+= crypto_openssl.c
     17 DPADD+= ${LIBSSL} ${LIBCRYPTO} ${LIBDES}
     18 LDADD+= -lssl -lcrypto -ldes
     19 .else
     20 CPPFLAGS+= -DINTERNAL_AES -DINTERNAL_MD5 -DINTERNAL_SHA1
     21 CPPFLAGS+= -DCONFIG_CRYPTO_INTERNAL
     22 SRCS+=	tls_none.c md5-internal.c sha1-internal.c
     23 SRCS+= sha1-pbkdf2.c sha1.c md5.c
     24 .endif
     25 
     26 
     27 MAN=	wpa_passphrase.8
     28 COPTS.crypto_openssl.c+= -Wno-error=deprecated-declarations
     29 
     30 .include <bsd.prog.mk>
     31