diff options
author | inmarket <andrewh@inmarket.com.au> | 2015-11-22 18:42:11 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2015-11-22 18:42:11 +1000 |
commit | 0ec1a5e4da8815f6d7c31cf7941b76f3d9fd5e28 (patch) | |
tree | 9ccca9970133bf90d8f8979a7d250f6ce10c7e7d /tools/mcufontencoder/src/Makefile.mingw32 | |
parent | 3ae120406e1244d728276b2bcc74d03d1ccb230d (diff) | |
download | uGFX-0ec1a5e4da8815f6d7c31cf7941b76f3d9fd5e28.tar.gz uGFX-0ec1a5e4da8815f6d7c31cf7941b76f3d9fd5e28.tar.bz2 uGFX-0ec1a5e4da8815f6d7c31cf7941b76f3d9fd5e28.zip |
Add the mcufont encoder to the tools (including a win32 build) with binaries
Diffstat (limited to 'tools/mcufontencoder/src/Makefile.mingw32')
-rw-r--r-- | tools/mcufontencoder/src/Makefile.mingw32 | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/tools/mcufontencoder/src/Makefile.mingw32 b/tools/mcufontencoder/src/Makefile.mingw32 new file mode 100644 index 00000000..e3eb4d0e --- /dev/null +++ b/tools/mcufontencoder/src/Makefile.mingw32 @@ -0,0 +1,44 @@ +ARCH = i686-pc-mingw32- +CXXFLAGS = -O2 -Wall -Werror -Wno-unused-function -Wno-sign-compare -std=c++0x +CXXFLAGS += -ggdb +LDFLAGS += -pthread --static + +# Libfreetype +CXXFLAGS += $(shell freetype-config --cflags) +LDFLAGS += $(shell freetype-config --libs) +#FREETYPE2_LIB = ../ugfx/3rdparty/freetype-2.6.1 +#CXXFLAGS += -I$(FREETYPE2_LIB)/include +#LDFLAGS += -I$(FREETYPE2_LIB)/lib -lfreetype + +# compiler fixes for mingw32 +CXXFLAGS += -DNEED_STRING_FIXES -DNEED_THREAD_FIXES + +# Class to represent font data internally +OBJS = datafile.o + +# Utility functions +OBJS += importtools.o exporttools.o + +# Import formats +OBJS += bdf_import.o freetype_import.o + +# rlefont export format +OBJS += encode_rlefont.o optimize_rlefont.o export_rlefont.o + +# bwfont export format +OBJS += export_bwfont.o + + +all: mcufont + +strip: mcufont.exe + strip mcufont.exe + +clean: + rm -f mcufont $(OBJS) + +mcufont: main.o $(OBJS) + $(ARCH)g++ $(CXXFLAGS) -o $@ $^ $(LDFLAGS) + +%.o: %.cc *.hh + $(ARCH)g++ $(CXXFLAGS) -c $< |