xref: /freebsd/sys/modules/rtwn/Makefile (revision 12af59c2cf8dbede2c1386c4744e725b1e1f8bd9)
1# $FreeBSD$
2
3.PATH: ${SRCTOP}/sys/dev/rtwn
4
5SYSDIR?=${SRCTOP}/sys
6.include "${SYSDIR}/conf/kern.opts.mk"
7
8KMOD     = rtwn
9SRCS     = if_rtwn.c if_rtwn_tx.c if_rtwn_rx.c if_rtwn_beacon.c \
10	   if_rtwn_calib.c if_rtwn_cam.c if_rtwn_task.c if_rtwn_efuse.c \
11	   if_rtwn_fw.c if_rtwn_nop.h if_rtwnreg.h if_rtwnvar.h if_rtwn_tx.h \
12	   if_rtwn_rx.h if_rtwn_beacon.h if_rtwn_calib.h if_rtwn_cam.h \
13	   if_rtwn_task.h if_rtwn_efuse.h if_rtwn_fw.h \
14	   bus_if.h device_if.h \
15	   opt_bus.h opt_rtwn.h opt_wlan.h
16
17.PATH:	   ${SRCTOP}/sys/dev/rtwn/rtl8192c
18SRCS	+= r92c_attach.c r92c_beacon.c r92c_calib.c r92c_chan.c r92c_fw.c \
19	   r92c_init.c r92c_llt.c r92c_rf.c r92c_rom.c r92c_rx.c r92c_tx.c \
20	   r92c.h r92c_priv.h r92c_reg.h r92c_var.h r92c_rom_defs.h \
21	   r92c_rom_image.h r92c_fw_cmd.h r92c_rx_desc.h r92c_tx_desc.h
22
23.PATH:	   ${SRCTOP}/sys/dev/rtwn/rtl8188e
24SRCS	+= r88e_beacon.c r88e_calib.c r88e_chan.c r88e_fw.c r88e_init.c \
25	   r88e_led.c r88e_rf.c r88e_rom.c r88e_rx.c r88e_tx.c r88e.h \
26	   r88e_priv.h r88e_reg.h r88e_rom_defs.h r88e_rom_image.h \
27	   r88e_fw_cmd.h r88e_rx_desc.h r88e_tx_desc.h
28
29.PATH:	   ${SRCTOP}/sys/dev/rtwn/rtl8192e
30SRCS	+= r92e_chan.c r92e_fw.c r92e_init.c r92e_led.c r92e_rf.c \
31	   r92e_rom.c r92e_rx.c r92e.h r92e_priv.h r92e_reg.h \
32	   r92e_rom_image.h r92e_rom_defs.h
33
34.PATH:	   ${SRCTOP}/sys/dev/rtwn/rtl8812a
35SRCS	+= r12a_beacon.c r12a_calib.c r12a_caps.c r12a_chan.c r12a_fw.c \
36	   r12a_init.c r12a_led.c r12a_rf.c r12a_rom.c r12a_rx.c r12a_tx.c \
37	   r12a.h r12a_priv.h r12a_reg.h r12a_var.h r12a_rom_defs.h \
38	   r12a_rom_image.h r12a_fw_cmd.h r12a_rx_desc.h r12a_tx_desc.h
39
40.PATH:	   ${SRCTOP}/sys/dev/rtwn/rtl8821a
41SRCS	+= r21a_beacon.c r21a_calib.c r21a_chan.c r21a_fw.c r21a_init.c \
42	   r21a_led.c r21a_rom.c r21a_rx.c r21a.h r21a_priv.h r21a_reg.h
43
44opt_rtwn.h:
45	@echo "#define RTWN_DEBUG 1" > ${.TARGET}
46.if ${MK_SOURCELESS_UCODE} == "no"
47	@echo "#define RTWN_WITHOUT_UCODE 1" >> ${.TARGET}
48.endif
49
50EXPORT_SYMS=	YES
51
52.include <bsd.kmod.mk>
53