# Generated automatically from Makefile.in by configure.
# This file is part of the FreeType project.
#
# lib/Makefile.in

CC = cc

RANLIB = :

############### PORTABILITY COMPONENTS ########################

# location of memory component
MEMSRC = ./ttmemory.c

# location of file component
FILESRC = ttfile.c

# location of mutex component
MUTEXSRC = ./ttmutex.c

# location of all replacable components
SYSSRC = $(MEMSRC)  $(FILESRC)  $(MUTEXSRC)

# location of default extensions
EXTDIR = extend

# default extensions sources
EXTSRC = $(EXTDIR)/ftxkern.c  \
         $(EXTDIR)/ftxgasp.c

# all engine sources
SRC = ttapi.c     ttcache.c   ttcalc.c    ttcmap.c   tterror.c \
      ttextend.c  ttgload.c   ttinterp.c  ttlists.c  ttload.c  \
      ttobjs.c    ttraster.c  $(SYSSRC)   $(EXTSRC)

# all engine objects
OBJ = $(SRC:.c=.o)

# include paths
INCLUDES = -I. -I.. -I/usr/include -I$(EXTDIR)

# C flags
CFLAGS = -g  $(INCLUDES)

all: libttf.a

ttmemory.o: $(MEMSRC)
	$(CC) -c $(CFLAGS) $(MEMSRC) -o ttmemory.o

ttfile.o: $(FILESRC)
	$(CC) -c $(CFLAGS) $(FILESRC) -o ttfile.o

ttmutex.o: $(MUTEXSRC)
	$(CC) -c $(CFLAGS) $(MUTEXSRC) -o ttmutex.o

libttf.a: $(OBJ) 
	$(AR) rc $@ $(OBJ)
	$(RANLIB) libttf.a

clean:
	-$(RM) $(OBJ)

distclean: clean
	-$(RM) dep.end libttf.a
	-$(RM) *.orig *~ core
	-$(RM) Makefile

# depend:
#	$(CC) -E -M $(SRC) > dep.end

# ifeq (dep.end,$(wildcard dep.end))
#   include dep.end
# endif

# end of Makefile.in
