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