Improve compliance with style.Makefile(5).

MFC after:	2 weeks
This commit is contained in:
np 2014-08-01 01:30:16 +00:00
parent e4342e8209
commit a2ddf5904e
6 changed files with 41 additions and 40 deletions

View File

@ -4,21 +4,21 @@
.include <src.opts.mk>
SUBDIR = if_cxgbe
SUBDIR+= t4_firmware
SUBDIR+= t5_firmware
SUBDIR+= ${_tom}
SUBDIR+= ${_iw_cxgbe}
SUBDIR= if_cxgbe
SUBDIR+= t4_firmware
SUBDIR+= t5_firmware
SUBDIR+= ${_tom}
SUBDIR+= ${_iw_cxgbe}
.if ${MACHINE_CPUARCH} == "amd64"
_tom= tom
_tom= tom
.if ${MK_OFED} != "no" || defined(ALL_MODULES)
_iw_cxgbe= iw_cxgbe
.endif
.endif
.if ${MACHINE_CPUARCH} == "i386"
_tom= tom
_tom= tom
.endif
.include <bsd.subdir.mk>

View File

@ -4,21 +4,22 @@
.include <src.opts.mk>
CXGBE = ${.CURDIR}/../../../dev/cxgbe
CXGBE= ${.CURDIR}/../../../dev/cxgbe
.PATH: ${CXGBE} ${CXGBE}/common
KMOD = if_cxgbe
SRCS = t4_main.c t4_sge.c t4_l2t.c t4_tracer.c t4_netmap.c
SRCS+= t4_hw.c
SRCS+= device_if.h bus_if.h pci_if.h
SRCS+= opt_inet.h opt_inet6.h
SRCS+= opt_ofed.h
CFLAGS+= -I${CXGBE}
KMOD= if_cxgbe
SRCS= t4_main.c t4_sge.c t4_l2t.c t4_tracer.c t4_netmap.c
SRCS+= t4_hw.c
SRCS+= device_if.h bus_if.h pci_if.h
SRCS+= opt_inet.h opt_inet6.h
SRCS+= opt_ofed.h
# Provide the timestamp of a packet in its header mbuf.
#CFLAGS+= -DT4_PKT_TIMESTAMP
CFLAGS+= -I${CXGBE}
.if !defined(KERNBUILDDIR)
.if ${MK_INET_SUPPORT} != "no"
opt_inet.h:

View File

@ -2,13 +2,13 @@
.include <src.opts.mk>
CXGBE = ${.CURDIR}/../../../dev/cxgbe
CXGBE= ${.CURDIR}/../../../dev/cxgbe
.PATH: ${CXGBE}/iw_cxgbe
KMOD= iw_cxgbe
SRCS= device.c cm.c provider.c mem.c cq.c qp.c resource.c ev.c id_table.c
SRCS+= bus_if.h device_if.h opt_sched.h pci_if.h pcib_if.h opt_ktr.h
SRCS+= opt_inet.h opt_ofed.h vnode_if.h
KMOD= iw_cxgbe
SRCS= device.c cm.c provider.c mem.c cq.c qp.c resource.c ev.c id_table.c
SRCS+= bus_if.h device_if.h opt_sched.h pci_if.h pcib_if.h opt_ktr.h
SRCS+= opt_inet.h opt_ofed.h vnode_if.h
CFLAGS+= -I${CXGBE} -I${.CURDIR}/../../../ofed/include -DLINUX_TYPES_DEFINED
.if !defined(KERNBUILDDIR)

View File

@ -2,24 +2,24 @@
# $FreeBSD$
#
T4FW = ${.CURDIR}/../../../dev/cxgbe/firmware
T4FW= ${.CURDIR}/../../../dev/cxgbe/firmware
.PATH: ${T4FW}
KMOD = t4fw_cfg
FIRMWS = ${KMOD}.txt:${KMOD}:1.0.0.0
KMOD= t4fw_cfg
FIRMWS= ${KMOD}.txt:${KMOD}:1.0.0.0
# You can have additional configuration files in the ${T4FW} directory.
# t4fw_cfg_<name>.txt
CFG_FILES != cd ${T4FW} && echo ${KMOD}_*.txt
.for F in ${CFG_FILES}
.if exists(${F})
FIRMWS += ${F}:${F:C/.txt//}:1.0.0.0
FIRMWS+= ${F}:${F:C/.txt//}:1.0.0.0
.endif
.endfor
T4FW_VER = 1.11.27.0
FIRMWS += t4fw.fw:t4fw:${T4FW_VER}
CLEANFILES += t4fw.fw
T4FW_VER= 1.11.27.0
FIRMWS+= t4fw.fw:t4fw:${T4FW_VER}
CLEANFILES+= t4fw.fw
t4fw.fw: t4fw-${T4FW_VER}.bin.uu
uudecode -o ${.TARGET} ${.ALLSRC}

View File

@ -2,24 +2,24 @@
# $FreeBSD$
#
T5FW = ${.CURDIR}/../../../dev/cxgbe/firmware
T5FW= ${.CURDIR}/../../../dev/cxgbe/firmware
.PATH: ${T5FW}
KMOD = t5fw_cfg
FIRMWS = ${KMOD}.txt:${KMOD}:1.0.0.0
KMOD= t5fw_cfg
FIRMWS= ${KMOD}.txt:${KMOD}:1.0.0.0
# You can have additional configuration files in the ${T5FW} directory.
# t5fw_cfg_<name>.txt
CFG_FILES != cd ${T5FW} && echo ${KMOD}_*.txt
.for F in ${CFG_FILES}
.if exists(${F})
FIRMWS += ${F}:${F:C/.txt//}:1.0.0.0
FIRMWS+= ${F}:${F:C/.txt//}:1.0.0.0
.endif
.endfor
T5FW_VER = 1.11.27.0
FIRMWS += t5fw.fw:t5fw:${T5FW_VER}
CLEANFILES += t5fw.fw
T5FW_VER= 1.11.27.0
FIRMWS+= t5fw.fw:t5fw:${T5FW_VER}
CLEANFILES+= t5fw.fw
t5fw.fw: t5fw-${T5FW_VER}.bin.uu
uudecode -o ${.TARGET} ${.ALLSRC}

View File

@ -4,13 +4,13 @@
.include <src.opts.mk>
CXGBE = ${.CURDIR}/../../../dev/cxgbe
CXGBE= ${.CURDIR}/../../../dev/cxgbe
.PATH: ${CXGBE}/tom
KMOD = t4_tom
SRCS = t4_tom.c t4_connect.c t4_listen.c t4_cpl_io.c t4_tom_l2t.c t4_ddp.c
SRCS+= device_if.h bus_if.h pci_if.h
SRCS+= opt_inet.h opt_inet6.h
KMOD= t4_tom
SRCS= t4_tom.c t4_connect.c t4_listen.c t4_cpl_io.c t4_tom_l2t.c t4_ddp.c
SRCS+= device_if.h bus_if.h pci_if.h
SRCS+= opt_inet.h opt_inet6.h
CFLAGS+= -I${CXGBE}