Make embedded font file during compilation instead of distributing it.

This commit is contained in:
2013-02-08 11:12:34 +00:00
parent c0860da3a6
commit b9db91cfdf
5 changed files with 132 additions and 6369 deletions

View File

@@ -18,7 +18,7 @@ CPP := g++
all: $(PUIOBJ)
clean:
rm $(PUIOBJ) $(PUIO)
rm $(PUIOBJ) $(PUIO) font/vera.h
depend:
makedepend $(PUISRC)
@@ -27,6 +27,11 @@ depend:
# $(CPP) -dynamiclib $(LDFLAGS) -static $(PUIOBJ) -o $@
# $(CPP) $(LDFLAGS) -shared -fPIC -Wl,-soname,$(PUIO) $(PUIOBJ) -o $@
textures.cpp: font/vera.h
font/vera.h:
xxd -i font/Vera.ttf > font/vera.h
%.o: %.cpp
$(CPP) -c -fPIC $(CFLAGS) $< -o $@