etc/protocols - sync with NetBSD-8
[minix.git] / external / mit / xorg / bin / xfs / Makefile
blob14e54ff4fba1e51c8fcce21aa1a8917e1d7dafee
1 # $NetBSD: Makefile,v 1.12 2015/07/17 17:57:11 mrg Exp $
3 .include <bsd.own.mk>
5 PROG= xfs
7 XFSDIR= ${X11SRCDIR.${PROG}}
9 .PATH: ${XFSDIR}/man
11 .PATH: ${XFSDIR}/difs
12 SRCS= atom.c charinfo.c difsutils.c dispatch.c events.c \
13 extensions.c fontinfo.c fonts.c globals.c initfonts.c main.c \
14 resource.c swaprep.c swapreq.c tables.c
16 .PATH: ${XFSDIR}/os
17 SRCS+= access.c config.c connection.c daemon.c error.c io.c osglue.c \
18 osinit.c utils.c waitfor.c xfstrans.c
20 CPPFLAGS+= -I${XFSDIR}/include \
21 -I${DESTDIR}${X11INCDIR}/X11/FS \
22 -I${X11SRCDIR.libXfont}/include \
23 -I${X11SRCDIR.libXfont}/bitmap \
24 -I${XFSDIR}/../include \
25 -DHAVE_DAEMON
27 CONN_DEFINES= ${X11FLAGS.CONNECTION} -DFONT_t -DTRANS_SERVER \
28 -DTRANS_REOPEN -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT
30 XFSCONFIGDIR= ${X11ETCDIR}/fs
32 CPPFLAGS.initfonts.c= -DFONT_PCF -DFONT_FS -DFONT_SPEEDO
33 CPPFLAGS.connection.c= ${CONN_DEFINES} -DBSD44SOCKETS \
34 ${X11FLAGS.OS_DEFINES}
35 CPPFLAGS.xfstrans.c= ${CONN_DEFINES} -DBSD44SOCKETS \
36 ${X11FLAGS.OS_DEFINES}
37 CPPFLAGS.utils.c= -DXFSPIDDIR=\"/var/run\"
38 CPPFLAGS.io.c= ${CONN_DEFINES}
39 CPPFLAGS.waitfor.c= ${CONN_DEFINES}
40 CPPFLAGS.error.c= -DUSE_SYSLOG
41 CPPFLAGS.osglue.c= ${CONN_DEFINES} \
42 ${X11FLAGS.OS_DEFINES}
43 CPPFLAGS.config.c= ${CONN_DEFINES}
44 # XXX
45 CPPFLAGS.xfstrans.c+= -Wno-error
47 X11EXTRAMANDEFS+= -e 's%__configfilepath__%${XFSCONFIGDIR}/config%g' \
48 -e 's%__configfiledesc__%the default file,%g'
51 .PATH: ${XFSDIR}/config
52 BUILDSYMLINKS= config.cpp fsconfig.cpp
53 CPPSCRIPTS= fsconfig
54 CPPSCRIPTFLAGS= -DDEFAULTFONTPATH=${X11FONTDIR}/misc/,${X11FONTDIR}/Type1/,${X11FONTDIR}/75dpi/,${X11FONTDIR}/100dpi/ \
55 -DFSERRORS=/var/log/xfs.log -D__appmansuffix__=1
57 CONFIGFILES= fsconfig
58 FILESNAME= config
59 FILESDIR= ${XFSCONFIGDIR}
62 LDADD+= -lXfont -lfontenc -lXfontcache -lXext -lX11 -lfreetype -lm -lz
63 DPADD+= ${LIBXFONT} ${LIBFONTENC} ${LIBXFONTCACHE} ${LIBXEXT} ${LIBX11} \
64 ${LIBFREETYPE} ${LIBM} ${LIBZ}
66 .PATH: ${XFSDIR}
68 .include <bsd.x11.mk>
69 .include <bsd.prog.mk>