X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=inline;f=Makefile.in;h=318c1f486ca40f0f9018610de1294a97123a0733;hb=8ae25c5388a9b4c1f201ef3463967635d387ea92;hp=cc953152bc36ee6c59a6607e34c5796755adc502;hpb=8ee322e11778f9e274831ba71a91a1a7772f34ab;p=apps%2Fmadtty.git diff --git a/Makefile.in b/Makefile.in index cc95315..318c1f4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,6 +1,4 @@ -# Makefile for librote -# -# Copyright (c) 2004 Bruno T. C. de Oliveira +# Makefile for libmadtty # # LICENSE INFORMATION: # This program is free software; you can redistribute it and/or @@ -16,15 +14,17 @@ # You should have received a copy of the GNU General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# Copyright (c) 2002 Bruno T. C. de Oliveira +# +# Copyright © 2002-2004 Bruno T. C. de Oliveira +# Copyright © 2006 Pierre Habouzit SOURCES=$(wildcard *.c) HEADERS=$(wildcard *.h) OBJECTS=$(patsubst %.c,%.o,$(SOURCES)) -ROTE_VERSION=@PACKAGE_VERSION@ -ROTE_SONAME=librote.so.0 +MADTTY_VERSION=@PACKAGE_VERSION@ +MADTTY_SONAME=libmadtty.so.0 CC=@CC@ CFLAGS=@CFLAGS@ -Wall -fPIC @@ -36,33 +36,27 @@ libdir=@libdir@ includedir=@includedir@ bindir=@bindir@ -all: librote.so.$(ROTE_VERSION) +all: libmadtty.so.$(MADTTY_VERSION) install: all - mkdir -p $(DESTDIR)$(includedir)/rote - rm -f $(DESTDIR)$(includedir)/rote/*.h - cp rote.h $(DESTDIR)$(includedir)/rote + mkdir -p $(DESTDIR)$(includedir)/madtty + rm -f $(DESTDIR)$(includedir)/madtty/*.h + cp madtty.h $(DESTDIR)$(includedir)/madtty mkdir -p $(DESTDIR)$(libdir) - cp librote.so.$(ROTE_VERSION) $(DESTDIR)$(libdir) - cd $(DESTDIR)$(libdir) && ln -sf librote.so.$(ROTE_VERSION) librote.so - cd $(DESTDIR)$(libdir) && ln -sf librote.so.$(ROTE_VERSION) $(ROTE_SONAME) - chmod 755 rote-config - mkdir -p $(DESTDIR)$(bindir) - cp -p rote-config $(DESTDIR)$(bindir) + 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 "ROTE - Our Own Terminal Emulation Library v$(ROTE_VERSION)" + @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 "rote-config executable : $(DESTDIR)$(bindir)/rote-config" - @echo - @echo "To find out what compiler arguments you should use to" - @echo "compile programs that use rote, use the rote-config" - @echo "program (make sure $(DESTDIR)$(bindir) is in your path)." @echo "-----------------------------------------------------------" -librote.so.$(ROTE_VERSION): $(OBJECTS) - $(CC) $(CFLAGS) -shared -o $@ -Wl,-soname=$(ROTE_SONAME) $(OBJECTS) $(LDFLAGS) $(LIBS) +libmadtty.so.$(MADTTY_VERSION): $(OBJECTS) + $(CC) $(CFLAGS) -shared -o $@ -Wl,-soname=$(MADTTY_SONAME) $(OBJECTS) $(LDFLAGS) $(LIBS) .depends: $(SOURCES) $(HEADERS) $(CC) $(CFLAGS) -MM $(SOURCES) >.depends @@ -70,10 +64,10 @@ librote.so.$(ROTE_VERSION): $(OBJECTS) -include .depends clean: - rm -f *.o .depends librote.so.* + rm -f *.o .depends libmadtty.so.* pristine: clean - rm -rf autom4te.cache configure config.status config.log Makefile rote-config + rm -rf autom4te.cache configure config.status config.log Makefile madtty.pc .PHONY: clean all install pristine