]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/uart/Makefile
Update to 9.8.4-P1.
[FreeBSD/FreeBSD.git] / sys / modules / uart / Makefile
1 # $FreeBSD$
2
3 .PATH: ${.CURDIR}/../../dev/uart
4
5 .if ${MACHINE_CPUARCH} == "sparc64"
6 uart_bus_ebus=  uart_bus_ebus.c
7 ofw_bus_if=     ofw_bus_if.h
8 .endif
9
10 .if ${MACHINE} == "i386" || ${MACHINE} == "amd64"
11 _uart_cpu=uart_cpu_x86.c
12 .else
13 _uart_cpu=uart_cpu_${MACHINE}.c
14 .endif
15 .if exists(${.CURDIR:H:H}/dev/uart/${_uart_cpu})
16 uart_cpu_machine= ${_uart_cpu}
17 .endif
18
19 KMOD=   uart
20 SRCS=   uart_bus_acpi.c ${uart_bus_ebus} uart_bus_isa.c uart_bus_pccard.c \
21         uart_bus_pci.c uart_bus_puc.c uart_bus_scc.c \
22         uart_core.c ${uart_cpu_machine} uart_dbg.c \
23         uart_dev_ns8250.c uart_dev_quicc.c uart_dev_sab82532.c \
24         uart_dev_z8530.c \
25         uart_if.c uart_if.h uart_subr.c uart_tty.c
26
27 SRCS+=  bus_if.h card_if.h device_if.h isa_if.h ${ofw_bus_if} pci_if.h \
28         power_if.h pccarddevs.h serdev_if.h
29
30 MFILES= dev/pccard/card_if.m dev/pccard/power_if.m dev/pci/pci_if.m \
31         dev/ofw/ofw_bus_if.m dev/uart/uart_if.m isa/isa_if.m kern/bus_if.m \
32         kern/device_if.m kern/serdev_if.m
33
34 .include <bsd.kmod.mk>