changeset 1272:acae5f8ebc67

Fix build process.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 19 May 2016 12:08:16 +0300
parents 197c9ccdb33c
children 132706e3b94b
files Makefile Makefile.gen tools/fontconv.c
diffstat 3 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Wed Jun 03 17:00:07 2015 +0300
+++ b/Makefile	Thu May 19 12:08:16 2016 +0300
@@ -26,6 +26,8 @@
 ZLIB_LDFLAGS ?= `pkg-config --libs zlib`
 
 
+TOOL_LDFLAGS ?= $(SDL_LDFLAGS)
+
 include $(DMLIB)Makefile.gen
 
 
--- a/Makefile.gen	Wed Jun 03 17:00:07 2015 +0300
+++ b/Makefile.gen	Thu May 19 12:08:16 2016 +0300
@@ -159,6 +159,9 @@
 endif
 endif
 endif
+else
+SDL_TTF_LDFLAGS=
+SDL_TTF_CFLAGS=
 endif
 
 ifeq ($(DM_GFX_8BIT),yes)
--- a/tools/fontconv.c	Wed Jun 03 17:00:07 2015 +0300
+++ b/tools/fontconv.c	Thu May 19 12:08:16 2016 +0300
@@ -27,7 +27,9 @@
     {  1, 'v', "verbose",  "Be more verbose", OPT_NONE },
     {  2, 'o', "output",   "Set output filename", OPT_ARGREQ },
     {  3, 's', "size",     "Set glyph dimensions (-s W:H) for image->font conversion", OPT_ARGREQ },
+#ifdef DM_GFX_TTF_TEXT
     {  4, 'c', "color",    "TTF font rendering color (def: 0xFFFFFF)", OPT_ARGREQ },
+#endif
 };
 
 const int optListN = sizeof(optList) / sizeof(optList[0]);