Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / mit / xorg / lib / libXfont / Makefile
blob90d46b001bc06e7fd0f5c174625b5b70540efa2c
1 # $NetBSD: Makefile,v 1.6 2009/06/10 07:52:07 mrg Exp $
3 .include <bsd.own.mk>
5 LIB= Xfont
6 XFONTDIR= ${X11SRCDIR.${LIB}}
7 .PATH: ${XFONTDIR}/src
8 .PATH: ${XFONTDIR}/src/FreeType
9 #.PATH: ${XFONTDIR}/src/Speedo
10 #.PATH: ${XFONTDIR}/src/Type1
11 .PATH: ${XFONTDIR}/src/bitmap
12 .PATH: ${XFONTDIR}/src/builtins
13 .PATH: ${XFONTDIR}/src/fc
14 .PATH: ${XFONTDIR}/src/fontcache
15 .PATH: ${XFONTDIR}/src/fontfile
16 .PATH: ${XFONTDIR}/src/stubs
17 .PATH: ${XFONTDIR}/src/util
18 .PATH: ${XFONTDIR}/include/X11/fonts
19 .PATH: ${XFONTDIR}/../include
21 SRCS= ftenc.c ftfuncs.c fttools.c xttcap.c \
22 bdfread.c bdfutils.c bitmap.c bitmapfunc.c bitmaputil.c \
23 bitscale.c fontink.c pcfread.c pcfwrite.c snfread.c dir.c file.c \
24 fonts.c fpe.c render.c fsconvert.c fserve.c fsio.c fstrans.c \
25 bitsource.c bufio.c catalogue.c decompress.c defaults.c \
26 dirfile.c fileio.c filewr.c fontdir.c fontencc.c fontfile.c \
27 fontscale.c gunzip.c register.c renderers.c bunzip2.c cauthgen.c \
28 csignal.c delfntcid.c errorf.c fatalerror.c findoldfnt.c \
29 getcres.c getdefptsize.c getnewfntcid.c gettime.c initfshdl.c \
30 regfpefunc.c rmfshdl.c servclient.c setfntauth.c stfntcfnt.c \
31 atom.c fontaccel.c fontnames.c fontutil.c fontxlfd.c \
32 format.c miscutil.c patcache.c private.c utilbitmap.c
34 INCS= bdfint.h bitmap.h bufio.h fntfil.h fntfilio.h fntfilst.h \
35 fontconf.h fontencc.h fontmisc.h fontshow.h \
36 fontutil.h fontxlfd.h ft.h ftfuncs.h pcf.h
37 INCSDIR=${X11INCDIR}/X11/fonts
39 CPPFLAGS+= ${X11FLAGS.THREADLIB} ${X11FLAGS.CONNECTION}
40 CPPFLAGS+= -DHAS_SNPRINTF -DHAVE_CONFIG_H
41 CPPFLAGS+= -DBDFFORMAT -DSNFFORMAT -DPCFFORMAT -DX_GZIP_FONT_COMPRESSION -DX_BZIP2_FONT_COMPRESSION
42 CPPFLAGS+= -DFONT_ENCODINGS_DIRECTORY=\"${X11LIBDIR}/X11/fonts/encodings/encodings.dir\"
43 CPPFLAGS+= -I${DESTDIR}${X11INCDIR}
44 CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11/fonts
45 CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/freetype2
46 CPPFLAGS+= -I${XFONTDIR}/src/stubs
47 CPPFLAGS+= -I${XFONTDIR}/../include
50 LIBDPLIBS=\
51 Xt ${.CURDIR}/../libXt \
52 SM ${.CURDIR}/../libSM \
53 ICE ${.CURDIR}/../libICE \
54 Xext ${.CURDIR}/../libXext \
55 fontenc ${.CURDIR}/../libfontenc \
56 freetype ${.CURDIR}/../freetype \
57 X11 ${.CURDIR}/../libX11/dynamic \
58 m ${.CURDIR}/../../../../../lib/libm \
59 z ${.CURDIR}/../../../../../lib/libz \
60 bz2 ${.CURDIR}/../../../../../lib/libbz2
62 # XXX
63 COPTS.ffcheck.c+= -Wno-error
64 COPTS.register.c+= -Wno-error
66 PKGDIST= ${LIB}
68 .include <bsd.x11.mk>
69 .include <bsd.lib.mk>