1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5.include "../Makefile.inc" 6 7.PATH.c:${WPA_SUPPLICANT_DISTDIR} \ 8 ${WPA_DISTDIR}/wpa_supplicant \ 9 ${WPA_DISTDIR}/src/eap_peer \ 10 ${WPA_DISTDIR}/src/utils \ 11 ${WPA_DISTDIR}/src/drivers 12 13PACKAGE= wpa 14PROG= wpa_cli 15SRCS= base64.c bitfield.c bss.c bssid_ignore.c cli.c common.c config.c \ 16 config_file.c \ 17 ctrl_iface.c ctrl_iface_common.c ctrl_iface_unix.c \ 18 drivers.c driver_common.c \ 19 eap_register.c \ 20 edit.c eloop.c events.c hw_features_common.c \ 21 ieee802_11_common.c l2_packet_freebsd.c notify.c \ 22 op_classes.c \ 23 os_unix.c robust_av.c rrm.c scan.c wmm_ac.c \ 24 wpa.c wpa_cli.c \ 25 wpa_ctrl.c wpa_common.c \ 26 wpa_debug.c wpa_ie.c wpa_supplicant.c wpabuf.c wpas_glue.c 27 28MAN= wpa_cli.8 29 30CFLAGS+= -DCONFIG_CTRL_IFACE 31CFLAGS+= -DCONFIG_CTRL_IFACE_UNIX 32CFLAGS+= -DCONFIG_TLS=openssl 33# enable use of d_type to identify unix domain sockets 34CFLAGS+= -D_DIRENT_HAVE_D_TYPE 35 36CFLAGS+= -DCONFIG_WPA_CLI_EDIT=y 37LIBADD+= pcap util 38 39TLS_FUNCS=y 40 41OBJS+= utils_config.o 42utils_config.o: ${WPA_DISTDIR}/src/utils/config.c 43 ${CC} -c ${CFLAGS} -o ${.OBJDIR}/utils_config.o ${WPA_DISTDIR}/src/utils/config.c 44 45.include "../Makefile.crypto" 46 47.include <bsd.prog.mk> 48