summaryrefslogtreecommitdiffstats
path: root/TOOLS/subfont-c/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'TOOLS/subfont-c/Makefile')
-rw-r--r--TOOLS/subfont-c/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/TOOLS/subfont-c/Makefile b/TOOLS/subfont-c/Makefile
new file mode 100644
index 0000000000..feb0a304ee
--- /dev/null
+++ b/TOOLS/subfont-c/Makefile
@@ -0,0 +1,24 @@
+#font="/mnt/win/windows/fonts/arial.ttf"
+#font="/mnt/win/windows/fonts/comic.ttf"
+#font="/mnt/win/windows/fonts/verdanai.ttf"
+font="/mnt/win/windows/fonts/verdana.ttf"
+
+#encoding=windows-1250
+encoding=iso-8859-2
+
+fontsize=20
+
+
+LDLIBS=-lm $(shell freetype-config --libs)
+CFLAGS=-O3 $(shell freetype-config --cflags)
+
+
+subfont: subfont.o
+
+run: subfont
+ ./subfont $(encoding) $(fontsize) $(font)
+ cat font.desc.tail >> font.desc
+ cp font.desc *.raw ~/.mplayer/font/
+
+clean:
+ rm -f subfont subfont.o