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