]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/modules/cxgb/cxgb/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sys / modules / cxgb / cxgb / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 CXGB = ${.CURDIR}/../../../dev/cxgb
6 .PATH: ${CXGB} ${CXGB}/common ${CXGB}/sys
7
8 KMOD=   if_cxgb
9 SRCS=   cxgb_mc5.c cxgb_vsc8211.c cxgb_ael1002.c cxgb_mv88e1xxx.c 
10 SRCS+=  cxgb_xgmac.c cxgb_vsc7323.c cxgb_t3_hw.c cxgb_main.c cxgb_aq100x.c
11 SRCS+=  cxgb_sge.c cxgb_tn1010.c
12 SRCS+=  device_if.h bus_if.h pci_if.h
13 SRCS+=  opt_inet.h opt_inet6.h opt_sched.h
14 SRCS+=  uipc_mvec.c
15
16 CFLAGS+= -g -DDEFAULT_JUMBO -I${CXGB}
17
18 .if !defined(KERNBUILDDIR)
19 .if ${MK_INET_SUPPORT} != "no"
20 opt_inet.h:
21         @echo "#define INET 1" > ${.TARGET}
22         @echo "#define TCP_OFFLOAD 1" >> ${.TARGET}
23 .endif
24
25 .if ${MK_INET6_SUPPORT} != "no"
26 opt_inet6.h:
27         @echo "#define INET6 1" > ${.TARGET}
28 .endif
29 .endif
30
31 .include <bsd.kmod.mk>