1 # $NetBSD: Makefile,v 1.6 2004/03/06 03:09:36 rtr Exp $
7 .PATH
: ${X11SRCDIR.xc
}/programs
/${PROG}/difs
8 SRCS
= atom.c cache.c charinfo.c difsutils.c dispatch.c events.c \
9 extensions.c fontinfo.c fonts.c globals.c initfonts.c main.c \
10 resource.c swaprep.c swapreq.c tables.c
12 .PATH
: ${X11SRCDIR.xc
}/programs
/${PROG}/os
13 SRCS
+= access.c config.c connection.c daemon.c error.c io.c osglue.c \
14 osinit.c utils.c waitfor.c
16 CPPFLAGS
+= -I
${X11SRCDIR.xc
}/programs
/xfs
/include \
17 -I
${X11SRCDIR.xc
}/include/fonts \
18 -I
${X11SRCDIR.xc
}/lib
/font
/include \
19 -I
${X11SRCDIR.xc
}/lib
/font
/bitmap
21 CONN_DEFINES
= ${X11FLAGS.CONNECTION
} -DFONT_t
-DTRANS_SERVER \
24 XFSCONFIGDIR
= ${X11ETCDIR}/fs
26 CPPFLAGS.main.c
= -DDEFAULT_CONFIG_FILE
=\"${XFSCONFIGDIR}/config
\"
27 CPPFLAGS.initfonts.c
= -DFONT_PCF
-DFONT_FS
-DFONT_SPEEDO
-DFONTCACHE
28 CPPFLAGS.connection.c
= ${CONN_DEFINES} -DBSD44SOCKETS \
29 ${X11FLAGS.OS_DEFINES
}
30 CPPFLAGS.utils.c
= -DXFSPIDDIR
=\"/var
/run
\"
31 CPPFLAGS.io.c
= ${CONN_DEFINES}
32 CPPFLAGS.waitfor.c
= ${CONN_DEFINES}
33 CPPFLAGS.error.c
= -DUSE_SYSLOG
34 CPPFLAGS.osglue.c
= ${CONN_DEFINES} \
35 ${X11FLAGS.OS_DEFINES
}
36 CPPFLAGS.config.c
= ${CONN_DEFINES} -DFONTCACHE
38 X11EXTRAMANDEFS
+= -DDEFAULT_CONFIG_FILE
=${XFSCONFIGDIR}/config
41 BUILDSYMLINKS
= config.
cpp fsconfig.
cpp
43 CPPSCRIPTFLAGS
= -DDEFAULTFONTPATH
=${X11FONTDIR}/misc
/,${X11FONTDIR}/Speedo
/,${X11FONTDIR}/Type1
/,${X11FONTDIR}/CID
/,${X11FONTDIR}/75dpi
/,${X11FONTDIR}/100dpi
/ \
44 -DFSERRORS
=/var
/log
/xfs.log
48 FILESDIR
= ${XFSCONFIGDIR}
51 LDADD
+= -lXfont
-lfntstubs
-lXfontcache
-lXext
-lX11
-lfreetype
-lm
-lz
52 DPADD
+= ${LIBXFONT} ${LIBFNTSTUBS} ${LIBXFONTCACHE} ${LIBXEXT} ${LIBX11} \
53 ${LIBFREETYPE} ${LIBM} ${LIBZ}
55 .PATH
: ${X11SRCDIR.xc
}/programs
/${PROG}
58 .
include <bsd.prog.mk
>