Sync usage with man page.
[netbsd-mini2440.git] / x11 / Xserver / fontbase / Makefile
blob5de974471099e7f3f87e93ca2d8402605961190c
1 # $NetBSD: Makefile,v 1.1 2003/12/23 03:36:44 rtr Exp $
3 .include "../Makefile.serverlib"
5 .include <bsd.own.mk>
7 LIB= fontbase
10 # fontfile
11 .PATH: ${X11SRCDIR.xc}/lib/font/fontfile
12 SRCS.fontfile= dirfile.c fontdir.c fontfile.c fileio.c fontscale.c \
13 defaults.c bitsource.c register.c renderers.c bufio.c \
14 decompress.c filewr.c printerfont.c ffcheck.c \
15 fontenc.c encparse.c fontencc.c gunzip.c
16 .for fn in ${SRCS.fontfile}
17 CPPFLAGS.${fn}= -I${X11SRCDIR.xc}/include/fonts \
18 -I${X11SRCDIR.xc}/lib/font/include \
19 -I${X11SRCDIR.xc}/programs/Xserver/include \
20 -DFONTDIRATTRIB -DBUILD_SPEEDO -DBUILD_TYPE1 -DBUILD_CID \
21 -DBUILD_FREETYPE -DX_GZIP_FONT_COMPRESSION \
22 -DFONT_ENCODINGS_DIRECTORY=\"${X11FONTDIR}/encodings/encodings.dir\"
23 .endfor
24 CPPFLAGS.ffcheck.c+= -DLOADABLEFONTS
25 CPPFLAGS.register.c+= -DLOADABLEFONTS
28 # fc
29 .PATH: ${X11SRCDIR.xc}/lib/font/fc
30 SRCS.fc= fsconvert.c fserve.c fsio.c
31 .PATH: ${X11SRCDIR.xc}/lib/xtrans
32 SRCS.fc+= transport.c
33 .for fn in ${SRCS.fc}
34 CPPFLAGS.${fn}= -I${X11SRCDIR.xc}/include/fonts \
35 -I${X11SRCDIR.xc}/lib/font/include \
36 -I${X11SRCDIR.xc}/lib/xtrans \
37 ${X11FLAGS.CONNECTION} \
38 -DFONT_t -DTRANS_CLIENT -DTRANS_SERVER -DTRANS_REOPEN \
39 -DBSD44SOCKETS
40 .endfor
43 # fontcache
44 .PATH: ${X11SRCDIR.xc}/lib/font/fontcache
45 SRCS.fontcache= fontcache.c
46 .for fn in ${SRCS.fontcache}
47 CPPFLAGS.${fn}= -I${X11SRCDIR.xc}/lib/font/fontcache \
48 -I${X11SRCDIR.xc}/include/fonts \
49 -I${X11SRCDIR.xc}/lib/font/include \
50 -I${X11SRCDIR.xc}/lib/font/fontcache \
51 -DFONTCACHE
52 .endfor
55 # util
56 .PATH: ${X11SRCDIR.xc}/lib/font/util
57 SRCS.util= utilbitmap.c fontnames.c fontutil.c fontxlfd.c format.c \
58 fontaccel.c atom.c miscutil.c private.c patcache.c
59 .for fn in ${SRCS.util}
60 CPPFLAGS.${fn}= -I${X11SRCDIR.xc}/include/fonts \
61 -I${X11SRCDIR.xc}/lib/font/include
62 .endfor
64 SRCS= ${SRCS.fontfile} ${SRCS.fc} ${SRCS.util} ${SRCS.fontcache}
66 .include <bsd.x11.mk>
67 .include <bsd.lib.mk>