summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2015-09-02 19:15:27 -0700
committerMatt Turner <mattst88@gmail.com>2015-12-09 11:39:15 -0800
commit903cd14547b445d7f40b52462750fc8b28441581 (patch)
treebc12bd72eb0801c483443df1f17030ce70872fd7 /Makefile.am
parent9928d71ec04cd630a8ed9c583d144decb4e98c05 (diff)
Convert to non-recursive build.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am114
1 files changed, 113 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 43ccd34..86870bb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,7 +19,7 @@
# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
-SUBDIRS=doc src
+SUBDIRS=doc
libXfontincludedir = $(includedir)/X11/fonts
libXfontinclude_HEADERS = \
@@ -48,6 +48,118 @@ nodist_libXfontinclude_HEADERS = \
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = xfont2.pc
+lib_LTLIBRARIES = libXfont2.la
+
+AM_CPPFLAGS = -I${top_srcdir}/include
+AM_CFLAGS = $(XFONT_CFLAGS) $(OS_CFLAGS) $(CWARNFLAGS)
+
+libXfont2_la_SOURCES = \
+ src/stubs/atom.c \
+ src/stubs/libxfontstubs.c \
+ src/util/fontaccel.c \
+ src/util/fontnames.c \
+ src/util/fontutil.c \
+ src/util/fontxlfd.c \
+ src/util/format.c \
+ src/util/miscutil.c \
+ src/util/patcache.c \
+ src/util/private.c \
+ src/util/utilbitmap.c
+
+libXfont2_la_LDFLAGS = -version-number 2:0:0 -no-undefined
+
+libXfont2_la_LIBADD = $(Z_LIBS) $(MATH_LIBS) $(XFONT_LIBS)
+
+if XFONT_FONTFILE
+libXfont2_la_SOURCES += \
+ src/fontfile/bitsource.c \
+ src/fontfile/bufio.c \
+ src/fontfile/decompress.c \
+ src/fontfile/defaults.c \
+ src/fontfile/dirfile.c \
+ src/fontfile/fileio.c \
+ src/fontfile/filewr.c \
+ src/fontfile/fontdir.c \
+ src/fontfile/fontencc.c \
+ src/fontfile/fontfile.c \
+ src/fontfile/fontscale.c \
+ src/fontfile/gunzip.c \
+ src/fontfile/register.c \
+ src/fontfile/renderers.c \
+ src/fontfile/catalogue.c
+
+if X_BZIP2_FONT_COMPRESSION
+libXfont2_la_SOURCES += src/fontfile/bunzip2.c
+endif
+endif
+
+if XFONT_FREETYPE
+AM_CFLAGS += $(FREETYPE_CFLAGS)
+
+libXfont2_la_LIBADD += $(FREETYPE_LIBS)
+libXfont2_la_SOURCES += \
+ src/FreeType/ft.h \
+ src/FreeType/ftfuncs.h \
+ src/FreeType/xttcap.h \
+ src/FreeType/ftenc.c \
+ src/FreeType/ftfuncs.c \
+ src/FreeType/fttools.c \
+ src/FreeType/xttcap.c
+endif
+
+if XFONT_BITMAP
+libXfont2_la_SOURCES += \
+ src/bitmap/bitmap.c \
+ src/bitmap/bitmapfunc.c \
+ src/bitmap/bitmaputil.c \
+ src/bitmap/bitscale.c \
+ src/bitmap/fontink.c
+
+if XFONT_BDFFORMAT
+libXfont2_la_SOURCES += \
+ src/bitmap/bdfread.c \
+ src/bitmap/bdfutils.c
+endif
+
+if XFONT_PCF_OR_BUILTIN
+libXfont2_la_SOURCES += src/bitmap/pcfread.c
+endif
+
+if XFONT_PCFFORMAT
+libXfont2_la_SOURCES += src/bitmap/pcfwrite.c
+endif
+
+if XFONT_SNFFORMAT
+libXfont2_la_SOURCES += \
+ src/bitmap/snfread.c \
+ src/bitmap/snfstr.h
+endif
+endif
+
+if XFONT_BUILTINS
+libXfont2_la_SOURCES += \
+ src/builtins/builtin.h \
+ src/builtins/dir.c \
+ src/builtins/file.c \
+ src/builtins/fonts.c \
+ src/builtins/fpe.c \
+ src/builtins/render.c
+endif
+
+if XFONT_FC
+libXfont2_la_SOURCES += \
+ src/fc/fsconvert.c \
+ src/fc/fserve.c \
+ src/fc/fserve.h \
+ src/fc/fservestr.h \
+ src/fc/fsio.c \
+ src/fc/fsio.h \
+ src/fc/fslibos.h \
+ src/fc/fstrans.c
+endif
+
+EXTRA_DIST = src/builtins/buildfont
+
MAINTAINERCLEANFILES = ChangeLog INSTALL
.PHONY: ChangeLog INSTALL