| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.19 2008/04/23 05:13:43 macallan Exp $ | | 1 | # $NetBSD: Makefile,v 1.20 2008/10/03 05:14:01 macallan Exp $ |
2 | | | 2 | |
3 | .include "../../../Makefile.serverlib" | | 3 | .include "../../../Makefile.serverlib" |
4 | | | 4 | |
5 | LIB= xf86_os | | 5 | LIB= xf86_os |
6 | | | 6 | |
7 | .PATH: ${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support | | 7 | .PATH: ${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support |
8 | .PATH: ${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support/bsd | | 8 | .PATH: ${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support/bsd |
9 | .PATH: ${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support/shared | | 9 | .PATH: ${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support/shared |
10 | SRCS.bsd= bsd_init.c bsd_io.c bsd_VTsw.c libc_wrapper.c std_kbdEv.c \ | | 10 | SRCS.bsd= bsd_init.c bsd_io.c bsd_VTsw.c libc_wrapper.c std_kbdEv.c \ |
11 | posix_tty.c bsd_mouse.c stdPci.c vidmem.c sigio.c \ | | 11 | posix_tty.c bsd_mouse.c stdPci.c vidmem.c sigio.c \ |
12 | kmod_noop.c bsd_kbd.c bsd_KbdMap.c at_scancode.c | | 12 | kmod_noop.c bsd_kbd.c bsd_KbdMap.c at_scancode.c |
13 | | | 13 | |
14 | .PATH: ${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support/linux | | 14 | .PATH: ${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support/linux |
| @@ -39,28 +39,27 @@ CPPFLAGS.${_FN}= -DWSCONS_SUPPORT -DUSES | | | @@ -39,28 +39,27 @@ CPPFLAGS.${_FN}= -DWSCONS_SUPPORT -DUSES |
39 | .endif | | 39 | .endif |
40 | | | 40 | |
41 | .if ${MACHINE} == "sgimips" | | 41 | .if ${MACHINE} == "sgimips" |
42 | SRCS.bsd+= mips_video.c bsdResource.c pm_noop.c lnx_agp.c | | 42 | SRCS.bsd+= mips_video.c bsdResource.c pm_noop.c lnx_agp.c |
43 | .for _FN in ${SRCS.bsd} | | 43 | .for _FN in ${SRCS.bsd} |
44 | CPPFLAGS.${_FN}= -DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC | | 44 | CPPFLAGS.${_FN}= -DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC |
45 | .endfor | | 45 | .endfor |
46 | .endif | | 46 | .endif |
47 | | | 47 | |
48 | .if ${MACHINE} == "sparc64" || ${MACHINE} == "sparc" | | 48 | .if ${MACHINE} == "sparc64" || ${MACHINE} == "sparc" |
49 | SRCS.bsd+= sparc64_video.c bsdResource.c pm_noop.c lnx_agp.c \ | | 49 | SRCS.bsd+= sparc64_video.c bsdResource.c pm_noop.c lnx_agp.c \ |
50 | ioperm_noop.c netbsdSbus.c | | 50 | ioperm_noop.c netbsdSbus.c |
51 | .for _FN in ${SRCS.bsd} | | 51 | .for _FN in ${SRCS.bsd} |
52 | CPPFLAGS.${_FN}= -DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC \ | | 52 | CPPFLAGS.${_FN}= -DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC |
53 | -DPCI_VIA_TTYE0 | | | |
54 | .endfor | | 53 | .endfor |
55 | .endif | | 54 | .endif |
56 | | | 55 | |
57 | .if ${MACHINE} == "cats" | | 56 | .if ${MACHINE} == "cats" |
58 | SRCS.bsd+= arm_video.c bsdResource.c pm_noop.c agp_noop.c ioperm_noop.c | | 57 | SRCS.bsd+= arm_video.c bsdResource.c pm_noop.c agp_noop.c ioperm_noop.c |
59 | .for _FN in ${SRCS.bsd} | | 58 | .for _FN in ${SRCS.bsd} |
60 | CPPFLAGS.${_FN}= -DPCVT_SUPPORT -DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC | | 59 | CPPFLAGS.${_FN}= -DPCVT_SUPPORT -DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC |
61 | .endfor | | 60 | .endfor |
62 | .endif | | 61 | .endif |
63 | | | 62 | |
64 | .if ${MACHINE} == "netwinder" | | 63 | .if ${MACHINE} == "netwinder" |
65 | SRCS.bsd+= arm_video.c bsdResource.c pm_noop.c agp_noop.c ioperm_noop.c | | 64 | SRCS.bsd+= arm_video.c bsdResource.c pm_noop.c agp_noop.c ioperm_noop.c |
66 | .for _FN in ${SRCS.bsd} | | 65 | .for _FN in ${SRCS.bsd} |
| @@ -79,29 +78,30 @@ CPPFLAGS.${_FN}= -DWSCONS_SUPPORT | | | @@ -79,29 +78,30 @@ CPPFLAGS.${_FN}= -DWSCONS_SUPPORT |
79 | SRCS.bus= Pci.c | | 78 | SRCS.bus= Pci.c |
80 | | | 79 | |
81 | .if ${MACHINE} == "i386" || ${MACHINE} == "amd64" | | 80 | .if ${MACHINE} == "i386" || ${MACHINE} == "amd64" |
82 | SRCS.bus+= ix86Pci.c | | 81 | SRCS.bus+= ix86Pci.c |
83 | .endif | | 82 | .endif |
84 | | | 83 | |
85 | .if ${MACHINE} == "macppc" || ${MACHINE} == "cats" || \ | | 84 | .if ${MACHINE} == "macppc" || ${MACHINE} == "cats" || \ |
86 | ${MACHINE} == "sgimips" || ${MACHINE} == "sparc64" || \ | | 85 | ${MACHINE} == "sgimips" || ${MACHINE} == "sparc64" || \ |
87 | ${MACHINE} == "sparc" || ${MACHINE} == "netwinder" || \ | | 86 | ${MACHINE} == "sparc" || ${MACHINE} == "netwinder" || \ |
88 | ${MACHINE} == "shark" || ${MACHINE} == "ofppc" | | 87 | ${MACHINE} == "shark" || ${MACHINE} == "ofppc" |
89 | SRCS.bus+= netbsdPci.c | | 88 | SRCS.bus+= netbsdPci.c |
90 | .endif | | 89 | .endif |
91 | | | 90 | |
92 | .if ${MACHINE} == "macppc" || ${MACHINE} == "ofppc" | | 91 | .if ${MACHINE} == "macppc" || ${MACHINE} == "ofppc" || \ |
| | | 92 | ${MACHINE} == "sparc64" || ${MACHINE} == "sparc" |
93 | .for _FN in ${SRCS.bus} | | 93 | .for _FN in ${SRCS.bus} |
94 | CPPFLAGS.${_FN}= -DPCI_VIA_TTYE0 | | 94 | CPPFLAGS.${_FN}+= -DPCI_VIA_TTYE0 |
95 | .endfor | | 95 | .endfor |
96 | .endif | | 96 | .endif |
97 | | | 97 | |
98 | .PATH: ${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support/misc | | 98 | .PATH: ${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support/misc |
99 | SRCS.misc= xf86_Util.c Delay.c xf86_IlHack.c | | 99 | SRCS.misc= xf86_Util.c Delay.c xf86_IlHack.c |
100 | | | 100 | |
101 | .if ${MACHINE} == "i386" | | 101 | .if ${MACHINE} == "i386" |
102 | SRCS.misc+= BUSmemcpy.S IODelay.S SlowBcopy.S | | 102 | SRCS.misc+= BUSmemcpy.S IODelay.S SlowBcopy.S |
103 | CPPFLAGS.BUSmemcpy.S= -DUSE_GAS | | 103 | CPPFLAGS.BUSmemcpy.S= -DUSE_GAS |
104 | CPPFLAGS.IODelay.S= -DUSE_GAS | | 104 | CPPFLAGS.IODelay.S= -DUSE_GAS |
105 | CPPFLAGS.SlowBcopy.S= -DUSE_GAS | | 105 | CPPFLAGS.SlowBcopy.S= -DUSE_GAS |
106 | .endif | | 106 | .endif |
107 | | | 107 | |