c09808d0d6
Use MACHINE_CPUARCH in preference to MACHINE_ARCH. The former is the source code location of the machine, the latter the binary output. In general, we want to use MACHINE_CPUARCH instead of MACHINE_ARCH unless we're tesitng for a specific target. The isn't even moot for i386/amd64 where there's momemntum towards a MACHINE_CPUARCH == x86, although a specific cleanup for that likely would be needed...
21 lines
383 B
Makefile
21 lines
383 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../../../../dev/pcf
|
|
|
|
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_CPUARCH} == "i386"
|
|
isa_if= isa_if.h
|
|
pcf_isa= pcf_isa.c
|
|
.endif
|
|
|
|
.if ${MACHINE_CPUARCH} == "sparc64"
|
|
envctrl= envctrl.c
|
|
ofw_bus_if= ofw_bus_if.h
|
|
pcf_ebus= pcf_ebus.c
|
|
.endif
|
|
|
|
.include <bsd.kmod.mk>
|