Per email to arch@ a little while ago (that was greeted with silence),
prefer the more common > ${.TARGET} over > opt_foo.h in modules makefiles.
This commit is contained in:
parent
eaeb50d411
commit
9e51595ce6
@ -8,7 +8,7 @@ SRCS= aha.c aha_isa.c ahareg.h opt_cam.h device_if.h bus_if.h \
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_scsi.h:
|
||||
echo "#define SCSI_DELAY 15000" > opt_scsi.h
|
||||
echo "#define SCSI_DELAY 15000" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -3,12 +3,11 @@
|
||||
.PATH: ${.CURDIR}/../../dev/ahb
|
||||
|
||||
KMOD= ahb
|
||||
SRCS= ahb.c opt_cam.h device_if.h bus_if.h \
|
||||
eisa_if.h opt_scsi.h
|
||||
SRCS= ahb.c opt_cam.h device_if.h bus_if.h eisa_if.h opt_scsi.h
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_scsi.h:
|
||||
echo "#define SCSI_DELAY 15000" > opt_scsi.h
|
||||
echo "#define SCSI_DELAY 15000" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -9,7 +9,7 @@ SRCS+= pccarddevs.h
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_inet.h:
|
||||
echo "#define INET 1" > opt_inet.h
|
||||
echo "#define INET 1" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -10,7 +10,7 @@ NETGRAPH?= 0
|
||||
|
||||
.if ${NETGRAPH} != 0
|
||||
opt_netgraph.h:
|
||||
echo "#define NETGRAPH ${NETGRAPH}" > opt_netgraph.h
|
||||
echo "#define NETGRAPH ${NETGRAPH}" > ${.TARGET}
|
||||
.endif
|
||||
.endif
|
||||
|
||||
|
@ -61,8 +61,8 @@ opt_ah.h: ${HAL}/public/${ATH_MODULE_ARCH}-elf.opt_ah.h
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_wlan.h:
|
||||
# echo "#define IEEE80211_DEBUG 1" > opt_wlan.h
|
||||
echo > opt_wlan.h
|
||||
# echo "#define IEEE80211_DEBUG 1" > ${.TARGET}
|
||||
echo > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -61,8 +61,8 @@ opt_ah.h: ${HAL}/public/${ATH_MODULE_ARCH}-elf.opt_ah.h
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_wlan.h:
|
||||
echo "#define IEEE80211_DEBUG 1" > opt_wlan.h
|
||||
# echo > opt_wlan.h
|
||||
echo "#define IEEE80211_DEBUG 1" > ${.TARGET}
|
||||
# echo > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -61,8 +61,8 @@ opt_ah.h: ${HAL}/public/${ATH_MODULE_ARCH}-elf.opt_ah.h
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_wlan.h:
|
||||
# echo "#define IEEE80211_DEBUG 1" > opt_wlan.h
|
||||
echo > opt_wlan.h
|
||||
# echo "#define IEEE80211_DEBUG 1" > ${.TARGET}
|
||||
echo > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -16,12 +16,12 @@ CFLAGS+= ${PROTOS}
|
||||
|
||||
.if ${NETGRAPH} != 0
|
||||
opt_netgraph.h:
|
||||
echo "#define NETGRAPH ${NETGRAPH}" > opt_netgraph.h
|
||||
echo "#define NETGRAPH ${NETGRAPH}" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.if ${NG_CRONYX} != 0
|
||||
opt_ng_cronyx.h:
|
||||
echo "#define NETGRAPH_CRONYX 1" > opt_ng_cronyx.h
|
||||
echo "#define NETGRAPH_CRONYX 1" > ${.TARGET}
|
||||
.endif
|
||||
.endif
|
||||
|
||||
|
@ -16,12 +16,12 @@ CFLAGS+= ${PROTOS}
|
||||
|
||||
.if ${NETGRAPH} != 0
|
||||
opt_netgraph.h:
|
||||
echo "#define NETGRAPH ${NETGRAPH}" > opt_netgraph.h
|
||||
echo "#define NETGRAPH ${NETGRAPH}" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.if ${NG_CRONYX} != 0
|
||||
opt_ng_cronyx.h:
|
||||
echo "#define NETGRAPH_CRONYX 1" > opt_ng_cronyx.h
|
||||
echo "#define NETGRAPH_CRONYX 1" > ${.TARGET}
|
||||
.endif
|
||||
.endif
|
||||
|
||||
|
@ -15,12 +15,12 @@ CFLAGS+= ${PROTOS}
|
||||
|
||||
.if ${NETGRAPH} != 0
|
||||
opt_netgraph.h:
|
||||
echo "#define NETGRAPH $(NETGRAPH)" > opt_netgraph.h
|
||||
echo "#define NETGRAPH $(NETGRAPH)" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.if ${NG_CRONYX} != 0
|
||||
opt_ng_cronyx.h:
|
||||
echo "#define NETGRAPH_CRONYX 1" > opt_ng_cronyx.h
|
||||
echo "#define NETGRAPH_CRONYX 1" > ${.TARGET}
|
||||
.endif
|
||||
.endif
|
||||
|
||||
|
@ -15,12 +15,12 @@ CFLAGS+= ${PROTOS}
|
||||
|
||||
.if ${NETGRAPH} != 0
|
||||
opt_netgraph.h:
|
||||
echo "#define NETGRAPH $(NETGRAPH)" > opt_netgraph.h
|
||||
echo "#define NETGRAPH $(NETGRAPH)" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.if ${NG_CRONYX} != 0
|
||||
opt_ng_cronyx.h:
|
||||
echo "#define NETGRAPH_CRONYX 1" > opt_ng_cronyx.h
|
||||
echo "#define NETGRAPH_CRONYX 1" > ${.TARGET}
|
||||
.endif
|
||||
.endif
|
||||
|
||||
|
@ -9,8 +9,8 @@ SRCS+= opt_compat.h
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_compat.h:
|
||||
echo "#define COMPAT_43 1" > opt_compat.h
|
||||
echo "#define COMPAT_FREEBSD6 1" >> opt_compat.h
|
||||
echo "#define COMPAT_43 1" > ${.TARGET}
|
||||
echo "#define COMPAT_FREEBSD6 1" >> ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -11,10 +11,10 @@ SRCS= if_fatm.c device_if.h bus_if.h pci_if.h opt_inet.h opt_natm.h
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_inet.h:
|
||||
echo "#define INET 1" > opt_inet.h
|
||||
echo "#define INET 1" > ${.TARGET}
|
||||
|
||||
opt_natm.h:
|
||||
echo "#define NATM 1" > opt_natm.h
|
||||
echo "#define NATM 1" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -13,10 +13,10 @@ CFLAGS+= -DENABLE_BPF
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_inet.h:
|
||||
echo "#define INET 1" > opt_inet.h
|
||||
echo "#define INET 1" > ${.TARGET}
|
||||
|
||||
opt_natm.h:
|
||||
echo "#define NATM 1" > opt_natm.h
|
||||
echo "#define NATM 1" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -8,7 +8,7 @@ SRCS += opt_bus.h cryptodev_if.h
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_hifn.h:
|
||||
echo "#define HIFN_DEBUG 1" > opt_hifn.h
|
||||
echo "#define HIFN_DEBUG 1" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -12,7 +12,7 @@ opt_compat.h:
|
||||
echo "#define COMPAT_FREEBSD6 1" > ${.TARGET}
|
||||
|
||||
opt_inet.h:
|
||||
echo "#define INET 1" > opt_inet.h
|
||||
echo "#define INET 1" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -54,7 +54,7 @@ linux${SFX}_genassym.o: linux${SFX}_genassym.c linux.h @ machine
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_inet6.h:
|
||||
echo "#define INET6 1" > opt_inet6.h
|
||||
echo "#define INET6 1" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -1,13 +1,13 @@
|
||||
# $FreeBSD$
|
||||
|
||||
|
||||
.PATH: ${.CURDIR}/../../../dev/ar
|
||||
KMOD = ng_sync_ar
|
||||
SRCS = if_ar.c if_ar_isa.c if_ar_pci.c
|
||||
SRCS += device_if.h bus_if.h pci_if.h isa_if.h opt_netgraph.h
|
||||
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_netgraph.h:
|
||||
echo "#define NETGRAPH" > opt_netgraph.h
|
||||
echo "#define NETGRAPH" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -1,13 +1,13 @@
|
||||
# $FreeBSD$
|
||||
|
||||
|
||||
.PATH: ${.CURDIR}/../../../dev/sr
|
||||
KMOD = ng_sync_sr
|
||||
SRCS = if_sr.c if_sr_isa.c if_sr_pci.c
|
||||
SRCS += device_if.h bus_if.h pci_if.h isa_if.h opt_netgraph.h
|
||||
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_netgraph.h:
|
||||
echo "#define NETGRAPH" > opt_netgraph.h
|
||||
echo "#define NETGRAPH" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -14,10 +14,10 @@ CFLAGS+= -DENABLE_BPF
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_inet.h:
|
||||
echo "#define INET 1" > opt_inet.h
|
||||
echo "#define INET 1" > ${.TARGET}
|
||||
|
||||
opt_natm.h:
|
||||
echo "#define NATM 1" > opt_natm.h
|
||||
echo "#define NATM 1" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -15,20 +15,20 @@ CFLAGS+= -I${.CURDIR}/../../contrib/pf
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_inet.h:
|
||||
echo "#define INET 1" > opt_inet.h
|
||||
echo "#define INET 1" > ${.TARGET}
|
||||
|
||||
.if ${MK_INET6_SUPPORT} != "no"
|
||||
opt_inet6.h:
|
||||
echo "#define INET6 1" > opt_inet6.h
|
||||
echo "#define INET6 1" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
opt_bpf.h:
|
||||
echo "#define DEV_BPF 1" > opt_bpf.h
|
||||
echo "#define DEV_BPF 1" > ${.TARGET}
|
||||
|
||||
# pflog can be loaded as a module, have the additional checks turned on
|
||||
opt_pf.h:
|
||||
echo "#define DEV_PF 1" > opt_pf.h
|
||||
echo "#define DEF_PFLOG 1" >> opt_pf.h
|
||||
echo "#define DEV_PF 1" > ${.TARGET}
|
||||
echo "#define DEF_PFLOG 1" >> ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -12,15 +12,15 @@ CFLAGS+= -I${.CURDIR}/../../contrib/pf
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_inet.h:
|
||||
echo "#define INET 1" > opt_inet.h
|
||||
echo "#define INET 1" > ${.TARGET}
|
||||
|
||||
.if ${MK_INET6_SUPPORT} != "no"
|
||||
opt_inet6.h:
|
||||
echo "#define INET6 1" > opt_inet6.h
|
||||
echo "#define INET6 1" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
opt_bpf.h:
|
||||
echo "#define DEV_BPF 1" > opt_bpf.h
|
||||
echo "#define DEV_BPF 1" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -7,7 +7,7 @@ SRCS= rp.c rp_pci.c device_if.h bus_if.h pci_if.h opt_compat.h
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_compat.h:
|
||||
echo "#define COMPAT_43 1" > opt_compat.h
|
||||
echo "#define COMPAT_43 1" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -34,7 +34,7 @@ SRCS += opt_bus.h cryptodev_if.h
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_safe.h:
|
||||
echo "#define SAFE_DEBUG 1" > opt_safe.h
|
||||
echo "#define SAFE_DEBUG 1" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -17,13 +17,13 @@ EXPORT_SYMS= sppp_attach \
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_inet.h:
|
||||
echo "#define INET 1" > opt_inet.h
|
||||
echo "#define INET 1" > ${.TARGET}
|
||||
|
||||
opt_inet6.h:
|
||||
echo "#define INET6 1" > opt_inet6.h
|
||||
echo "#define INET6 1" > ${.TARGET}
|
||||
|
||||
opt_ipx.h:
|
||||
echo "#define IPX 1" > opt_ipx.h
|
||||
echo "#define IPX 1" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -10,7 +10,7 @@ NETGRAPH?= 0
|
||||
|
||||
.if ${NETGRAPH} != 0
|
||||
opt_netgraph.h:
|
||||
echo "#define NETGRAPH ${NETGRAPH}" > opt_netgraph.h
|
||||
echo "#define NETGRAPH ${NETGRAPH}" > ${.TARGET}
|
||||
.endif
|
||||
.endif
|
||||
|
||||
|
@ -26,11 +26,11 @@ svr4_genassym.o: svr4_genassym.c svr4.h @ machine
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_compat.h:
|
||||
echo "#define COMPAT_43 1" > opt_compat.h
|
||||
echo "#define COMPAT_43 1" > ${.TARGET}
|
||||
|
||||
.if defined(DEBUG)
|
||||
opt_svr4.h:
|
||||
echo "#define DEBUG_SVR4 1" > opt_svr4.h
|
||||
echo "#define DEBUG_SVR4 1" > ${.TARGET}
|
||||
.endif
|
||||
.endif
|
||||
|
||||
|
@ -8,7 +8,7 @@ SRCS= trm.c trm.h opt_cam.h device_if.h bus_if.h \
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_scsi.h:
|
||||
echo "#define SCSI_DELAY 15000" > opt_scsi.h
|
||||
echo "#define SCSI_DELAY 15000" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -8,7 +8,7 @@ SRCS += opt_bus.h cryptodev_if.h
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_ubsec.h:
|
||||
echo "#define UBSEC_DEBUG 1" > opt_ubsec.h
|
||||
echo "#define UBSEC_DEBUG 1" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -14,14 +14,14 @@ SRCS+= bus_if.h device_if.h opt_inet.h opt_ipx.h opt_wlan.h
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_wlan.h:
|
||||
echo "#define IEEE80211_DEBUG 1" > opt_wlan.h
|
||||
echo "#define IEEE80211_AMDPU_AGE 1" >> opt_wlan.h
|
||||
echo "#define IEEE80211_DEBUG 1" > ${.TARGET}
|
||||
echo "#define IEEE80211_AMDPU_AGE 1" >> ${.TARGET}
|
||||
|
||||
opt_inet.h:
|
||||
echo "#define INET 1" > opt_inet.h
|
||||
echo "#define INET 1" > ${.TARGET}
|
||||
|
||||
opt_ipx.h:
|
||||
echo "#define IPX 1" > opt_ipx.h
|
||||
echo "#define IPX 1" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -8,7 +8,7 @@ SRCS+= opt_wlan.h
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_wlan.h:
|
||||
echo "#define IEEE80211_DEBUG 1" > opt_wlan.h
|
||||
echo "#define IEEE80211_DEBUG 1" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -8,7 +8,7 @@ SRCS+= opt_wlan.h
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_wlan.h:
|
||||
echo "#define IEEE80211_DEBUG 1" > opt_wlan.h
|
||||
echo "#define IEEE80211_DEBUG 1" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -10,7 +10,7 @@ SRCS+= opt_wlan.h
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_wlan.h:
|
||||
echo "#define IEEE80211_DEBUG 1" > opt_wlan.h
|
||||
echo "#define IEEE80211_DEBUG 1" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -8,7 +8,7 @@ SRCS+= opt_wlan.h
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_wlan.h:
|
||||
echo "#define IEEE80211_DEBUG 1" > opt_wlan.h
|
||||
echo "#define IEEE80211_DEBUG 1" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -8,7 +8,7 @@ SRCS+= opt_wlan.h
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_wlan.h:
|
||||
echo "#define IEEE80211_DEBUG 1" > opt_wlan.h
|
||||
echo "#define IEEE80211_DEBUG 1" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -8,7 +8,7 @@ SRCS+= opt_wlan.h
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_wlan.h:
|
||||
echo "#define IEEE80211_DEBUG 1" > opt_wlan.h
|
||||
echo "#define IEEE80211_DEBUG 1" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -8,7 +8,7 @@ SRCS+= opt_wlan.h
|
||||
|
||||
.if !defined(KERNBUILDDIR)
|
||||
opt_wlan.h:
|
||||
echo "#define IEEE80211_DEBUG 1" > opt_wlan.h
|
||||
echo "#define IEEE80211_DEBUG 1" > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
Loading…
x
Reference in New Issue
Block a user