1 diff --git a/Makefile b/Makefile
2 index e65b64c..52af5ed 100644
5 @@ -41,8 +41,9 @@ all: ttmkfdir
7 libtool --mode=compile $(CXX) $(CXXFLAGS) -o $@ -c $^
9 +# ulgy hack for libtool to find .o files !!
10 ttmkfdir: ttmkfdir.o directory.o commandline.o ttf.o encoding.o parser.o builtin.o
11 - libtool --mode=link $(CXX) -o $@ $^ $(LDFLAGS)
12 + libtool --mode=link $(CXX) -o $@ ./.libs/ttmkfdir.o ./.libs/directory.o ./.libs/commandline.o ./.libs/ttf.o ./.libs/encoding.o ./.libs/parser.o ./.libs/builtin.o $(LDFLAGS)
14 parser.cpp: encoding.l
16 diff --git a/encoding.cpp b/encoding.cpp
17 index 9035d35..b4e9733 100644
24 -#include "freetype/freetype.h"
25 +#include <ft2build.h>
26 +#include FT_FREETYPE_H
27 +#include <freetype/ftsnames.h>
31 diff --git a/encoding.h b/encoding.h
32 index fc618bc..e01518f 100644
39 -#include "freetype/freetype.h"
40 +#include <ft2build.h>
41 +#include FT_FREETYPE_H
45 diff --git a/ttf.cpp b/ttf.cpp
46 index 1dda774..97b37f3 100644
49 @@ -239,7 +239,7 @@ Face::FontFamilyName (void) const
50 for (i = 0; i < n; i++) {
51 if ((fterror = FT_Get_Sfnt_Name (face, i, &NamePtr)) != FT_Err_Ok) {
52 std::cout << "Warning: Can't SFNT name : " << FileName << "(" << fterror << ")" << std::endl;
56 platform = NamePtr.platform_id;
57 encoding = NamePtr.encoding_id;
58 diff --git a/ttf.h b/ttf.h
59 index 4261ef8..c4a0f1f 100644
66 +#include <ft2build.h>
67 +#include FT_FREETYPE_H
68 #include "freetype/freetype.h"
69 #include "freetype/tttables.h"
70 #include "freetype/ftsnames.h"
71 #include "freetype/ttnameid.h"
72 #include "freetype/fterrors.h"
73 -#include "freetype/ftmodule.h"
75 +#include "freetype/ftmodapi.h"