# Makefile for ttfbanner
#
# This Makefile assumes that you've already built and installed
# the FreeType library.

VPATH = @srcdir@
srcdir = @srcdir@

RM = @RM@
RMF = @RM@ -f

INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@

CC = @CC@
CPP = @CPP@

LIBTOOL = ../../libtool
MKINSTALLDIRS = $(srcdir)/../../mkinstalldirs

prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
mandir = @mandir@

CFLAGS = @CFLAGS@ @XX_CFLAGS@
CPPFLAGS = @CPPFLAGS@ @DEFS@
FT_CFLAGS = $(CFLAGS) $(CPPFLAGS)
LDFLAGS = @LDFLAGS@ @LIBS@
LIBDIR = ../../lib

SRC = ttfbanner.c

default all: ttfbanner

ttfbanner: ttfbanner.o $(LIBDIR)/libttf.la
	$(LIBTOOL) --mode=link $(CC) $(FT_CFLAGS) -o $@ $< \
			       $(LIBDIR)/libttf.la $(LDFLAGS)

clean:
	$(RMF) *.o *BAK *CKP *~ a.out core

realclean: clean
	$(RMF) ttfbanner
	$(RM) -rf .libs/

distclean: realclean
	$(RMF) *~ *.orig core *.core
	$(RMF) config.cache config.log config.status Makefile

.c.o:
	$(CC) -c $(FT_CFLAGS) $<

install: ttfbanner
	$(MKINSTALLDIRS) $(bindir)
	$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ttfbanner $(bindir)/

uninstall:
	$(LIBTOOL) --mode=uninstall $(RM) $(bindir)/ttfbanner

.PHONY: all clean realclean distclean install uninstall

# end of Makefile
