# Makefile.in
# 
# This file is part of the t1lib-package! See documentation and Readme files
# of the t1lib-package for copyright restrictions.
#
# Targets provided: 
#                      all (default)
#                      install
#                      clean
#
# Author:              Rainer Menzner (Rainer.Menzner@web.de)
# Date:                04/06/1997
# Last modified:       2001-04-01
#
# Modified by H.Kakugawa to use libtool

LIBTOOL   = ../../libtool
SHELL     = /bin/sh
CC        = gcc
CPP       = gcc -E
CFLAGS    = -g -O2 -DT1LIB_IDENT="\"5.1.0\"" -DGLOBAL_CONFIG_DIR="\"${prefix}/share/t1lib\"" -DT1LIB_NO_X11_SUPPORT
OPTIONS   = 
X_LIBS    = 
TOPSRC    = ../..
XPM_LIB   = -lXpm
XLIB      =  -lXext -lX11 
LDFLAGS   = 
LDLIBS    = -lm
AR        = ar rc
RANLIB    = ranlib
RM        = rm -f
X_CFLAGS  = 
YACC      = @YACC@
LEX       = @LEX@
LEXLIB    = @LEXLIB@
ALLCFLAGS = $(CFLAGS) 
SUBMAKE   = $(MAKE) 'CC=$(CC)' 'CFLAGS=$(ALLCFLAGS)' 'OPTIONS=$(OPTIONS)'


INSTALL         = /bin/install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA    = ${INSTALL} -m 644
MKINSTALLDIRS   = ../../ac-tools/mkinstalldirs
prefix          = /usr/local
exec_prefix     = ${prefix}
includedir      = ${prefix}/include
bindir          = ${exec_prefix}/bin
datadir         = ${prefix}/share
libdir          = ${exec_prefix}/lib
mandir          = ${prefix}/man/man1
manext          = .1
no_x            = yes


# targets to build: 

OBJS = \
	arith.lo \
	curves.lo \
	fontfcn.lo \
	hints.lo \
	lines.lo \
	objects.lo \
	paths.lo \
	regions.lo \
	scanfont.lo \
	spaces.lo \
	t1io.lo \
	t1snap.lo \
	t1stub.lo \
	token.lo \
	type1.lo \
	util.lo 


.SUFFIXES: .c .o .lo
.c.lo:
	$(LIBTOOL) --mode=compile \
		$(CC) -c $(CPPFLAGS) $(CFLAGS) $<

.c.o:
	$(LIBTOOL) --mode=compile \
		$(CC) -c $(CPPFLAGS) $(CFLAGS) $< 


all: $(OBJS)

.PHONY: clean

dependencies: dummy 
	gcc -MM *.c | sed 's/\.o:/.lo:/g' > .dependencies 

clean: dummy
	-$(RM) *.lo *.o .libs/*
	-$(RM) *~ *.bak \#*\#
	-rmdir .libs

install: dummy


dummy:


# Dependencies of object files 
include .dependencies

