Home | History | Annotate | Line # | Download | only in Xorg
      1 #	$NetBSD: Makefile,v 1.3 2017/05/21 15:28:40 riastradh Exp $
      2 
      3 .include <bsd.own.mk>
      4 
      5 .include "../../../Makefile.Xserver"
      6 
      7 PROG=		Xorg
      8 BINMODE=	4711
      9 
     10 .PATH:		${X11SRCDIR.xorg-server}/hw/xfree86
     11 SRCS=		xorg.c libxorg.c
     12 
     13 CPPFLAGS+=	-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 
     25 CPPFLAGS+=	${X11FLAGS.OS_DEFINES} ${X11FLAGS.DIX} \
     26 		${X11FLAGS.EXTENSION}
     27 
     28 LDFLAGS+=	-rdynamic
     29 
     30 LDADD+=	-Wl,--whole-archive
     31 LDADD+=	${LDADD.dix}
     32 LDADD+=	${LDADD.hw/xfree86/init}
     33 LDADD+=	${LDADD.config}
     34 LDADD+=	${LDADD.hw/xfree86/loader}
     35 LDADD+=	${LDADD.hw/xfree86/common}
     36 LDADD+=	${LDADD.hw/xfree86/xorgos}
     37 #LDADD+=	${LDADD.osandcommon}
     38 LDADD+=	${LDADD.hw/xfree86/xf86config}
     39 LDADD+=	${LDADD.hw/xfree86/dixmods}
     40 LDADD+=	${LDADD.hw/xfree86/xf86modes}
     41 LDADD+=	${LDADD.hw/xfree86/ramdac}
     42 LDADD+=	${LDADD.hw/xfree86/ddc}
     43 LDADD+=	${LDADD.hw/xfree86/i2c}
     44 LDADD+=	${LDADD.composite}
     45 LDADD+=	${LDADD.mi}
     46 LDADD+=	${LDADD.xfixes}
     47 LDADD+=	${LDADD.Xext/Xextbuiltin}
     48 LDADD+=	${LDADD.render}
     49 LDADD+=	${LDADD.randr}
     50 LDADD+=	${LDADD.damageext}
     51 LDADD+=	${LDADD.miext/damage}
     52 LDADD+=	${LDADD.miext/shadow}
     53 LDADD+=	${LDADD.miext/cw}
     54 LDADD+=	${LDADD.miext/sync}
     55 LDADD+=	${LDADD.Xi}
     56 LDADD+=	${LDADD.xkb}
     57 LDADD+=	${LDADD.os}
     58 LDADD+=	${LDADD.glx}
     59 LDADD+=	${LDADD.hw/xfree86/dri}
     60 LDADD+=	${LDADD.hw/xfree86/dri2}
     61 LDADD+=	${LDADD.hw/xfree86/dixmods/fb}
     62 LDADD+=	${LDADD.hw/xfree86/dixmods/xorgxkb}
     63 LDADD+=	-lpixman-1 -lXfont -lfreetype -lXau -lfontenc -lXdmcp
     64 LDADD+=	-lpciaccess -ldrm
     65 LDADD+=	-Wl,--no-whole-archive
     66 
     67 .if ${MACHINE_ARCH} == "i386"
     68 LDADD+=	-li386
     69 DPADD+=	${LIBI386}
     70 .elif ${MACHINE_ARCH} == "x86_64"
     71 LDADD+=	-lx86_64
     72 DPADD+=	${LIBX86_64}
     73 .elif ${MACHINE_ARCH} == "alpha"
     74 LDADD+=	-lalpha
     75 DPADD+=	${LIBALPHA}
     76 .endif
     77 
     78 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
     79 # Needed by current xf86-video-intel for SNA.
     80 LDADD+=	-lpthread
     81 DPADD+=	${LIBPTHREAD}
     82 .endif
     83 
     84 LDADD+=	-lm
     85 
     86 DPADD+=	${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 
    123 LDADD+=	-lcrypto
    124 DPADD+=	${LIBCRYPTO}
    125 
    126 SYMLINKS=	${X11BINDIR}/Xorg ${X11BINDIR}/X
    127 
    128 # Done in ../doc
    129 MKMAN=	no
    130 
    131 FILES=		xorg-server.m4
    132 FILESDIR=	${X11ROOTDIR}/share/aclocal
    133 
    134 .PATH:		${X11SRCDIR.xorg-server}
    135 
    136 .include <bsd.x11.mk>
    137 .include <bsd.prog.mk>
    138 .include <bsd.files.mk>
    139