xref: /freebsd/sys/modules/rtwn_usb/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1193d9e76SEnji Cooper.PATH: ${SRCTOP}/sys/dev/rtwn/usb
27453645fSAndriy Voskoboinyk
3193d9e76SEnji CooperSYSDIR?=${SRCTOP}/sys
47453645fSAndriy Voskoboinyk.include "${SYSDIR}/conf/kern.opts.mk"
57453645fSAndriy Voskoboinyk
67453645fSAndriy VoskoboinykKMOD     = if_rtwn_usb
77453645fSAndriy VoskoboinykSRCS	 = rtwn_usb_attach.c rtwn_usb_ep.c rtwn_usb_reg.c rtwn_usb_rx.c \
87453645fSAndriy Voskoboinyk	   rtwn_usb_tx.c rtwn_usb_attach.h rtwn_usb_ep.h rtwn_usb_reg.h \
97453645fSAndriy Voskoboinyk	   rtwn_usb_rx.h rtwn_usb_tx.h rtwn_usb_var.h \
107453645fSAndriy Voskoboinyk	   bus_if.h device_if.h \
117453645fSAndriy Voskoboinyk	   opt_bus.h opt_rtwn.h opt_usb.h opt_wlan.h usb_if.h usbdevs.h
127453645fSAndriy Voskoboinyk
13193d9e76SEnji Cooper.PATH: ${SRCTOP}/sys/dev/rtwn/rtl8188e/usb
14*17d5fbf2SAndriy VoskoboinykSRCS	+= r88eu_attach.c r88eu_init.c \
157453645fSAndriy Voskoboinyk	   r88eu.h r88eu_reg.h
167453645fSAndriy Voskoboinyk
17193d9e76SEnji Cooper.PATH: ${SRCTOP}/sys/dev/rtwn/rtl8192c/usb
187453645fSAndriy VoskoboinykSRCS	+= r92cu_attach.c r92cu_init.c r92cu_led.c r92cu_rx.c r92cu_tx.c \
197453645fSAndriy Voskoboinyk	   r92cu.h r92cu_priv.h r92cu_reg.h r92cu_tx_desc.h
207453645fSAndriy Voskoboinyk
21193d9e76SEnji Cooper.PATH: ${SRCTOP}/sys/dev/rtwn/rtl8192e/usb
2260b9567dSKevin LoSRCS	+= r92eu_attach.c r92eu_init.c r92eu.h r92eu_reg.h
2360b9567dSKevin Lo
24193d9e76SEnji Cooper.PATH: ${SRCTOP}/sys/dev/rtwn/rtl8812a/usb
257453645fSAndriy VoskoboinykSRCS	+= r12au_attach.c r12au_init.c r12au_rx.c r12au_tx.c \
267453645fSAndriy Voskoboinyk	   r12au.h r12au_reg.h r12au_tx_desc.h
277453645fSAndriy Voskoboinyk
28193d9e76SEnji Cooper.PATH: ${SRCTOP}/sys/dev/rtwn/rtl8821a/usb
29b8ad00b0SAndriy VoskoboinykSRCS	+= r21au_attach.c r21au_init.c r21au_dfs.c \
307453645fSAndriy Voskoboinyk	   r21au.h r21au_reg.h
317453645fSAndriy Voskoboinyk
327453645fSAndriy Voskoboinykopt_rtwn.h:
337453645fSAndriy Voskoboinyk	@echo "#define RTWN_DEBUG 1" > ${.TARGET}
347453645fSAndriy Voskoboinyk.if ${MK_SOURCELESS_UCODE} == "no"
357453645fSAndriy Voskoboinyk	@echo "#define RTWN_WITHOUT_UCODE 1" >> ${.TARGET}
367453645fSAndriy Voskoboinyk.endif
377453645fSAndriy Voskoboinyk
387453645fSAndriy Voskoboinyk.include <bsd.kmod.mk>
39