Drop main() prototype. Syncs with NetBSD-8
[minix.git] / external / mit / xorg / lib / libXfont / Makefile
blob08f5927c834de3a5f76cfa923e84ac5cd82c58ad
1 # $NetBSD: Makefile,v 1.10 2015/02/25 20:01:39 snj Exp $
3 .include <bsd.own.mk>
4 .if defined(__MINIX)
5 NOCLANGERROR= yes
6 NOGCCERROR= yes
7 .endif # defined(__MINIX)
9 LIB= Xfont
10 XFONTDIR= ${X11SRCDIR.${LIB}}
11 .PATH: ${XFONTDIR}/src
12 .PATH: ${XFONTDIR}/src/FreeType
13 #.PATH: ${XFONTDIR}/src/Speedo
14 #.PATH: ${XFONTDIR}/src/Type1
15 .PATH: ${XFONTDIR}/src/bitmap
16 .PATH: ${XFONTDIR}/src/builtins
17 .PATH: ${XFONTDIR}/src/fc
18 .PATH: ${XFONTDIR}/src/fontcache
19 .PATH: ${XFONTDIR}/src/fontfile
20 .PATH: ${XFONTDIR}/src/stubs
21 .PATH: ${XFONTDIR}/src/util
22 .PATH: ${XFONTDIR}/include/X11/fonts
23 .PATH: ${XFONTDIR}/../include
25 SRCS= ftenc.c ftfuncs.c fttools.c xttcap.c \
26 bdfread.c bdfutils.c bitmap.c bitmapfunc.c bitmaputil.c \
27 bitscale.c fontink.c pcfread.c pcfwrite.c snfread.c dir.c file.c \
28 fonts.c fpe.c render.c fsconvert.c fserve.c fsio.c fstrans.c \
29 bitsource.c bufio.c catalogue.c decompress.c defaults.c \
30 dirfile.c fileio.c filewr.c fontdir.c fontencc.c fontfile.c \
31 fontscale.c gunzip.c register.c renderers.c bunzip2.c cauthgen.c \
32 csignal.c delfntcid.c errorf.c findoldfnt.c \
33 getcres.c getdefptsize.c getnewfntcid.c gettime.c initfshdl.c \
34 regfpefunc.c rmfshdl.c servclient.c setfntauth.c stfntcfnt.c \
35 atom.c fontaccel.c fontnames.c fontutil.c fontxlfd.c \
36 format.c miscutil.c patcache.c private.c utilbitmap.c stubsinit.c
38 INCS= bdfint.h bitmap.h bufio.h fntfil.h fntfilio.h fntfilst.h \
39 fontconf.h fontencc.h fontmisc.h fontshow.h \
40 fontutil.h fontxlfd.h ft.h ftfuncs.h pcf.h
41 INCSDIR=${X11INCDIR}/X11/fonts
43 CPPFLAGS+= ${X11FLAGS.THREADLIB} ${X11FLAGS.CONNECTION}
44 CPPFLAGS+= -DHAS_SNPRINTF -DHAVE_CONFIG_H
45 CPPFLAGS+= -DBDFFORMAT -DSNFFORMAT -DPCFFORMAT -DX_GZIP_FONT_COMPRESSION -DX_BZIP2_FONT_COMPRESSION
46 CPPFLAGS+= -DFONT_ENCODINGS_DIRECTORY=\"${X11LIBDIR}/X11/fonts/encodings/encodings.dir\"
47 CPPFLAGS+= -I${DESTDIR}${X11INCDIR}
48 CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11/fonts
49 CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/freetype2
50 CPPFLAGS+= -I${XFONTDIR}/src/stubs
51 CPPFLAGS+= -I${XFONTDIR}/../include
53 LIBDPLIBS=\
54 Xt ${.CURDIR}/../libXt \
55 SM ${.CURDIR}/../libSM \
56 ICE ${.CURDIR}/../libICE \
57 Xext ${.CURDIR}/../libXext \
58 fontenc ${.CURDIR}/../libfontenc \
59 freetype ${.CURDIR}/../freetype \
60 X11 ${.CURDIR}/../libX11/dynamic \
61 m ${.CURDIR}/../../../../../lib/libm \
62 z ${.CURDIR}/../../../../../lib/libz \
63 bz2 ${.CURDIR}/../../../../../lib/libbz2
65 # XXX
66 COPTS.ffcheck.c+= -Wno-error
67 COPTS.register.c+= -Wno-error
69 PKGDIST= ${LIB}
71 CWARNFLAGS.clang+= -Wno-tautological-compare -Wno-string-plus-int
73 .include <bsd.x11.mk>
74 .include <bsd.lib.mk>