]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/bwn/Makefile
Merge bmake-20161212
[FreeBSD/FreeBSD.git] / sys / modules / bwn / Makefile
1 # $FreeBSD$
2
3 .PATH: ${.CURDIR}/../../dev/bwn
4
5 KMOD=   if_bwn
6 SRCS=   if_bwn.c if_bwnreg.h if_bwnvar.h
7 SRCS+=  if_bwn_util.c
8
9 # PHY
10 SRCS+=  if_bwn_phy_common.c
11 SRCS+=  if_bwn_phy_g.c if_bwn_phy_lp.c
12 SRCS+=  if_bwn_phy_n.c
13
14 # Other
15 SRCS+=  device_if.h bus_if.h pci_if.h opt_bwn.h opt_wlan.h
16
17 # The following need the BWN_GPL_PHY kenrel option to opt-in
18 # to the GPL'd 802.11n PHY support for this driver.
19 .PATH: ${.CURDIR}/../../gnu/dev/bwn/phy_n
20 SRCS.BWN_GPL_PHY+=  if_bwn_radio_2055.c
21 SRCS.BWN_GPL_PHY+=  if_bwn_radio_2056.c
22 SRCS.BWN_GPL_PHY+=  if_bwn_radio_2057.c
23 SRCS.BWN_GPL_PHY+=  if_bwn_phy_n_tables.c
24 SRCS.BWN_GPL_PHY+=  if_bwn_phy_n_ppr.c
25 SRCS.BWN_GPL_PHY+=  if_bwn_phy_n_core.c
26
27 .include <bsd.kmod.mk>
28
29 # XXX Work around clang warnings, until maintainer approves fix.
30 CWARNFLAGS.if_bwn.c=    ${NO_WSOMETIMES_UNINITIALIZED}
31 CWARNFLAGS.if_bwn_phy_g.c=      ${NO_WSOMETIMES_UNINITIALIZED} ${NO_WCONSTANT_CONVERSION}
32 CWARNFLAGS.if_bwn_phy_lp.c=     ${NO_WSOMETIMES_UNINITIALIZED}