diff options
Diffstat (limited to 'tools/crtfont/Makefile')
-rw-r--r-- | tools/crtfont/Makefile | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/tools/crtfont/Makefile b/tools/crtfont/Makefile new file mode 100644 index 0000000..9151c2f --- /dev/null +++ b/tools/crtfont/Makefile @@ -0,0 +1,45 @@ +# +# Makefile for the GraphLCD tool crtfont +# + +-include ../../Make.config + +PRGNAME = crtfont + +OBJS = crtfont.o + +INCLUDES += -I../../ +LIBDIRS += -L../../glcdgraphics/ + +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) -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) *~ + |