Makefile revision 1.1.1.1
1# $NetBSD: Makefile,v 1.1.1.1 2016/06/10 03:42:14 mrg Exp $ 2 3.include "../../../Makefile.serverlib" 4.include "../../../Makefile.servermod" 5 6LIB= xorgos 7 8.PATH: ${X11SRCDIR.xorg-server}/hw/xfree86/os-support 9.PATH: ${X11SRCDIR.xorg-server}/hw/xfree86/os-support/bsd 10.PATH: ${X11SRCDIR.xorg-server}/hw/xfree86/os-support/shared 11SRCS.bsd= \ 12 bsd_VTsw.c bsd_bell.c bsd_init.c bsd_pci.c \ 13 kmod_noop.c \ 14 posix_tty.c sigio.c vidmem.c 15 16.PATH: ${X11SRCDIR.xorg-server}/hw/xfree86/os-support/linux 17.if ${MACHINE_ARCH} == "x86_64" 18SRCS.bsd+= pm_noop.c 19.endif 20.if ${MACHINE_ARCH} == "i386" 21SRCS.bsd+= bsd_apm.c 22.endif 23.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 24SRCS.bsd+= i386_video.c lnx_agp.c 25.for _FN in ${SRCS.bsd} 26.if ${MACHINE_ARCH} == "i386" 27CPPFLAGS.${_FN}+= -DPCCONS_SUPPORT -DHAS_APERTURE_DRV 28.endif 29CPPFLAGS.${_FN}+= -DUSE_I386_IOPL -DPCVT_SUPPORT -DWSCONS_SUPPORT \ 30 -DUSESTDRES -DHAVE_SYSV_IPC \ 31 -DHAS_MTRR_BUILTIN 32.endfor 33.endif 34 35.if ${MACHINE} == "macppc" || ${MACHINE} == "prep" || ${MACHINE} == "bebox" || ${MACHINE} == "ofppc" || ${MACHINE} == "ibmnws" 36SRCS.bsd+= ppc_video.c pm_noop.c lnx_agp.c 37.for _FN in ${SRCS.bsd} 38CPPFLAGS.${_FN}= -DWSCONS_SUPPORT -DPCVT_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC 39.endfor 40.endif 41 42.if ${MACHINE_ARCH} == "alpha" 43SRCS.bsd+= alpha_video.c bsd_ev56.c pm_noop.c agp_noop.c 44.for _FN in ${SRCS.bsd} 45CPPFLAGS.${_FN}= -DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC -DUSE_ALPHA_PIO 46.endfor 47.endif 48 49.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64" 50SRCS.bsd+= ppc_video.c pm_noop.c agp_noop.c 51SRCS.bus+= netbsdSbus.c 52.for _FN in ${SRCS.bsd} 53CPPFLAGS.${_FN}= -DWSCONS_SUPPORT -DPCVT_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC 54.endfor 55.endif 56 57.if ${MACHINE} == "ews4800mips" || \ 58 ${MACHINE} == "hpcmips" || \ 59 ${MACHINE} == "newsmips" || \ 60 ${MACHINE} == "sgimips" || \ 61 ${MACHINE} == "evbmips" 62SRCS.bsd+= ppc_video.c pm_noop.c agp_noop.c 63.for _FN in ${SRCS.bsd} 64CPPFLAGS.${_FN}= -DWSCONS_SUPPORT -DPCVT_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC 65.endfor 66.endif 67 68.if ${MACHINE} == "cats" || \ 69 ${MACHINE} == "evbarm" || \ 70 ${MACHINE} == "hpcarm" || \ 71 ${MACHINE} == "shark" || \ 72 ${MACHINE} == "netwinder" || \ 73 ${MACHINE} == "zaurus" 74SRCS.bsd+= ppc_video.c pm_noop.c agp_noop.c 75.for _FN in ${SRCS.bsd} 76CPPFLAGS.${_FN}= -DWSCONS_SUPPORT -DPCVT_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC 77.endfor 78.endif 79 80.if ${MACHINE} == "shark" 81CPPFLAGS.ppc_video.c += -DPCI_MAGIC_IO_RANGE=0xf0000000 82.endif 83 84.if ${MACHINE} == "dreamcast" || \ 85 ${MACHINE} == "hpcsh" 86SRCS.bsd+= ppc_video.c pm_noop.c agp_noop.c 87.for _FN in ${SRCS.bsd} 88CPPFLAGS.${_FN}= -DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC 89.endfor 90.endif 91 92.if ${MACHINE} == "amiga" || \ 93 ${MACHINE} == "hp300" || \ 94 ${MACHINE} == "luna68k" || \ 95 ${MACHINE} == "mac68k" 96SRCS.bsd+= ppc_video.c pm_noop.c agp_noop.c 97.for _FN in ${SRCS.bsd} 98CPPFLAGS.${_FN}= -DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC 99.endfor 100.endif 101 102.if ${MACHINE} == "vax" 103SRCS.bsd+= ppc_video.c pm_noop.c agp_noop.c 104.for _FN in ${SRCS.bsd} 105CPPFLAGS.${_FN}= -DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC 106.endfor 107.endif 108 109# some platforms will probably need ioperm_noop.c 110 111.PATH: ${X11SRCDIR.xorg-server}/hw/xfree86/os-support/bus 112SRCS.bus+= Pci.c 113 114.if ${MACHINE} == "macppc" || ${MACHINE} == "cats" || \ 115 ${MACHINE} == "sgimips" || ${MACHINE} == "shark" || \ 116 ${MACHINE} == "netwinder" || ${MACHINE_ARCH} == "sparc" || \ 117 ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "alpha" || \ 118 ${MACHINE} == "prep" || ${MACHINE} == "bebox" || \ 119 ${MACHINE} == "ofppc" || ${MACHINE} == "ibmnws" 120#SRCS.bus+= netbsdPci.c 121.endif 122 123.if ${MACHINE} == "sparc" || ${MACHINE} == "sparc64" || \ 124 ${MACHINE_ARCH} == "powerpc" || ${MACHINE} == "netwinder" 125#CPPFLAGS.netbsdPci.c+= -DPCI_VIA_TTYE0 126.endif 127 128# XXX .S not built from automake either 129.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 130#SRCS.misc+= CBUSmemcpy.c CIODelay.c CSlowBcopy.c 131#CPPFLAGS.BUSmemcpy.S= -DUSE_GAS 132#CPPFLAGS.IODelay.S= -DUSE_GAS 133#CPPFLAGS.SlowBcopy.S= -DUSE_GAS 134.endif 135 136.if ${MACHINE} == "macppc" || ${MACHINE} == "cats" || \ 137 ${MACHINE} == "sgimips" || ${MACHINE_ARCH} == "sparc64" || \ 138 ${MACHINE_ARCH} == "sparc" || ${MACHINE} == "netwinder" || \ 139 ${MACHINE} == "shark" || ${MACHINE} == "ofppc" || \ 140 ${MACHINE_ARCH} == "alpha" || ${MACHINE} == "prep" || \ 141 ${MACHINE} == "bebox" || ${MACHINE} == "ibmnws" 142#SRCS.misc+= CBUSmemcpy.c CIODelay.c CSlowBcopy.c 143.endif 144 145.PATH: ${X11SRCDIR.xorg-server}/hw/xfree86/os-support/misc 146SRCS.misc+= SlowBcopy.c 147 148# XXX namespace collision so avoid it, only has to be done for non-i386. 149#BUILDSYMLINKS= BUSmemcpy.c CBUSmemcpy.c \ 150# IODelay.c CIODelay.c \ 151# SlowBcopy.c CSlowBcopy.c 152 153SRCS= ${SRCS.bsd} ${SRCS.bus} ${SRCS.misc} xorgos.c 154 155CPPFLAGS+= -I${X11SRCDIR.xorg-server}/hw/xfree86/common \ 156 -I${X11SRCDIR.xorg-server}/hw/xfree86/os-support \ 157 -I${X11SRCDIR.xorg-server}/hw/xfree86/os-support/bsd \ 158 -I${X11SRCDIR.xorg-server}/hw/xfree86/os-support/bus \ 159 -I${X11SRCDIR.xorg-server}/hw/xfree86/os-support/misc \ 160 -I${X11SRCDIR.xorg-server}/include \ 161 -I${DESTDIR}${X11INCDIR}/X11 \ 162 -I${DESTDIR}${X11INCDIR}/X11/extensions \ 163 -I${DESTDIR}${X11INCDIR}/pixman-1 \ 164 -I${X11SRCDIR.xorg-server}/mi \ 165 -I${X11SRCDIR.xorg-server}/Xext \ 166 -I${X11SRCDIR.xorg-server}/hw/xfree86/os-support/shared 167.if ${X11DRI} != "no" 168CPPFLAGS+= ${X11FLAGS.DRI} 169.endif 170 171CWARNFLAGS.clang+= -Wno-error=empty-body 172 173.include <bsd.x11.mk> 174.include <bsd.lib.mk> 175