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