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