graphlcd-base/tools/showpic/Makefile
changeset 4 df6a40031aa5
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/graphlcd-base/tools/showpic/Makefile	Wed Feb 06 17:32:55 2008 +0000
     1.3 @@ -0,0 +1,46 @@
     1.4 +#
     1.5 +# Makefile for the GraphLCD tool showpic
     1.6 +#
     1.7 +
     1.8 +-include ../../Make.config
     1.9 +
    1.10 +PRGNAME = showpic
    1.11 +
    1.12 +OBJS = showpic.o
    1.13 +
    1.14 +INCLUDES += -I../../
    1.15 +LIBDIRS += -L../../glcdgraphics/ -L../../glcddrivers/
    1.16 +
    1.17 +
    1.18 +all: $(PRGNAME)
    1.19 +.PHONY: all
    1.20 +
    1.21 +# Implicit rules:
    1.22 +
    1.23 +%.o: %.c
    1.24 +	$(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) $<
    1.25 +
    1.26 +# Dependencies:
    1.27 +
    1.28 +MAKEDEP = $(CXX) -MM -MG
    1.29 +DEPFILE = .dependencies
    1.30 +$(DEPFILE): Makefile
    1.31 +	@$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@
    1.32 +
    1.33 +-include $(DEPFILE)
    1.34 +
    1.35 +# The main program:
    1.36 +
    1.37 +$(PRGNAME): $(OBJS)
    1.38 +	$(CXX) $(CXXFLAGS) -rdynamic $(OBJS) $(LIBS) $(LIBDIRS) -lglcdgraphics -lglcddrivers -lstdc++ -o $(PRGNAME)
    1.39 +
    1.40 +install: $(PRGNAME)
    1.41 +	install -d $(BINDIR)
    1.42 +	install -m 755 -o root -g root -s $(PRGNAME) $(BINDIR)
    1.43 +
    1.44 +uninstall:
    1.45 +	rm -f $(BINDIR)/$(PRGNAME)
    1.46 +
    1.47 +clean:
    1.48 +	@-rm -f $(OBJS) $(DEPFILE) $(PRGNAME) *~
    1.49 +