DEPTH=.. include $(DEPTH)/admin/header.mk __LIB__ = madtty madtty_SOURCES = inject.c inject_csi.c inject_csi.h madtty.h rote.c rote_keymap.c roteprivate.h MADTTY_VERSION=@PACKAGE_VERSION@ MADTTY_SONAME=libmadtty.so.0 CC=@CC@ CFLAGS=@CFLAGS@ -Wall -W -fPIC LIBS=@LIBS@ LDFLAGS=@LDFLAGS@ prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ bindir=@bindir@ #all: libmadtty.so.$(MADTTY_VERSION) install: all mkdir -p $(DESTDIR)$(includedir)/madtty rm -f $(DESTDIR)$(includedir)/madtty/*.h cp madtty.h $(DESTDIR)$(includedir)/madtty mkdir -p $(DESTDIR)$(libdir) cp libmadtty.so.$(MADTTY_VERSION) $(DESTDIR)$(libdir) cd $(DESTDIR)$(libdir) && ln -sf libmadtty.so.$(MADTTY_VERSION) libmadtty.so cd $(DESTDIR)$(libdir) && ln -sf libmadtty.so.$(MADTTY_VERSION) $(MADTTY_SONAME) mkdir -p $(DESTDIR)$(libdir)/pkgconfig cp madtty.pc $(DESTDIR)$(libdir)/pkgconfig @echo "-----------------------------------------------------------" @echo "MADTTY - the Mad tty Emulation Library v$(MADTTY_VERSION)" @echo @echo "Include files installed at: $(DESTDIR)$(includedir)" @echo "Library files installed at: $(DESTDIR)$(libdir)" @echo "-----------------------------------------------------------" libmadtty.so.$(MADTTY_VERSION): $(OBJECTS) $(CC) $(CFLAGS) -shared -o $@ -Wl,-soname=$(MADTTY_SONAME) $(OBJECTS) $(LDFLAGS) $(LIBS) .depends: $(SOURCES) $(HEADERS) $(CC) $(CFLAGS) -MM $(SOURCES) >.depends -include .depends clean:: libmadtty.so.* distclean:: rm -rf autom4te.cache configure config.status config.log Makefile madtty.pc include $(DEPTH)/admin/footer.mk