graphlcd-base/tools/crtfont/Makefile
author root@rika
Wed, 06 Feb 2008 17:32:55 +0000
changeset 4 df6a40031aa5
permissions -rw-r--r--
added graphlcd-base
     1 #
     2 # Makefile for the GraphLCD tool crtfont
     3 #
     4 
     5 -include ../../Make.config
     6 
     7 PRGNAME = crtfont
     8 
     9 OBJS = crtfont.o
    10 
    11 INCLUDES += -I../../
    12 LIBDIRS += -L../../glcdgraphics/
    13 
    14 all: $(PRGNAME)
    15 .PHONY: all
    16 
    17 # Implicit rules:
    18 
    19 %.o: %.c
    20 	$(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) $<
    21 
    22 # Dependencies:
    23 
    24 MAKEDEP = $(CXX) -MM -MG
    25 DEPFILE = .dependencies
    26 $(DEPFILE): Makefile
    27 	@$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@
    28 
    29 -include $(DEPFILE)
    30 
    31 # The main program:
    32 
    33 $(PRGNAME): $(OBJS)
    34 	$(CXX) $(CXXFLAGS) -rdynamic $(OBJS) $(LIBDIRS) -lglcdgraphics -lstdc++ -o $(PRGNAME)
    35 
    36 install: $(PRGNAME)
    37 	install -d $(BINDIR)
    38 	install -m 755 -o root -g root -s $(PRGNAME) $(BINDIR)
    39 
    40 uninstall:
    41 	rm -f $(BINDIR)/$(PRGNAME)
    42 
    43 clean:
    44 	@-rm -f $(OBJS) $(DEPFILE) $(PRGNAME) *~
    45