diff --git a/sys/modules/i2c/controllers/pcf/Makefile b/sys/modules/i2c/controllers/pcf/Makefile index 7227bec2e5cb..4714cfd9c1c2 100644 --- a/sys/modules/i2c/controllers/pcf/Makefile +++ b/sys/modules/i2c/controllers/pcf/Makefile @@ -1,17 +1,20 @@ # $FreeBSD$ -.PATH: ${.CURDIR}/../../../../dev/pcf -KMOD = pcf -SRCS = device_if.h bus_if.h iicbus_if.h isa_if.h \ - pcf.c +.PATH: ${.CURDIR}/../../../../dev/pcf -.if ${MACHINE_ARCH} != "sparc64" -SRCS += pcf_isa.c +KMOD= pcf +SRCS= ${envctrl} pcf.c ${pcf_ebus} ${pcf_isa} +SRCS+= bus_if.h device_if.h iicbus_if.h ${isa_if} ${ofw_bus_if} + +.if ${MACHINE_ARCH} == "i386" +isa_if= isa_if.h +pcf_isa= pcf_isa.c .endif .if ${MACHINE_ARCH} == "sparc64" -SRCS += envctrl.c -SRCS += pcf_ebus.c +envctrl= envctrl.c +ofw_bus_if= ofw_bus_if.h +pcf_ebus= pcf_ebus.c .endif .include