2 # Makefile for the GraphLCD driver library
5 -include ../Make.config
13 BASENAME = libglcddrivers.so
15 LIBNAME = $(BASENAME).$(VERMAJOR).$(VERMINOR).$(VERMICRO)
17 OBJS = common.o config.o driver.o drivers.o port.o simlcd.o framebuffer.o gu140x32f.o gu256x64-372.o gu256x64-3900.o hd61830.o ks0108.o image.o sed1330.o sed1520.o t6963c.o noritake800.o serdisp.o avrctl.o g15daemon.o network.o gu126x64D-K610A4.o picctl.o
19 HEADERS = config.h driver.h drivers.h
25 $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) $<
30 DEPFILE = .dependencies
32 @$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@
41 $(CXX) $(CXXFLAGS) -shared $(OBJS) $(LIBS) -ldl -lpthread -Wl,-soname="$(BASENAME).$(VERMAJOR)" -o $@
42 ln -sf $(LIBNAME) $(BASENAME)
46 install -m 755 $(LIBNAME) $(LIBDIR)/
47 install -d $(INCDIR)/glcddrivers
48 install -m 644 $(HEADERS) $(INCDIR)/glcddrivers/
49 ( cd $(LIBDIR); ln -sf $(LIBNAME) $(BASENAME).$(VERMAJOR); ln -sf $(LIBNAME) $(BASENAME) )
52 rm -f $(LIBDIR)/$(BASENAME)
53 rm -f $(LIBDIR)/$(BASENAME).$(VERMAJOR)
54 rm -f $(LIBDIR)/$(LIBNAME)
55 (for i in $(HEADERS); do rm -f $(INCDIR)/glcddrivers/$$i; done)
56 rmdir $(INCDIR)/glcddrivers
59 rm -f $(OBJS) $(DEPFILE) $(LIBNAME) $(BASENAME) *~