summaryrefslogtreecommitdiff
path: root/tools/genfont/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/genfont/Makefile')
-rw-r--r--tools/genfont/Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/tools/genfont/Makefile b/tools/genfont/Makefile
new file mode 100644
index 0000000..584e433
--- /dev/null
+++ b/tools/genfont/Makefile
@@ -0,0 +1,48 @@
+#
+# Makefile for the GraphLCD tool crtfont
+#
+
+-include ../../Make.config
+
+PRGNAME = genfont
+
+OBJS = genfont.o
+
+INCLUDES += -I../../
+INCLUDES += `freetype-config --cflags`
+
+LIBDIRS += -L../../glcdgraphics/
+LIBS += `freetype-config --libs`
+
+all: $(PRGNAME)
+.PHONY: all
+
+# Implicit rules:
+
+%.o: %.c
+ $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) $<
+
+# Dependencies:
+
+MAKEDEP = $(CXX) -MM -MG
+DEPFILE = .dependencies
+$(DEPFILE): Makefile
+ @$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@
+
+-include $(DEPFILE)
+
+# The main program:
+
+$(PRGNAME): $(OBJS)
+ $(CXX) $(CXXFLAGS) -rdynamic $(OBJS) $(LIBDIRS) $(LIBS) -lglcdgraphics -lstdc++ -o $(PRGNAME)
+
+install: $(PRGNAME)
+ install -d $(BINDIR)
+ install -m 755 -o root -g root -s $(PRGNAME) $(BINDIR)
+
+uninstall:
+ rm -f $(BINDIR)/$(PRGNAME)
+
+clean:
+ @-rm -f $(OBJS) $(DEPFILE) $(PRGNAME) *~
+