1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

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:
Warner Losh 2008-09-01 23:59:00 +00:00
parent eaeb50d411
commit 9e51595ce6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182668
37 changed files with 65 additions and 66 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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

View File

@ -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

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>