Packages
Elixir interface to the wpa_supplicant daemon. The wpa_supplicant provides application support for scanning for access points, managing Wi-Fi connections, and handling all of the security and other parameters associated with Wi-Fi.
Current section
Files
Jump to
Current section
Files
wpa_supplicant
Makefile
Makefile
# Variables to override
#
# CC C compiler
# CROSSCOMPILE crosscompiler prefix, if any
# CFLAGS compiler flags for compiling all C files
# LDFLAGS linker flags for linking all binaries
# MIX path to mix
WPA_DEFINES = -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX
LDFLAGS += -lrt
CFLAGS ?= -O2 -Wall -Wextra -Wno-unused-parameter
CC ?= $(CROSSCOMPILER)gcc
MIX ?= mix
all: compile
compile:
$(MIX) compile
test:
$(MIX) test
%.o: %.c
$(CC) -c $(WPA_DEFINES) $(CFLAGS) -o $@ $<
priv/wpa_ex: src/wpa_ex.o src/wpa_ctrl/os_unix.o src/wpa_ctrl/wpa_ctrl.o
@mkdir -p priv
$(CC) $^ $(LDFLAGS) -o $@
# setuid root wpa_ex so that it can interact with the wpa_supplicant
setuid: priv/wpa_ex
sudo chown root:root $^
sudo chmod +s $^
clean:
$(MIX) clean
rm -f priv/wpa_ex src/*.o src/wpa_ctrl/*.o
.PHONY: all compile test clean setuid