Skip to content
Snippets Groups Projects
Commit 3ed7e424 authored by Niels Möller's avatar Niels Möller
Browse files

(LIBOBJS): Put @LIBOBJS@ into the make variable

LIBOBJS.
(CLEANFILES): Delete libnettle.so.
(clean-local): Delete the .lib linkfarm.
($(SHLIBFORLINK)): When building libnettle.so, create a link from
.lib/$SHLIBSONAME. Needed at runtime, for the testsuite.

Rev: src/nettle/Makefile.am:1.50
parent 70ea48f5
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,8 @@ libnettle_a_SOURCES = aes.c aes.h aes-internal.h \
nettle-meta.h \
nettle-internal.c nettle-internal.h nettle-openssl.c
libnettle_a_LIBADD = @LIBOBJS@
LIBOBJS = @LIBOBJS@
libnettle_a_LIBADD = $(LIBOBJS)
shadata_LDADD = -lm
......@@ -65,6 +66,9 @@ EXTRA_DIST = macros.h memxor.h $(des_headers) descore.README nettle.html \
x86/aes.asm x86/aes_tables.asm
DISTCLEANFILES = aes.asm aes-decrypt.asm aes-encrypt.asm machine.m4
CLEANFILES = $(SHLIBFORLINK)
clean-local:
rm -rf .lib
# Using assembler files. Should get precedence before the .c.o rule.
SUFFIXES = .asm
......@@ -106,6 +110,8 @@ SHLIBOBJECTS = $(patsubst %.$(OBJEXT),%_p.$(OBJEXT),$(am_libnettle_a_OBJECTS) $(
$(SHLIBFORLINK): $(SHLIBOBJECTS)
$(SHLIBLINK) $^ -o $@
-mkdir .lib 2>/dev/null
(cd .lib && ln -sf ../$(SHLIBFORLINK) $(SHLIBSONAME))
install-shared: $(SHLIBFORLINK)
$(INSTALL_DATA) $(SHLIBFORLINK) $(DESTDIR)$(libdir)/$(SHLIBFILE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment