Home | History | Annotate | Line # | Download | only in wpa_supplicant
Makefile revision 1.1.16.1
      1  1.1.16.1       snj # $NetBSD: Makefile,v 1.1.16.1 2017/08/30 05:49:00 snj Exp $
      2       1.1  christos 
      3       1.1  christos .include "${.CURDIR}/../Makefile.inc"
      4       1.1  christos 
      5       1.1  christos PROG=	wpa_supplicant
      6       1.1  christos SRCS= \
      7       1.1  christos base64.c \
      8       1.1  christos blacklist.c \
      9       1.1  christos bss.c \
     10       1.1  christos common.c \
     11       1.1  christos config.c \
     12       1.1  christos config_file.c \
     13       1.1  christos ctrl_iface.c \
     14  1.1.16.1       snj ctrl_iface_common.c \
     15       1.1  christos ctrl_iface_unix.c \
     16  1.1.16.1       snj driver_common.c \
     17       1.1  christos driver_bsd.c \
     18       1.1  christos driver_wired.c \
     19       1.1  christos drivers.c \
     20       1.1  christos eap_common.c \
     21       1.1  christos eap_methods.c \
     22       1.1  christos eap_register.c \
     23       1.1  christos eapol_supp_sm.c \
     24       1.1  christos eloop.c \
     25       1.1  christos events.c \
     26  1.1.16.1       snj hw_features_common.c \
     27  1.1.16.1       snj ieee802_11_common.c \
     28       1.1  christos l2_packet_freebsd.c \
     29       1.1  christos main.c \
     30       1.1  christos notify.c \
     31       1.1  christos os_unix.c \
     32       1.1  christos peerkey.c \
     33       1.1  christos pmksa_cache.c \
     34       1.1  christos preauth.c \
     35  1.1.16.1       snj random.c \
     36       1.1  christos scan.c \
     37  1.1.16.1       snj sha1-prf.c \
     38  1.1.16.1       snj wmm_ac.c \
     39       1.1  christos wpa.c \
     40       1.1  christos wpa_common.c \
     41       1.1  christos wpa_debug.c \
     42       1.1  christos wpa_ie.c \
     43       1.1  christos wpa_supplicant.c \
     44       1.1  christos wpabuf.c \
     45       1.1  christos wpas_glue.c
     46       1.1  christos 
     47  1.1.16.1       snj 
     48       1.1  christos MAN=	wpa_supplicant.8 wpa_supplicant.conf.5
     49       1.1  christos 
     50       1.1  christos .PATH.c:  \
     51       1.1  christos 	${WPA_SUPPLICANT_DISTDIR} \
     52       1.1  christos 	${WPA_DISTDIR}/src/drivers \
     53       1.1  christos 	${WPA_DISTDIR}/src/eap_peer \
     54       1.1  christos 	${WPA_DISTDIR}/src/rsn_supp
     55       1.1  christos 
     56       1.1  christos CPPFLAGS+= \
     57       1.1  christos 	-I${WPA_SUPPLICANT_DISTDIR} \
     58       1.1  christos 	-I${WPA_DISTDIR}/src/drivers \
     59       1.1  christos 	-I${WPA_DISTDIR}/src/rsn_supp
     60       1.1  christos 
     61       1.1  christos CPPFLAGS+=-DCONFIG_BACKEND_FILE
     62       1.1  christos CPPFLAGS+=-DCONFIG_PEERKEY
     63  1.1.16.1       snj CPPFLAGS+=-DCONFIG_MATCH_IFACE
     64       1.1  christos CPPFLAGS+=-DCONFIG_DRIVER_BSD
     65  1.1.16.1       snj CPPFLAGS+=-DCONFIG_DRIVER_WIRED
     66       1.1  christos CPPFLAGS+=-DCONFIG_CTRL_IFACE
     67       1.1  christos CPPFLAGS+=-DCONFIG_CTRL_IFACE_UNIX
     68       1.1  christos CPPFLAGS+=-DCONFIG_SMARTCARD
     69       1.1  christos CPPFLAGS+=-DCONFIG_DEBUG_FILE
     70  1.1.16.1       snj CPPFLAGS+=-DCONFIG_DEBUG_SYSLOG
     71  1.1.16.1       snj 
     72  1.1.16.1       snj #CPPFLAGS+=-DCONFIG_FST
     73  1.1.16.1       snj #SRCS+=fst.c \
     74  1.1.16.1       snj #fst_ctrl_aux.c \
     75  1.1.16.1       snj #fst_ctrl_iface.c \
     76  1.1.16.1       snj #fst_group.c \
     77  1.1.16.1       snj #fst_iface.c \
     78  1.1.16.1       snj #fst_session.c
     79  1.1.16.1       snj 
     80  1.1.16.1       snj #CPPFLAGS+=-DCONFIG_ACS
     81  1.1.16.1       snj #CPPFLAGS+=-DCONFIG_MBO
     82  1.1.16.1       snj #CPPFLAGS+=-DCONFIG_WNM 
     83  1.1.16.1       snj #CPPFLAGS+=-DCONFIG_AP
     84  1.1.16.1       snj #SRCS+=ap.c \
     85  1.1.16.1       snj #gas.c \
     86  1.1.16.1       snj #mbo.c 
     87       1.1  christos 
     88       1.1  christos DPADD+=	${LIBPCAP}
     89       1.1  christos LDADD+=	-lpcap
     90       1.1  christos 
     91       1.1  christos .if !defined(NO_ENABLE_WPA_SUPPLICANT_EAPOL)
     92       1.1  christos SRCS+=	eap.c
     93       1.1  christos CPPFLAGS+= -DIEEE8021X_EAPOL -DPKCS12_FUNCS
     94       1.1  christos 
     95       1.1  christos .if !defined(NO_CRYPT) && !defined(NO_OPENSSL) && !defined(RELEASE_CRUNCH)
     96       1.1  christos CPPFLAGS+=-DEAP_TLS
     97       1.1  christos CPPFLAGS+=-DEAP_PEAP
     98       1.1  christos CPPFLAGS+=-DEAP_TTLS
     99       1.1  christos CPPFLAGS+=-DEAP_MD5
    100       1.1  christos CPPFLAGS+=-DEAP_MSCHAPv2
    101       1.1  christos CPPFLAGS+=-DEAP_GTC
    102       1.1  christos CPPFLAGS+=-DEAP_OTP
    103       1.1  christos CPPFLAGS+=-DEAP_LEAP
    104       1.1  christos CPPFLAGS+=-DEAP_PSK
    105       1.1  christos CPPFLAGS+=-DEAP_TLS_OPENSSL
    106       1.1  christos SRCS+= \
    107       1.1  christos chap.c \
    108       1.1  christos crypto_openssl.c \
    109       1.1  christos eap_gtc.c \
    110       1.1  christos eap_leap.c \
    111       1.1  christos eap_md5.c \
    112       1.1  christos eap_mschapv2.c \
    113       1.1  christos eap_otp.c \
    114       1.1  christos eap_peap.c \
    115       1.1  christos eap_peap_common.c \
    116       1.1  christos eap_psk.c \
    117       1.1  christos eap_psk_common.c \
    118       1.1  christos eap_tls.c \
    119       1.1  christos eap_tls_common.c \
    120       1.1  christos eap_ttls.c \
    121       1.1  christos ms_funcs.c \
    122       1.1  christos mschapv2.c \
    123       1.1  christos sha1-tlsprf.c \
    124       1.1  christos tls_openssl.c
    125       1.1  christos 
    126       1.1  christos SRCS+=aes-ctr.c \
    127       1.1  christos aes-eax.c \
    128       1.1  christos aes-encblock.c \
    129       1.1  christos aes-omac1.c \
    130       1.1  christos 
    131       1.1  christos # NB: requires patch to openssl
    132       1.1  christos #CPPFLAGS+= -DEAP_FAST
    133       1.1  christos #SRCS+=	eap_fast.c
    134       1.1  christos 
    135       1.1  christos DPADD+= ${LIBSSL} ${LIBCRYPTO} ${LIBDES}
    136       1.1  christos LDADD+= -lssl -lcrypto -ldes
    137       1.1  christos .else
    138       1.1  christos CPPFLAGS+= -DINTERNAL_AES -DINTERNAL_MD5 -DINTERNAL_SHA1 -DCONFIG_NO_PBKDF2
    139  1.1.16.1       snj SRCS+= tls_none.c sha1-internal.c md5-internal.c aes-xinternal.c rc4.c
    140  1.1.16.1       snj CPPFLAGS+= -DCONFIG_CRYPTO_INTERNAL
    141  1.1.16.1       snj #SRCS+= aes-unwrap.c md5.c
    142  1.1.16.1       snj SRCS+= sha1-pbkdf2.c sha1.c md5.c
    143       1.1  christos .endif
    144       1.1  christos 
    145       1.1  christos .endif
    146       1.1  christos 
    147       1.1  christos .include <bsd.prog.mk>
    148