equal
deleted
inserted
replaced
|
1 # |
|
2 # Makefile for the GraphLCD tool showpic |
|
3 # |
|
4 |
|
5 -include ../../Make.config |
|
6 |
|
7 PRGNAME = showpic |
|
8 |
|
9 OBJS = showpic.o |
|
10 |
|
11 INCLUDES += -I../../ |
|
12 LIBDIRS += -L../../glcdgraphics/ -L../../glcddrivers/ |
|
13 |
|
14 |
|
15 all: $(PRGNAME) |
|
16 .PHONY: all |
|
17 |
|
18 # Implicit rules: |
|
19 |
|
20 %.o: %.c |
|
21 $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) $< |
|
22 |
|
23 # Dependencies: |
|
24 |
|
25 MAKEDEP = $(CXX) -MM -MG |
|
26 DEPFILE = .dependencies |
|
27 $(DEPFILE): Makefile |
|
28 @$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@ |
|
29 |
|
30 -include $(DEPFILE) |
|
31 |
|
32 # The main program: |
|
33 |
|
34 $(PRGNAME): $(OBJS) |
|
35 $(CXX) $(CXXFLAGS) -rdynamic $(OBJS) $(LIBS) $(LIBDIRS) -lglcdgraphics -lglcddrivers -lstdc++ -o $(PRGNAME) |
|
36 |
|
37 install: $(PRGNAME) |
|
38 install -d $(BINDIR) |
|
39 install -m 755 -o root -g root -s $(PRGNAME) $(BINDIR) |
|
40 |
|
41 uninstall: |
|
42 rm -f $(BINDIR)/$(PRGNAME) |
|
43 |
|
44 clean: |
|
45 @-rm -f $(OBJS) $(DEPFILE) $(PRGNAME) *~ |
|
46 |