diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -166,6 +166,10 @@ ifndef USE_VOIP USE_VOIP=1 endif +ifndef USE_FREETYPE +USE_FREETYPE=0 +endif + ifndef USE_INTERNAL_SPEEX USE_INTERNAL_SPEEX=1 endif @@ -239,6 +243,7 @@ ifneq ($(BUILD_CLIENT),0) OPENAL_LIBS=$(shell pkg-config --silence-errors --libs openal) SDL_CFLAGS=$(shell pkg-config --silence-errors --cflags sdl|sed 's/-Dmain=SDL_main//') SDL_LIBS=$(shell pkg-config --silence-errors --libs sdl) + FREETYPE_CFLAGS=$(shell pkg-config --silence-errors --cflags freetype2) endif # Use sdl-config if all else fails ifeq ($(SDL_CFLAGS),) @@ -364,6 +369,10 @@ ifneq (,$(findstring "$(PLATFORM)", "linux" "gnu_kfreebsd" "kfreebsd-gnu")) CLIENT_CFLAGS += -I$(SDLHDIR)/include endif + ifeq ($(USE_FREETYPE),1) + BASE_CFLAGS += $(FREETYPE_CFLAGS) + endif + ifeq ($(ARCH),x86) # linux32 make ... BASE_CFLAGS += -m32 @@ -418,6 +427,10 @@ ifeq ($(PLATFORM),darwin) endif endif + ifeq ($(USE_FREETYPE),1) + BASE_CFLAGS += $(FREETYPE_CFLAGS) + endif + ifeq ($(USE_CODEC_VORBIS),1) CLIENT_LIBS += -lvorbisfile -lvorbis -logg endif @@ -507,6 +520,10 @@ ifeq ($(PLATFORM),mingw32) CLIENT_LIBS = -lgdi32 -lole32 RENDERER_LIBS = -lgdi32 -lole32 -lopengl32 + ifeq ($(USE_FREETYPE),1) + BASE_CFLAGS += -Ifreetype2 + endif + ifeq ($(USE_CURL),1) CLIENT_CFLAGS += $(CURL_CFLAGS) ifneq ($(USE_CURL_DLOPEN),1) @@ -811,6 +828,10 @@ endif TARGETS = +ifeq ($(USE_FREETYPE),1) + BASE_CFLAGS += -DBUILD_FREETYPE +endif + ifndef FULLBINEXT FULLBINEXT=.$(ARCH)$(BINEXT) endif @@ -903,6 +924,10 @@ else RENDERER_LIBS += -ljpeg endif +ifeq ($(USE_FREETYPE),1) + RENDERER_LIBS += -lfreetype +endif + ifeq ("$(CC)", $(findstring "$(CC)", "clang" "clang++")) BASE_CFLAGS += -Qunused-arguments endif |