1 # $NetBSD: Makefile,v 1.10 2005/03/21 14:38:48 tron Exp $
6 #.PATH: ${X11SRCDIR.xc}/lib/font
9 .PATH
: ${X11SRCDIR.xc
}/lib
/font
/bitmap
10 SRCS.bitmap
= bdfread.c bdfutils.c bitmap.c bitmaputil.c bitscale.c \
11 bitmapfunc.c pcfread.c pcfwrite.c snfread.c fontink.c
12 .for fn in
${SRCS.bitmap
}
13 CPPFLAGS.
${fn}= -I
${X11SRCDIR.xc
}/lib
/font
/include \
14 -I
${X11SRCDIR.xc
}/include/fonts
15 CPPFLAGS.
${fn}+=-DBDFFORMAT
-DPCFFORMAT
-DSNFFORMAT
17 CPPFLAGS.bitmapfunc.c
+= -DX_GZIP_FONT_COMPRESSION
18 CPPFLAGS.bitscale.c
+= -DX_GZIP_FONT_COMPRESSION
22 .PATH
: ${X11SRCDIR.xc
}/lib
/font
/fontfile
23 SRCS.fontfile
= dirfile.c fontdir.c fontfile.c fileio.c fontscale.c \
24 defaults.c bitsource.c register.c renderers.c bufio.c \
25 decompress.c filewr.c printerfont.c ffcheck.c \
26 fontenc.c encparse.c fontencc.c gunzip.c
27 .for fn in
${SRCS.fontfile
}
28 CPPFLAGS.
${fn}= -I
${X11SRCDIR.xc
}/lib
/font
/include \
29 -I
${X11SRCDIR.xc
}/include/fonts \
30 -I
${X11SRCDIR.xc
}/programs
/Xserver
/include
31 CPPFLAGS.
${fn}+=-DFONTDIRATTRIB
-DBUILD_SPEEDO
-DBUILD_TYPE1 \
32 -DBUILD_CID
-DBUILD_FREETYPE
-DX_GZIP_FONT_COMPRESSION \
33 -DFONT_ENCODINGS_DIRECTORY
=\"${X11FONTDIR}/encodings
/encodings.
dir\"
38 .PATH
: ${X11SRCDIR.xc
}/lib
/font
/fc
39 .PATH
: ${X11SRCDIR.xc
}/lib
/xtrans
40 SRCS.
fc= fsconvert.c fserve.c fsio.c transport.c
42 CPPFLAGS.
${fn}= -I
${DESTDIR}${X11INCDIR}/X11
/fonts \
43 -I
${X11SRCDIR.xc
}/lib
/font
/include \
44 -I
${X11SRCDIR.xc
}/lib
/xtrans \
45 -I
${X11SRCDIR.xc
}/include/fonts
46 CPPFLAGS.
${fn}+=${X11FLAGS.CONNECTION
} -DFONT_t
-DTRANS_CLIENT \
47 -DTRANS_SERVER
-DTRANS_REOPEN
-DBSD44SOCKETS
50 .PATH
: ${X11SRCDIR.xc
}/lib
/font
/fontcache
51 SRCS.fontcache
= fontcache.c
52 CPPFLAGS.fontcache.c
= -DFONTCACHE
53 CPPFLAGS.fontcache.c
+= -I
${X11SRCDIR.xc
}/lib
/font
/include \
54 -I
${X11SRCDIR.xc
}/include/fonts
58 .PATH
: ${X11SRCDIR.xc
}/lib
/font
/Speedo
59 SRCS.Speedo
= spfuncs.c spfile.c spinfo.c sperr.c spfont.c spglyph.c \
60 spencode.c bics-unicode.c do_char.c do_trns.c \
61 out_bl2d.c out_blk.c out_scrn.c out_util.c reset.c \
63 .for fn in
${SRCS.Speedo
}
64 CPPFLAGS.
${fn}= -I
${X11SRCDIR.xc
}/lib
/font
/include \
65 -I
${X11SRCDIR.xc
}/include/fonts \
66 -I
${X11SRCDIR.xc
}/programs
/Xserver
/include
71 .PATH
: ${X11SRCDIR.xc
}/lib
/font
/Type1
72 SRCS.Type1
= arith.c curves.c fontfcn.c hints.c lines.c objects.c \
73 paths.c regions.c scanfont.c spaces.c t1funcs.c \
74 t1info.c t1io.c t1malloc.c t1snap.c t1stub.c token.c \
75 type1.c util.c cidchar.c afm.c t1unicode.c
76 .for fn in
${SRCS.Type1
}
77 CPPFLAGS.
${fn}= -I
${X11SRCDIR.xc
}/lib
/font
/include \
78 -I
${X11SRCDIR.xc
}/include/fonts \
79 -I
${X11SRCDIR.xc
}/programs
/Xserver
/include \
80 -I
${DESTDIR}${X11INCDIR}/X11
81 CPPFLAGS.
${fn}+=-DBUILDCID
-DHAVE_CFM
-DUSE_MMAP
86 .PATH
: ${X11SRCDIR.xc
}/lib
/font
/FreeType
87 SRCS.FreeType
= xttcap.c ftfuncs.c ftenc.c fttools.c
88 #.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/base
89 #SRCS.FreeType+= ftbase.c ftinit.c ftglyph.c ftbbox.c ftsystem.c fttype1.c ftxf86.c ftbdf.c
90 #.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/bdf
91 #SRCS.FreeType+= bdfdrivr.c bdflib.c
92 #.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/raster
93 #SRCS.FreeType+= ftrend1.c ftraster.c
94 #.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/smooth
95 #SRCS.FreeType+= ftsmooth.c ftgrays.c
96 #.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/truetype
97 #SRCS.FreeType+= ttdriver.c ttobjs.c ttpload.c
98 #.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/psaux
99 #SRCS.FreeType+= psauxmod.c psobjs.c t1cmap.c t1decode.c
100 #.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/type1
101 #SRCS.FreeType+= t1driver.c
102 #.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/cid
103 #SRCS.FreeType+= cidriver.c cidgload.c cidobjs.c cidload.c cidparse.c
104 #.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/type42
105 #SRCS.FreeType+= t42drivr.c
106 #.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/psnames
107 #SRCS.FreeType+= psmodule.c
108 #.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/sfnt
109 #SRCS.FreeType+= sfdriver.c ttload.c ttpost.c ttsbit.c ttcmap.c sfobjs.c ttcmap0.c
110 #.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/winfonts
111 #SRCS.FreeType+= winfnt.c
112 #.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/autohint
113 #SRCS.FreeType+= ahmodule.c ahhint.c ahglyph.c ahangles.c ahglobal.c
114 #.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/cff
115 #SRCS.FreeType+= cffdrivr.c cffobjs.c cffload.c cffparse.c cffcmap.c cffgload.c
116 #.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/pfr
117 #SRCS.FreeType+= pfrdrivr.c pfrobjs.c pfrload.c pfrgload.c pfrcmap.c
118 #.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/pcf
119 #SRCS.FreeType+= pcfdriver.c pcfutil.c
120 .for fn in
${SRCS.FreeType
}
121 CPPFLAGS.
${fn}= -I
${DESTDIR}${X11INCDIR}/freetype2 \
122 -I
${X11SRCDIR.xc
}/include/fonts \
123 -I
${X11SRCDIR.xc
}/lib
/font
/include \
124 -I
${DESTDIR}${X11INCDIR}/X11 \
125 -I
${X11SRCDIR.xc
}/programs
/Xserver
/include \
126 -I
${X11SRCDIR.xc
}/extras
/freetype2
/src
/truetype \
127 -I
${X11SRCDIR.xc
}/extras
/freetype2
/src
/pcf
128 CPPFLAGS.
${fn}+=${X11FLAGS.SERVER
} -DXFreeXDGA
-DXFree86LOADER \
129 -DXF86VIDMODE
-DXFREE86_FT2
134 # .PATH: ${X11SRCDIR.xc}/lib/font/X-TrueType
135 # .PATH: ${X11SRCDIR.xc}/extras/FreeType/lib/arch/unix
136 # SRCS.X-TrueType=xttprop.c xttfuncs.c xttcconv.c xttcap.c xttmisc.c \
137 # xttblit.c freetype.c ftxcmap.c ftxsbit.c
138 #.for fn in ${SRCS.X-TrueType}
139 #CPPFLAGS.${fn}= -DTT_MAKE_OPTION_SINGLE_OBJECT=1 \
140 # -DTT_CONFIG_OPTION_EXTEND_ENGINE \
141 # -DOPT_ENCODINGS -DFREETYPE1_BUILD_DEFINES
146 #.PATH: ${X11SRCDIR.xc}/lib/font/builtins
147 #SRCS.builtins= dir.c file.c fonts.c fpe.c render.c
148 #.for fn in ${SRCS.builtins}
149 #CPPFLAGS.${fn}= -I${X11SRCDIR.xc}/lib/font/include \
150 # -I${X11SRCDIR.xc}/include/fonts
155 .PATH
: ${X11SRCDIR.xc
}/lib
/font
/util
156 SRCS.util
= utilbitmap.c fontnames.c fontutil.c fontxlfd.c \
157 format.c fontaccel.c atom.c miscutil.c private.c \
159 .for fn in
${SRCS.util
}
160 CPPFLAGS.
${fn}= -I
${X11SRCDIR.xc
}/lib
/font
/include \
161 -I
${X11SRCDIR.xc
}/include/fonts
164 SRCS
= ${SRCS.bitmap
} ${SRCS.fontfile
} ${SRCS.
fc} \
165 ${SRCS.fontcache
} ${SRCS.Speedo
} ${SRCS.Type1
} \
166 ${SRCS.FreeType
} ${SRCS.X-TrueType
} ${SRCS.builtins
} \
172 freetype
${.CURDIR
}/..
/freetype2 \
173 Xext
${.CURDIR
}/..
/Xext \
174 X11
${.CURDIR
}/..
/X11
/dynamic
176 .
include <bsd.x11.mk
>
177 .
include <bsd.lib.mk
>
178 .
include <bsd.subdir.mk
>