1# $NetBSD: Makefile,v 1.23 2022/07/21 22:51:23 mrg Exp $ 2 3USE_FORT?= yes # network server *and* setuid 4 5.include <bsd.own.mk> 6 7.include "../../../Makefile.Xserver" 8 9PROG= Xorg 10BINMODE= 4711 11 12.PATH: ${X11SRCDIR.xorg-server}/hw/xfree86 13SRCS= xorg-wrapper.c 14SRCS= dummy.c 15 16CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11 \ 17 -I${X11SRCDIR.xorg-server}/fb \ 18 -I${X11SRCDIR.xorg-server}/mi \ 19 -I${X11SRCDIR.xorg-server}/include \ 20 -I${X11SRCDIR.xorg-server}/os \ 21 -I${X11SRCDIR.xorg-server}/Xext \ 22 -I${DESTDIR}${X11INCDIR}/X11/extensions \ 23 -I${DESTDIR}${X11INCDIR}/libdrm \ 24 -I${DESTDIR}${X11INCDIR}/pixman-1 \ 25 -I${DESTDIR}${X11INCDIR}/xorg \ 26 -I${X11SRCDIR.xorg-server}/render 27 28CPPFLAGS+= ${X11FLAGS.OS_DEFINES} ${X11FLAGS.DIX} \ 29 ${X11FLAGS.EXTENSION} 30 31LDFLAGS+= -rdynamic 32 33LDADD+= -Wl,--whole-archive 34LDADD+= ${LDADD.dix} 35LDADD+= ${LDADD.fb} 36LDADD+= ${LDADD.config} 37LDADD+= ${LDADD.dbe} 38LDADD+= ${LDADD.record} 39LDADD+= ${LDADD.hw/xfree86/loader} 40LDADD+= ${LDADD.hw/xfree86/common} 41LDADD+= ${LDADD.hw/xfree86/xorgos} 42LDADD+= ${LDADD.hw/xfree86/xf86config} 43LDADD+= ${LDADD.hw/xfree86/dixmods} 44LDADD+= ${LDADD.hw/xfree86/xf86modes} 45LDADD+= ${LDADD.hw/xfree86/ramdac} 46LDADD+= ${LDADD.hw/xfree86/ddc} 47LDADD+= ${LDADD.hw/xfree86/i2c} 48LDADD+= ${LDADD.hw/xfree86/xkb} 49LDADD+= ${LDADD.composite} 50LDADD+= ${LDADD.mi} 51LDADD+= ${LDADD.xfixes} 52LDADD+= ${LDADD.Xext} 53LDADD+= ${LDADD.render} 54LDADD+= ${LDADD.randr} 55LDADD+= ${LDADD.damageext} 56LDADD+= ${LDADD.miext/damage} 57LDADD+= ${LDADD.miext/shadow} 58LDADD+= ${LDADD.miext/sync} 59LDADD+= ${LDADD.Xi} 60LDADD+= ${LDADD.xkb} 61LDADD+= ${LDADD.os} 62LDADD+= ${LDADD.glx} 63LDADD+= ${LDADD.present} 64LDADD+= ${LDADD.hw/xfree86/dri} 65LDADD+= ${LDADD.hw/xfree86/dri2} 66LDADD+= ${LDADD.dri3} 67LDADD+= -lpixman-1 -lXfont2 -lfreetype -lXau -lfontenc -lXdmcp 68LDADD+= -lpciaccess -ldrm -lxcvt 69LDADD+= -Wl,--no-whole-archive 70 71.if ${MACHINE_ARCH} == "i386" 72LDADD+= -li386 73DPADD+= ${LIBI386} 74.elif ${MACHINE_ARCH} == "x86_64" 75LDADD+= -lx86_64 76DPADD+= ${LIBX86_64} 77.elif ${MACHINE_ARCH} == "alpha" 78LDADD+= -lalpha 79DPADD+= ${LIBALPHA} 80.endif 81 82LDADD+= -lm -lGL -lXv -lxshmfence 83.if ${HAVE_XORG_GLAMOR} != "no" 84LDADD+= -lepoxy 85.endif 86 87.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 88# Needed by current xf86-video-intel for SNA. 89LDADD+= -lpthread 90DPADD+= ${LIBPTHREAD} 91.endif 92 93DPADD+= \ 94 ${DPADD.dix} \ 95 ${DPADD.fb} \ 96 ${DPADD.mi} \ 97 ${DPADD.xfixes} \ 98 ${DPADD.Xext} \ 99 ${DPADD.config} \ 100 ${DPADD.dbe} \ 101 ${DPADD.record} \ 102 ${DPADD.render} \ 103 ${DPADD.randr} \ 104 ${DPADD.damageext} \ 105 ${DPADD.miext/damage} \ 106 ${DPADD.miext/shadow} \ 107 ${DPADD.miext/sync} \ 108 ${DPADD.Xi} \ 109 ${DPADD.xkb} \ 110 ${DPADD.composite} \ 111 ${DPADD.os} \ 112 ${DPADD.glx} \ 113 ${DPADD.present} \ 114 ${DPADD.hw/xfree86/dri} \ 115 ${DPADD.hw/xfree86/dri2} \ 116 ${DPADD.dri3} \ 117 ${DPADD.hw/xfree86/fb} \ 118 ${DPADD.hw/xfree86/common} \ 119 ${DPADD.hw/xfree86/loader} \ 120 ${DPADD.hw/xfree86/xf86config} \ 121 ${DPADD.hw/xfree86/dixmods} \ 122 ${DPADD.hw/xfree86/xf86modes} \ 123 ${DPADD.hw/xfree86/ramdac} \ 124 ${DPADD.hw/xfree86/ddc} \ 125 ${DPADD.hw/xfree86/i2c} \ 126 ${DPADD.hw/xfree86/xkb} \ 127 ${LIBCWRAPPER} \ 128 ${LIBXFONT2} ${LIBFREETYPE} ${LIBXAU} ${LIBFONTENC} \ 129 ${LIBPIXMAN1} ${LIBXDMCP} ${LIBZ} ${LIBM} ${LIBPCIACCESS} \ 130 ${LIBGL} ${LIBXV} ${LIBXSHMFENCE} ${LIBXCVT} 131 132LDADD+= -lcrypto 133DPADD+= ${LIBCRYPTO} 134 135SYMLINKS= ${X11BINDIR}/Xorg ${X11BINDIR}/X 136 137# Done in ../doc 138MKMAN= no 139 140FILES= xorg-server.m4 141FILESDIR= ${X11ROOTDIR}/share/aclocal 142 143.PATH: ${X11SRCDIR.xorg-server} 144 145dummy.c: 146 echo > dummy.c 147CLEANFILES=+ dummy.c 148 149.include <bsd.x11.mk> 150.include <bsd.prog.mk> 151.include <bsd.files.mk> 152