1 # $NetBSD: Makefile,v 1.12 2015/07/17 17:57:11 mrg Exp $
7 XFSDIR
= ${X11SRCDIR.
${PROG}}
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
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 \
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}
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
54 CPPSCRIPTFLAGS
= -DDEFAULTFONTPATH
=${X11FONTDIR}/misc
/,${X11FONTDIR}/Type1
/,${X11FONTDIR}/75dpi
/,${X11FONTDIR}/100dpi
/ \
55 -DFSERRORS
=/var
/log
/xfs.log
-D__appmansuffix__
=1
59 FILESDIR
= ${XFSCONFIGDIR}
62 LDADD
+= -lXfont
-lfontenc
-lXfontcache
-lXext
-lX11
-lfreetype
-lm
-lz
63 DPADD
+= ${LIBXFONT} ${LIBFONTENC} ${LIBXFONTCACHE} ${LIBXEXT} ${LIBX11} \
64 ${LIBFREETYPE} ${LIBM} ${LIBZ}
69 .
include <bsd.prog.mk
>