You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.4 KiB

  1. From 9a0e73c5f6cbcf825eced89d26273a24f7266522 Mon Sep 17 00:00:00 2001
  2. From: "Schanzenbach, Martin" <martin.schanzenbach@aisec.fraunhofer.de>
  3. Date: Sun, 30 Sep 2018 20:38:37 +0200
  4. Subject: [PATCH] shared library
  5. ---
  6. Makefile.in | 13 ++++++-------
  7. 1 file changed, 6 insertions(+), 7 deletions(-)
  8. diff --git a/Makefile.in b/Makefile.in
  9. index f23bf90..c8c19fa 100644
  10. --- a/Makefile.in
  11. +++ b/Makefile.in
  12. @@ -18,13 +18,12 @@ LDFLAGS = @LDFLAGS@ \
  13. DISTNAME = @PACKAGE_TARNAME@-@PACKAGE_VERSION@
  14. -all: libgabe.a TAGS
  15. +all: libgabe.so TAGS
  16. # compilation and library making
  17. -libgabe.a: core.o misc.o
  18. - rm -f $@
  19. - ar rc $@ $^
  20. +libgabe.so: core.o misc.o
  21. + $(CC) -shared -o $@ $^
  22. # test: test.o libgabe.a
  23. # $(CC) -o $@ $(LDFLAGS) $^
  24. @@ -44,14 +43,14 @@ dist: AUTHORS COPYING INSTALL NEWS README \
  25. tar zc $(DISTNAME) > $(DISTNAME).tar.gz
  26. rm -rf $(DISTNAME)
  27. -install: libgabe.a gabe.h
  28. +install: libgabe.so gabe.h
  29. $(top_srcdir)/mkinstalldirs -m 755 $(DESTDIR)$(libdir)
  30. $(top_srcdir)/mkinstalldirs -m 755 $(DESTDIR)$(includedir)
  31. - $(top_srcdir)/install-sh -m 755 libgabe.a $(DESTDIR)$(libdir)
  32. + $(top_srcdir)/install-sh -m 755 libgabe.so $(DESTDIR)$(libdir)
  33. $(top_srcdir)/install-sh -m 644 gabe.h $(DESTDIR)$(includedir)
  34. uninstall:
  35. - /bin/rm -f $(DESTDIR)$(libdir)/libgabe.a
  36. + /bin/rm -f $(DESTDIR)$(libdir)/libgabe.so
  37. /bin/rm -f $(DESTDIR)$(includedir)/gabe.h
  38. # development and meta stuff
  39. --
  40. 2.17.1