⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 hostapd无线AP工具
💻
字号:
CC=gccDIR_WPA_SUPPLICANT=.DIR_HOSTAP=.ifndef CFLAGSCFLAGS = -MMD -O2 -Wall -gendif# define HOSTAPD_DUMP_STATE to include SIGUSR1 handler for dumping state to# a file (undefine it, if you want to save in binary size)CFLAGS += -DHOSTAPD_DUMP_STATE# Include directories for CVS versionCFLAGS += -I. -I$(DIR_HOSTAP) -I../utils -I$(DIR_WPA_SUPPLICANT)# Uncomment following line and set the path to your kernel tree include# directory if your C library does not include all header files.# CFLAGS += -DUSE_KERNEL_HEADERS -I/usr/src/linux/includeOBJS =	hostapd.o eloop.o ieee802_1x.o eapol_sm.o radius.o md5.o rc4.o \	common.o ieee802_11.o config.o ieee802_11_auth.o accounting.o \	sta_info.o radius_client.o sha1.o wpa.o aes_wrap.o ctrl_iface.o \	driver_conf.o-include .configifdef CONFIG_IAPPCFLAGS += -DCONFIG_IAPPOBJS += iapp.oendififdef CONFIG_RSN_PREAUTHCFLAGS += -DCONFIG_RSN_PREAUTHCONFIG_L2_PACKET=yendififdef CONFIG_DRIVER_HOSTAPCFLAGS += -DCONFIG_DRIVER_HOSTAPOBJS += driver.oendififdef CONFIG_DRIVER_WIREDCFLAGS += -DCONFIG_DRIVER_WIREDOBJS += driver_wired.oendififdef CONFIG_DRIVER_MADWIFICFLAGS += -DCONFIG_DRIVER_MADWIFIOBJS += driver_madwifi.oCONFIG_L2_PACKET=yendififdef CONFIG_DRIVER_PRISM54CFLAGS += -DCONFIG_DRIVER_PRISM54OBJS += driver_prism54.oendififdef CONFIG_DRIVER_BSDCFLAGS += -DCONFIG_DRIVER_BSDOBJS += driver_bsd.oCONFIG_L2_PACKET=yCONFIG_DNET_PCAP=yendififdef CONFIG_DRIVER_TESTCFLAGS += -DCONFIG_DRIVER_TESTOBJS += driver_test.oendififdef CONFIG_L2_PACKETOBJS += $(DIR_WPA_SUPPLICANT)/l2_packet.oendififdef CONFIG_DNET_PCAPCFLAGS += -DUSE_DNET_PCAPLIBS +=-ldnet -lpcapendififdef CONFIG_EAP_MD5CFLAGS += -DEAP_MD5OBJS += eap_md5.oendififdef CONFIG_EAP_TLSCFLAGS += -DEAP_TLSOBJS += eap_tls.oTLS_FUNCS=yendififdef CONFIG_EAP_PEAPCFLAGS += -DEAP_PEAPOBJS += eap_peap.oTLS_FUNCS=yCONFIG_EAP_TLV=yCONFIG_EAP_MSCHAPV2=yendififdef CONFIG_EAP_TTLSCFLAGS += -DEAP_TTLSOBJS += eap_ttls.oTLS_FUNCS=yendififdef CONFIG_EAP_MSCHAPV2CFLAGS += -DEAP_MSCHAPv2OBJS += eap_mschapv2.oMS_FUNCS=yendififdef CONFIG_EAP_GTCCFLAGS += -DEAP_GTCOBJS += eap_gtc.oendififdef CONFIG_EAP_SIMCFLAGS += -DEAP_SIMOBJS += eap_sim.o $(DIR_WPA_SUPPLICANT)/eap_sim_common.o# Example EAP-SIM interface for GSM authentication. This can be replaced with# another file implementating the interface specified in eap_sim_db.h.OBJS += eap_sim_db.oendififdef CONFIG_EAP_PAXCFLAGS += -DEAP_PAXOBJS += eap_pax.o $(DIR_WPA_SUPPLICANT)/eap_pax_common.oendififdef CONFIG_EAP_TLVCFLAGS += -DEAP_TLVOBJS += eap_tlv.oendififdef CONFIG_EAPCFLAGS += -DEAP_SERVEROBJS += eap.o eap_identity.oendififdef TLS_FUNCS# Shared TLS functions (needed for EAP_TLS, EAP_PEAP, and EAP_TTLS)CFLAGS += -DEAP_TLS_FUNCSOBJS += eap_tls_common.o $(DIR_WPA_SUPPLICANT)/tls_openssl.oLIBS += -lssl -lcryptoLIBS_p += -lcryptoelseOBJS += $(DIR_WPA_SUPPLICANT)/tls_none.oendififdef CONFIG_PKCS12CFLAGS += -DPKCS12_FUNCSendififdef MS_FUNCSifndef TLS_FUNCSLIBS += -lcryptoendifOBJS += $(DIR_WPA_SUPPLICANT)/ms_funcs.o $(DIR_WPA_SUPPLICANT)/crypto.oendififdef CONFIG_RADIUS_SERVERCFLAGS += -DRADIUS_SERVEROBJS += radius_server.oendififdef CONFIG_IPV6CFLAGS += -DCONFIG_IPV6endifALL=hostapd hostapd_cliall: verify_config $(ALL)verify_config:	@if [ ! -r .config ]; then \		echo 'Building hostapd requires a configuration file'; \		echo '(.config). See README for more instructions. You can'; \		echo 'run "cp defconfig .config" to create an example'; \		echo 'configuration.'; \		exit 1; \	fiinstall: all	for i in $(ALL); do cp $$i /usr/local/bin/$$i; donehostapd: $(OBJS)	$(CC) -o hostapd $(OBJS) $(LIBS)driver_conf.c: Makefile .config	rm -f driver_conf.c	echo '/* THIS FILE AUTOMATICALLY GENERATED, DO NOT EDIT! */' \							> driver_conf.c	echo '#include <stdlib.h>'			>> driver_conf.c	echo '#include <stdio.h>'			>> driver_conf.c	echo '#include <sys/types.h>'			>> driver_conf.c	echo '#include <netinet/in.h>'			>> driver_conf.c	echo '#include "hostapd.h"'			>> driver_conf.c	echo '#include "driver.h"'			>> driver_conf.cifdef CONFIG_DRIVER_HOSTAP	echo "void hostap_driver_register(void);"	>> driver_conf.cendififdef CONFIG_DRIVER_WIRED	echo "void wired_driver_register(void);"	>> driver_conf.cendififdef CONFIG_DRIVER_MADWIFI	echo "void madwifi_driver_register(void);"	>> driver_conf.cendififdef CONFIG_DRIVER_PRISM54	echo "void prism54_driver_register(void);"	>> driver_conf.cendififdef CONFIG_DRIVER_BSD	echo "void bsd_driver_register(void);"		>> driver_conf.cendififdef CONFIG_DRIVER_TEST	echo "void test_driver_register(void);"		>> driver_conf.cendif	echo 'void register_drivers(void) {'		>> driver_conf.cifdef CONFIG_DRIVER_HOSTAP	echo "hostap_driver_register();"		>> driver_conf.cendififdef CONFIG_DRIVER_WIRED	echo "wired_driver_register();"			>> driver_conf.cendififdef CONFIG_DRIVER_MADWIFI	echo "madwifi_driver_register();"		>> driver_conf.cendififdef CONFIG_DRIVER_PRISM54	echo "prism54_driver_register();"		>> driver_conf.cendififdef CONFIG_DRIVER_BSD	echo "bsd_driver_register();"			>> driver_conf.cendififdef CONFIG_DRIVER_TEST	echo "test_driver_register();"			>> driver_conf.cendif	echo '}'					>> driver_conf.chostapd_cli: hostapd_cli.o $(DIR_WPA_SUPPLICANT)/wpa_ctrl.o	$(CC) -o hostapd_cli hostapd_cli.o $(DIR_WPA_SUPPLICANT)/wpa_ctrl.oclean:	rm -f core *~ *.o hostapd hostapd_cli *.d driver_conf.c-include $(OBJS:%.o=%.d)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -