mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-31 12:56:10 +01:00
r314651: sys/modules: normalize .CURDIR-relative paths to SRCTOP This simplifies make output/logic Tested with: `cd sys/modules; make ALL_MODULES=` on amd64 r318439: Normalize .PATH on SRCTOP This will help Jenkins dedupe 9 warnings between the static build and the module build of ipsec(4). Missed in SRCTOP conversion in r314651. MFC with: r314651 r318440: Normalize SYSDIR on SRCTOP instead of .CURDIR This is being done to simplify pathing for CFLAGS and source files.
30 lines
600 B
Makefile
30 lines
600 B
Makefile
# $FreeBSD$
|
|
|
|
.if ${MACHINE} == "pc98"
|
|
.PATH: ${SRCTOP}/sys/pc98/cbus
|
|
.endif
|
|
.PATH: ${SRCTOP}/sys/dev/sio
|
|
|
|
KMOD= sio
|
|
SRCS= bus_if.h card_if.h device_if.h isa_if.h pci_if.h serdev_if.h \
|
|
opt_compat.h opt_gdb.h opt_kdb.h opt_sio.h \
|
|
sio.c sio_pccard.c sio_pci.c sio_puc.c pccarddevs.h
|
|
.if ${MACHINE} == "pc98"
|
|
SRCS+= sio_cbus.c
|
|
.else
|
|
SRCS+= sio_isa.c
|
|
.endif
|
|
|
|
.if !defined(KERNBUILDDIR)
|
|
opt_compat.h:
|
|
echo "#define COMPAT_43 1" > ${.TARGET}
|
|
|
|
.if ${MACHINE} == "pc98"
|
|
opt_sio.h:
|
|
echo "#define COM_MULTIPORT 1" > ${.TARGET}
|
|
echo "#define COM_ESP 1" >> ${.TARGET}
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.kmod.mk>
|