1 # $NetBSD: Makefile,v 1.23 2022/07/21 22:51:23 mrg Exp $ 2 3 USE_FORT?= yes # network server *and* setuid 4 5 .include <bsd.own.mk> 6 7 .include "../../../Makefile.Xserver" 8 9 PROG= Xorg 10 BINMODE= 4711 11 12 .PATH: ${X11SRCDIR.xorg-server}/hw/xfree86 13 SRCS= xorg-wrapper.c 14 SRCS= dummy.c 15 16 CPPFLAGS+= -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 28 CPPFLAGS+= ${X11FLAGS.OS_DEFINES} ${X11FLAGS.DIX} \ 29 ${X11FLAGS.EXTENSION} 30 31 LDFLAGS+= -rdynamic 32 33 LDADD+= -Wl,--whole-archive 34 LDADD+= ${LDADD.dix} 35 LDADD+= ${LDADD.fb} 36 LDADD+= ${LDADD.config} 37 LDADD+= ${LDADD.dbe} 38 LDADD+= ${LDADD.record} 39 LDADD+= ${LDADD.hw/xfree86/loader} 40 LDADD+= ${LDADD.hw/xfree86/common} 41 LDADD+= ${LDADD.hw/xfree86/xorgos} 42 LDADD+= ${LDADD.hw/xfree86/xf86config} 43 LDADD+= ${LDADD.hw/xfree86/dixmods} 44 LDADD+= ${LDADD.hw/xfree86/xf86modes} 45 LDADD+= ${LDADD.hw/xfree86/ramdac} 46 LDADD+= ${LDADD.hw/xfree86/ddc} 47 LDADD+= ${LDADD.hw/xfree86/i2c} 48 LDADD+= ${LDADD.hw/xfree86/xkb} 49 LDADD+= ${LDADD.composite} 50 LDADD+= ${LDADD.mi} 51 LDADD+= ${LDADD.xfixes} 52 LDADD+= ${LDADD.Xext} 53 LDADD+= ${LDADD.render} 54 LDADD+= ${LDADD.randr} 55 LDADD+= ${LDADD.damageext} 56 LDADD+= ${LDADD.miext/damage} 57 LDADD+= ${LDADD.miext/shadow} 58 LDADD+= ${LDADD.miext/sync} 59 LDADD+= ${LDADD.Xi} 60 LDADD+= ${LDADD.xkb} 61 LDADD+= ${LDADD.os} 62 LDADD+= ${LDADD.glx} 63 LDADD+= ${LDADD.present} 64 LDADD+= ${LDADD.hw/xfree86/dri} 65 LDADD+= ${LDADD.hw/xfree86/dri2} 66 LDADD+= ${LDADD.dri3} 67 LDADD+= -lpixman-1 -lXfont2 -lfreetype -lXau -lfontenc -lXdmcp 68 LDADD+= -lpciaccess -ldrm -lxcvt 69 LDADD+= -Wl,--no-whole-archive 70 71 .if ${MACHINE_ARCH} == "i386" 72 LDADD+= -li386 73 DPADD+= ${LIBI386} 74 .elif ${MACHINE_ARCH} == "x86_64" 75 LDADD+= -lx86_64 76 DPADD+= ${LIBX86_64} 77 .elif ${MACHINE_ARCH} == "alpha" 78 LDADD+= -lalpha 79 DPADD+= ${LIBALPHA} 80 .endif 81 82 LDADD+= -lm -lGL -lXv -lxshmfence 83 .if ${HAVE_XORG_GLAMOR} != "no" 84 LDADD+= -lepoxy 85 .endif 86 87 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 88 # Needed by current xf86-video-intel for SNA. 89 LDADD+= -lpthread 90 DPADD+= ${LIBPTHREAD} 91 .endif 92 93 DPADD+= \ 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 132 LDADD+= -lcrypto 133 DPADD+= ${LIBCRYPTO} 134 135 SYMLINKS= ${X11BINDIR}/Xorg ${X11BINDIR}/X 136 137 # Done in ../doc 138 MKMAN= no 139 140 FILES= xorg-server.m4 141 FILESDIR= ${X11ROOTDIR}/share/aclocal 142 143 .PATH: ${X11SRCDIR.xorg-server} 144 145 dummy.c: 146 echo > dummy.c 147 CLEANFILES=+ dummy.c 148 149 .include <bsd.x11.mk> 150 .include <bsd.prog.mk> 151 .include <bsd.files.mk> 152