diff options
author | peter1138 <peter1138@openttd.org> | 2006-11-16 22:05:33 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-11-16 22:05:33 +0000 |
commit | 1a4f1c8177f7ee351cb0096e3456d055b97dc60a (patch) | |
tree | 4fb6c0fac873efffc85cef437baa70d50d51fdfb /Makefile | |
parent | 40d647ddde652bb8f1c7b4215279cc82d01ca38f (diff) | |
download | openttd-1a4f1c8177f7ee351cb0096e3456d055b97dc60a.tar.xz |
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -235,6 +235,12 @@ $(error WITH_PNG can't be used when LIBPNG_CONFIG is not set. Edit Makefile.conf endif endif +ifdef WITH_FREETYPE + ifndef FREETYPE_CONFIG +$(error WITH_FREETYPE can't be used when FREETYPE_CONFIG is not set. Edit Makefile.config to correct this) + endif +endif + ############################################################################## # # Compiler configuration @@ -493,6 +499,15 @@ ifndef MINGW LIBS += -lc endif +# freetype config +ifdef WITH_FREETYPE +CDEFS += -DWITH_FREETYPE +CCFLAGS_FREETYPE := $(shell $(FREETYPE_CONFIG) --cflags) +LDFLAGS_FREETYPE := $(shell $(FREETYPE_CONFIG) --libs) +CFLAGS += $(CCFLAGS_FREETYPE) +LIBS += $(LDFLAGS_FREETYPE) +endif + # iconv is enabled defaultly on OSX >= 10.3 ifdef OSX ifndef JAGUAR @@ -670,6 +685,7 @@ SRCS += engine.c SRCS += engine_gui.c SRCS += fileio.c SRCS += fios.c +SRCS += fontcache.c SRCS += genworld.c SRCS += genworld_gui.c SRCS += gfx.c @@ -884,7 +900,7 @@ $(TTD): $(OBJS) $(MAKE_CONFIG) $(Q)$(CXX_TARGET) $(LDFLAGS) $(TTDLDFLAGS) $(OBJS) $(LIBS) -o $@ endif -$(STRGEN): strgen/strgen.c string.c endian_host.h +$(STRGEN): strgen/strgen.c string.c endian_host.h table/control_codes.h @echo '===> Compiling and Linking $@' $(Q)$(CC_HOST) $(CFLAGS_HOST) -DSTRGEN strgen/strgen.c string.c -o $@ |