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

ARCH = arch/unix
FT_MAKEFILE = $(ARCH)/Makefile

RM = rm
RMF = rm -f
RMDIR = rmdir
LN_S = ln

INSTALL = ../../.././install-sh -c
INSTALL_DATA = ${INSTALL} -m 644

VPATH = /sub2/decw_port/freetype-1_1/lib/arch/unix/../..
srcdir = /sub2/decw_port/freetype-1_1/lib/arch/unix/../..

top_builddir=..

CC = cc

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

version_info = 2:0:0

include $(top_builddir)/MakeSub

############### 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 default extensions
FTEXTDIR = $(srcdir)/extend


# default extensions sources
EXTSRC = $(FTEXTDIR)/ftxkern.c  \
         $(FTEXTDIR)/ftxgasp.c  \
         $(FTEXTDIR)/ftxpost.c  \
         $(FTEXTDIR)/ftxcmap.c  \
         $(FTEXTDIR)/ftxwidth.c \
         $(FTEXTDIR)/ftxerr18.c

EXTOBJ = ftxkern.lo \
         ftxgasp.lo \
         ftxpost.lo \
         ftxcmap.lo \
         ftxwidth.lo \
         ftxerr18.lo

# all engine sources
SRC_M = $(srcdir)/ttapi.c     \
        $(srcdir)/ttcache.c   \
        $(srcdir)/ttcalc.c    \
        $(srcdir)/ttcmap.c    \
        $(srcdir)/ttdebug.c   \
        $(srcdir)/ttextend.c  \
        $(srcdir)/ttgload.c   \
        $(srcdir)/ttinterp.c  \
        $(srcdir)/ttload.c    \
        $(srcdir)/ttobjs.c    \
        $(srcdir)/ttraster.c  \
        $(srcdir)/$(FILESRC)  \
        $(srcdir)/$(MEMSRC)   \
        $(srcdir)/$(MUTEXSRC)
SRC_S = $(srcdir)/$(ARCH)/freetype.c

# all header files with path for installation
FULLHEADERS = $(srcdir)/freetype.h   \
              $(srcdir)/fterrid.h    \
              $(srcdir)/ftnameid.h   \
              $(FTEXTDIR)/ftxkern.h  \
              $(FTEXTDIR)/ftxgasp.h  \
              $(FTEXTDIR)/ftxcmap.h  \
              $(FTEXTDIR)/ftxpost.h  \
              $(FTEXTDIR)/ftxwidth.h \
              $(FTEXTDIR)/ftxerr18.h

# all header files without path uninstallation
HEADERS = freetype.h \
          fterrid.h  \
          ftnameid.h \
          ftxkern.h  \
          ftxgasp.h  \
          ftxcmap.h  \
          ftxpost.h  \
          ftxwidth.h \
          ftxerr18.h

# all engine objects
OBJ_M = ttapi.lo    \
        ttcache.lo  \
        ttcalc.lo   \
        ttcmap.lo   \
        ttdebug.lo  \
        ttextend.lo \
        ttgload.lo  \
        ttinterp.lo \
        ttload.lo   \
        ttobjs.lo   \
        ttraster.lo \
        file.lo     \
        memory.lo   \
        mutex.lo    \
        $(EXTOBJ)
OBJ_S = freetype.lo $(EXTOBJ)


# include paths
INCLUDES = -I. -I$(top_builddir) -I$(srcdir) -I$(FTEXTDIR)

# C flags
CFLAGS = -g 
CPPFLAGS = 
FT_CFLAGS = $(CFLAGS) $(INCLUDES)

# linker flags
FT_LIBS = -lm -lintl 

# i18n stuff
LOCALEDIR = /usr/local/share/locale


all: do_link
	$(MAKE) -f $(FT_MAKEFILE) LIB_FILES=OBJ_S libttf.la

debug: do_link
	$(MAKE) -f $(FT_MAKEFILE) LIB_FILES=OBJ_M libttf.la


do_link:
	-$(RMF) memory.c file.c mutex.c
	$(LN_S) $(srcdir)/$(MEMSRC) memory.c
	$(LN_S) $(srcdir)/$(FILESRC) file.c
	$(LN_S) $(srcdir)/$(MUTEXSRC) mutex.c


.SUFFIXES: .lo
.c.lo:
	$(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $<

ftxkern.lo: $(FTEXTDIR)/ftxkern.c
	$(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxkern.c

ftxgasp.lo: $(FTEXTDIR)/ftxgasp.c
	$(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxgasp.c

ftxpost.lo: $(FTEXTDIR)/ftxpost.c
	$(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxpost.c

ftxcmap.lo: $(FTEXTDIR)/ftxcmap.c
	$(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxcmap.c

ftxwidth.lo: $(FTEXTDIR)/ftxwidth.c
	$(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxwidth.c

ftxerr18.lo: $(FTEXTDIR)/ftxerr18.c
	$(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) \
                                  -DLOCALEDIR='"$(LOCALEDIR)"' \
                                  $(FTEXTDIR)/ftxerr18.c

freetype.lo: $(SRC_S) $(SRC_M)
	$(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) \
                                        -DLOCALEDIR='"$(LOCALEDIR)"' \
                                        -DTT_MAKE_OPTION_SINGLE_OBJECT \
                                        $(SRC_S)

libttf.la: $($(LIB_FILES)) 
	$(LIBTOOL) --mode=link $(CC) -o libttf.la $($(LIB_FILES)) \
                               -rpath $(libdir) \
                               -version-info $(version_info) $(FT_LIBS)

install: libttf.la
	$(MKINSTALLDIRS) $(libdir) $(includedir)
	$(LIBTOOL) --mode=install $(INSTALL) libttf.la $(libdir)
	-for P in $(FULLHEADERS) ; do \
          $(INSTALL_DATA) $$P $(includedir) ; \
        done

uninstall: 
	-$(LIBTOOL) --mode=uninstall $(RM) $(libdir)/libttf.la
	-for P in $(HEADERS) ; do \
          $(RMF) $(includedir)/$$P ; \
        done

clean:
	-$(RMF) $(OBJ_S) $(OBJ_M) *.o

distclean: clean
	-$(RMF) file.c memory.c mutex.c
	-$(RMF) libttf.la
	-$(RMF) *.orig *~ core *.core
	-$(RMF) $(ARCH)/Makefile
	-$(RMF) .libs/*
	-$(RMDIR) .libs

depend: do_link
	(echo '/^#.* PUT NO STUFF BELOW/,$$d' ; echo w ; echo q) | \
         ed - $(ARCH)/Makefile
	echo '# Dependencies generated by make depend: PUT NO STUFF BELOW' \
          >> $(ARCH)/Makefile
	for file in $(SRC_S) $(SRC_M) $(EXTSRC) ; do \
          $(CC) $(CPPFLAGS) $(INCLUDES) -E $$file | \
           sed -n -e 's|^# [1-9][0-9]* "\([^/].*\.h\)".*|\1|p' \
                  -e 's|^# [1-9][0-9]* "\($(srcdir)/.*\.h\)".*|\1|p' | \
           sed -e 's|/\./|.|g' -e "s/^/`basename $$file .c`.lo: /" ; \
        done | \
         sort -u | \
         awk '{ if (LINE == 1) \
                  { line = last = $$1 } \
                else if ($$1 != last) \
                  { print line ; line = last = $$1 } \
                line = line " " $$2 } \
              END { print line }' >> $(ARCH)/Makefile

# Dependencies generated by make depend: PUT NO STUFF BELOW
