diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-05-31 14:23:27 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-05-31 14:23:27 +0000 |
commit | 96addd21552febad2a825567789d7b767058f208 (patch) | |
tree | 328f559964a6ca41f9cb5524fb672b623b6eda20 /src/gns/nss/Makefile.am | |
parent | 0ab798e206b168a176547da6f27be21a4dffe8db (diff) | |
download | gnunet-96addd21552febad2a825567789d7b767058f208.tar.gz gnunet-96addd21552febad2a825567789d7b767058f208.zip |
-adjusting makefile to install NSS libraries of GNS
Diffstat (limited to 'src/gns/nss/Makefile.am')
-rw-r--r-- | src/gns/nss/Makefile.am | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/gns/nss/Makefile.am b/src/gns/nss/Makefile.am index a75a85670..c5e415dbf 100644 --- a/src/gns/nss/Makefile.am +++ b/src/gns/nss/Makefile.am | |||
@@ -19,17 +19,17 @@ | |||
19 | 19 | ||
20 | EXTRA_DIST = map-file | 20 | EXTRA_DIST = map-file |
21 | 21 | ||
22 | # This cool debug trap works on i386/gcc only | ||
23 | AM_CFLAGS='-DDEBUG_TRAP=__asm__("int $$3")' | ||
24 | |||
25 | AM_LDFLAGS=-avoid-version -module -export-dynamic | 22 | AM_LDFLAGS=-avoid-version -module -export-dynamic |
26 | 23 | ||
27 | lib_LTLIBRARIES = | 24 | nssdir = /lib/ |
25 | LIBTOOL = $(SUDO_BINARY) $(SHELL) $(top_builddir)/libtool | ||
28 | 26 | ||
29 | lib_LTLIBRARIES += \ | 27 | if !MINGW |
28 | nss_LTLIBRARIES = \ | ||
30 | libnss_gns.la \ | 29 | libnss_gns.la \ |
31 | libnss_gns4.la \ | 30 | libnss_gns4.la \ |
32 | libnss_gns6.la | 31 | libnss_gns6.la |
32 | endif | ||
33 | 33 | ||
34 | sources = util.c util.h query.h query.c | 34 | sources = util.c util.h query.h query.c |
35 | 35 | ||
@@ -46,12 +46,9 @@ libnss_gns6_la_SOURCES=$(libnss_gns_la_SOURCES) | |||
46 | libnss_gns6_la_CFLAGS=$(libnss_gns_la_CFLAGS) -DNSS_IPV6_ONLY=1 | 46 | libnss_gns6_la_CFLAGS=$(libnss_gns_la_CFLAGS) -DNSS_IPV6_ONLY=1 |
47 | libnss_gns6_la_LDFLAGS=$(libnss_gns_la_LDFLAGS) | 47 | libnss_gns6_la_LDFLAGS=$(libnss_gns_la_LDFLAGS) |
48 | 48 | ||
49 | install-exec-hook: | 49 | install-data-hook: |
50 | rm -f $(DESTDIR)$(libdir)/libnss_gns.la | 50 | $(SUDO_BINARY) $(SHELL) $(top_builddir)/libtool --finish $(nssdir) |
51 | rm -f $(DESTDIR)$(libdir)/libnss_gns4.la | 51 | $(SUDO_BINARY) rm -f $(nssdir)/libnss_gns.la $(nssdir)/libnss_gns4.la $(nssdir)/libnss_gns6.la |
52 | rm -f $(DESTDIR)$(libdir)/libnss_gns6.la | ||
53 | 52 | ||
54 | uninstall-hook: | 53 | uninstall-hook: |
55 | rm -f $(DESTDIR)$(libdir)/libnss_gns.so.2 | 54 | $(SUDO_BINARY) rm -f $(nssdir)/libnss_gns.so.2 $(nssdir)/libnss_gns4.so.2 $(nssdir)/libnss_gns6.so.2 |
56 | rm -f $(DESTDIR)$(libdir)/libnss_gns4.so.2 | ||
57 | rm -f $(DESTDIR)$(libdir)/libnss_gns6.so.2 | ||