178 lines
4.2 KiB
Makefile
178 lines
4.2 KiB
Makefile
|
##### COMMON DRIVERS
|
||
|
|
||
|
ifdef CONFIG_DRIVER_HOSTAP
|
||
|
DRV_CFLAGS += -DCONFIG_DRIVER_HOSTAP
|
||
|
DRV_OBJS += ../src/drivers/driver_hostap.o
|
||
|
CONFIG_WIRELESS_EXTENSION=y
|
||
|
NEED_AP_MLME=y
|
||
|
endif
|
||
|
|
||
|
ifdef CONFIG_DRIVER_WIRED
|
||
|
DRV_CFLAGS += -DCONFIG_DRIVER_WIRED
|
||
|
DRV_OBJS += ../src/drivers/driver_wired.o
|
||
|
endif
|
||
|
|
||
|
ifdef CONFIG_DRIVER_MADWIFI
|
||
|
DRV_CFLAGS += -DCONFIG_DRIVER_MADWIFI
|
||
|
DRV_OBJS += ../src/drivers/driver_madwifi.o
|
||
|
CONFIG_WIRELESS_EXTENSION=y
|
||
|
CONFIG_L2_PACKET=linux
|
||
|
endif
|
||
|
|
||
|
ifdef CONFIG_DRIVER_PRISM54
|
||
|
DRV_CFLAGS += -DCONFIG_DRIVER_PRISM54
|
||
|
DRV_OBJS += ../src/drivers/driver_prism54.o
|
||
|
CONFIG_WIRELESS_EXTENSION=y
|
||
|
endif
|
||
|
|
||
|
ifdef CONFIG_DRIVER_NL80211
|
||
|
DRV_CFLAGS += -DCONFIG_DRIVER_NL80211
|
||
|
DRV_OBJS += ../src/drivers/driver_nl80211.o
|
||
|
|
||
|
ifdef CONFIG_CLIENT_MLME
|
||
|
DRV_OBJS += ../src/utils/radiotap.o
|
||
|
else
|
||
|
DRV_AP_OBJS += ../src/utils/radiotap.o
|
||
|
endif
|
||
|
NEED_SME=y
|
||
|
NEED_AP_MLME=y
|
||
|
DRV_LIBS += -lnl
|
||
|
|
||
|
ifdef CONFIG_LIBNL20
|
||
|
DRV_LIBS += -lnl-genl
|
||
|
DRV_CFLAGS += -DCONFIG_LIBNL20
|
||
|
endif
|
||
|
endif
|
||
|
|
||
|
ifdef CONFIG_DRIVER_BSD
|
||
|
ifndef CONFIG_L2_PACKET
|
||
|
CONFIG_L2_PACKET=freebsd
|
||
|
endif
|
||
|
DRV_CFLAGS += -DCONFIG_DRIVER_BSD
|
||
|
DRV_OBJS += ../src/drivers/driver_bsd.o
|
||
|
CONFIG_L2_FREEBSD=y
|
||
|
CONFIG_DNET_PCAP=y
|
||
|
endif
|
||
|
|
||
|
ifdef CONFIG_DRIVER_TEST
|
||
|
DRV_CFLAGS += -DCONFIG_DRIVER_TEST
|
||
|
DRV_OBJS += ../src/drivers/driver_test.o
|
||
|
NEED_AP_MLME=y
|
||
|
endif
|
||
|
|
||
|
##### PURE AP DRIVERS
|
||
|
|
||
|
ifdef CONFIG_DRIVER_ATHEROS
|
||
|
DRV_AP_CFLAGS += -DCONFIG_DRIVER_ATHEROS
|
||
|
DRV_AP_OBJS += ../src/drivers/driver_atheros.o
|
||
|
CONFIG_L2_PACKET=linux
|
||
|
endif
|
||
|
|
||
|
ifdef CONFIG_DRIVER_NONE
|
||
|
DRV_AP_CFLAGS += -DCONFIG_DRIVER_NONE
|
||
|
DRV_AP_OBJS += ../src/drivers/driver_none.o
|
||
|
endif
|
||
|
|
||
|
##### PURE CLIENT DRIVERS
|
||
|
|
||
|
ifdef CONFIG_DRIVER_WEXT
|
||
|
DRV_WPA_CFLAGS += -DCONFIG_DRIVER_WEXT
|
||
|
CONFIG_WIRELESS_EXTENSION=y
|
||
|
endif
|
||
|
|
||
|
ifdef CONFIG_DRIVER_HERMES
|
||
|
DRV_WPA_CFLAGS += -DCONFIG_DRIVER_HERMES
|
||
|
DRV_WPA_OBJS += ../src/drivers/driver_hermes.o
|
||
|
CONFIG_WIRELESS_EXTENSION=y
|
||
|
endif
|
||
|
|
||
|
ifdef CONFIG_DRIVER_ATMEL
|
||
|
DRV_WPA_CFLAGS += -DCONFIG_DRIVER_ATMEL
|
||
|
DRV_WPA_OBJS += ../src/drivers/driver_atmel.o
|
||
|
CONFIG_WIRELESS_EXTENSION=y
|
||
|
endif
|
||
|
|
||
|
ifdef CONFIG_DRIVER_NDISWRAPPER
|
||
|
DRV_WPA_CFLAGS += -DCONFIG_DRIVER_NDISWRAPPER
|
||
|
DRV_WPA_OBJS += ../src/drivers/driver_ndiswrapper.o
|
||
|
CONFIG_WIRELESS_EXTENSION=y
|
||
|
endif
|
||
|
|
||
|
ifdef CONFIG_DRIVER_RALINK
|
||
|
DRV_WPA_CFLAGS += -DCONFIG_DRIVER_RALINK
|
||
|
DRV_WPA_OBJS += ../src/drivers/driver_ralink.o
|
||
|
endif
|
||
|
|
||
|
ifdef CONFIG_DRIVER_BROADCOM
|
||
|
DRV_WPA_CFLAGS += -DCONFIG_DRIVER_BROADCOM
|
||
|
DRV_WPA_OBJS += ../src/drivers/driver_broadcom.o
|
||
|
endif
|
||
|
|
||
|
ifdef CONFIG_DRIVER_IPW
|
||
|
DRV_WPA_CFLAGS += -DCONFIG_DRIVER_IPW
|
||
|
DRV_WPA_OBJS += ../src/drivers/driver_ipw.o
|
||
|
CONFIG_WIRELESS_EXTENSION=y
|
||
|
endif
|
||
|
|
||
|
ifdef CONFIG_DRIVER_NDIS
|
||
|
DRV_WPA_CFLAGS += -DCONFIG_DRIVER_NDIS
|
||
|
DRV_WPA_OBJS += ../src/drivers/driver_ndis.o
|
||
|
ifdef CONFIG_NDIS_EVENTS_INTEGRATED
|
||
|
DRV_WPA_OBJS += ../src/drivers/driver_ndis_.o
|
||
|
endif
|
||
|
ifndef CONFIG_L2_PACKET
|
||
|
CONFIG_L2_PACKET=pcap
|
||
|
endif
|
||
|
CONFIG_WINPCAP=y
|
||
|
ifdef CONFIG_USE_NDISUIO
|
||
|
DRV_WPA_CFLAGS += -DCONFIG_USE_NDISUIO
|
||
|
endif
|
||
|
endif
|
||
|
|
||
|
ifdef CONFIG_DRIVER_OSX
|
||
|
DRV_WPA_CFLAGS += -DCONFIG_DRIVER_OSX
|
||
|
DRV_WPA_OBJS += ../src/drivers/driver_osx.o
|
||
|
DRV_WPA_LDFLAGS += -framework CoreFoundation
|
||
|
DRV_WPA_LDFLAGS += -F/System/Library/PrivateFrameworks -framework Apple80211
|
||
|
endif
|
||
|
|
||
|
ifdef CONFIG_DRIVER_PS3
|
||
|
DRV_WPA_CFLAGS += -DCONFIG_DRIVER_PS3 -m64
|
||
|
DRV_WPA_OBJS += ../src/drivers/driver_ps3.o
|
||
|
DRV_WPA_LDFLAGS += -m64
|
||
|
endif
|
||
|
|
||
|
ifdef CONFIG_DRIVER_IPHONE
|
||
|
DRV_WPA_CFLAGS += -DCONFIG_DRIVER_IPHONE
|
||
|
DRV_WPA_OBJS += ../src/drivers/driver_iphone.o
|
||
|
DRV_WPA_OBJS += ../src/drivers/MobileApple80211.o
|
||
|
DRV_WPA_LDFLAGS += -framework CoreFoundation
|
||
|
endif
|
||
|
|
||
|
ifdef CONFIG_DRIVER_ROBOSWITCH
|
||
|
DRV_WPA_CFLAGS += -DCONFIG_DRIVER_ROBOSWITCH
|
||
|
DRV_WPA_OBJS += ../src/drivers/driver_roboswitch.o
|
||
|
endif
|
||
|
|
||
|
ifdef CONFIG_WIRELESS_EXTENSION
|
||
|
DRV_WPA_CFLAGS += -DCONFIG_WIRELESS_EXTENSION
|
||
|
DRV_WPA_OBJS += ../src/drivers/driver_wext.o
|
||
|
endif
|
||
|
|
||
|
##### COMMON VARS
|
||
|
DRV_BOTH_CFLAGS := $(DRV_CFLAGS) $(DRV_WPA_CFLAGS) $(DRV_AP_CFLAGS)
|
||
|
DRV_WPA_CFLAGS += $(DRV_CFLAGS)
|
||
|
DRV_AP_CFLAGS += $(DRV_CFLAGS)
|
||
|
|
||
|
DRV_BOTH_LIBS := $(DRV_LIBS) $(DRV_WPA_LIBS) $(DRV_AP_LIBS)
|
||
|
DRV_WPA_LIBS += $(DRV_LIBS)
|
||
|
DRV_AP_LIBS += $(DRV_LIBS)
|
||
|
|
||
|
DRV_BOTH_OBJS := $(DRV_OBJS) $(DRV_WPA_OBJS) $(DRV_AP_OBJS)
|
||
|
DRV_WPA_OBJS += $(DRV_OBJS)
|
||
|
DRV_AP_OBJS += $(DRV_OBJS)
|
||
|
|
||
|
DRV_BOTH_LDFLAGS := $(DRV_LDFLAGS) $(DRV_WPA_LDFLAGS) $(DRV_AP_LDFLAGS)
|
||
|
DRV_WPA_LDFLAGS += $(DRV_LDFLAGS)
|
||
|
DRV_AP_LDFLAGS += $(DRV_LDFLAGS)
|