# # 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) $(LDFLAGS) -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) $(LDFLAGS) -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) *~