summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/modules/i2c/controllers/pcf/Makefile19
1 files changed, 11 insertions, 8 deletions
diff --git a/sys/modules/i2c/controllers/pcf/Makefile b/sys/modules/i2c/controllers/pcf/Makefile
index 7227bec..4714cfd 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 <bsd.kmod.mk>
OpenPOWER on IntegriCloud