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.

46 lines
1.3 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. --- a/Makefile.in
  9. +++ b/Makefile.in
  10. @@ -18,13 +18,12 @@ LDFLAGS = @LDFLAGS@ \
  11. DISTNAME = @PACKAGE_TARNAME@-@PACKAGE_VERSION@
  12. -all: libgabe.a TAGS
  13. +all: libgabe.so TAGS
  14. # compilation and library making
  15. -libgabe.a: core.o misc.o
  16. - rm -f $@
  17. - ar rc $@ $^
  18. +libgabe.so: core.o misc.o
  19. + $(CC) -shared -o $@ $^
  20. # test: test.o libgabe.a
  21. # $(CC) -o $@ $(LDFLAGS) $^
  22. @@ -44,14 +43,14 @@ dist: AUTHORS COPYING INSTALL NEWS READM
  23. tar zc $(DISTNAME) > $(DISTNAME).tar.gz
  24. rm -rf $(DISTNAME)
  25. -install: libgabe.a gabe.h
  26. +install: libgabe.so gabe.h
  27. $(top_srcdir)/mkinstalldirs -m 755 $(DESTDIR)$(libdir)
  28. $(top_srcdir)/mkinstalldirs -m 755 $(DESTDIR)$(includedir)
  29. - $(top_srcdir)/install-sh -m 755 libgabe.a $(DESTDIR)$(libdir)
  30. + $(top_srcdir)/install-sh -m 755 libgabe.so $(DESTDIR)$(libdir)
  31. $(top_srcdir)/install-sh -m 644 gabe.h $(DESTDIR)$(includedir)
  32. uninstall:
  33. - /bin/rm -f $(DESTDIR)$(libdir)/libgabe.a
  34. + /bin/rm -f $(DESTDIR)$(libdir)/libgabe.so
  35. /bin/rm -f $(DESTDIR)$(includedir)/gabe.h
  36. # development and meta stuff