]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(.asm.o): New rule for assembling via m4.
authorNiels Möller <nisse@lysator.liu.se>
Mon, 11 Feb 2002 17:57:53 +0000 (18:57 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Mon, 11 Feb 2002 17:57:53 +0000 (18:57 +0100)
(libnettle_a_SOURCES): Added new rsa and aes files.

Rev: src/nettle/Makefile.am:1.29

Makefile.am

index 602ad86a8efb20027068cb86be50b54bec8ad9fd..091545b6c5ed2a478f13c9b9a7261b300a6749e8 100644 (file)
@@ -16,7 +16,7 @@ libnettleinclude_HEADERS = aes.h arcfour.h blowfish.h \
                           serpent.h sha.h twofish.h \
                           yarrow.h
                           
-libnettle_a_SOURCES = aes.c aes.h aes-meta.c \
+libnettle_a_SOURCES = aes.c aes-tables.c aes-set-key.c aes.h aes-meta.c \
                      arcfour.c arcfour.h arcfour-meta.c \
                       base64.c base64-meta.c base64.h \
                      cast128.c cast128.h cast128_sboxes.h cast128-meta.c \
@@ -33,6 +33,7 @@ libnettle_a_SOURCES = aes.c aes.h aes-meta.c \
                      yarrow.h yarrow256.c yarrow_key_event.c \
                      bignum.h bignum.c \
                      rsa.h rsa.c rsa_md5.c rsa_sha1.c \
+                     rsa-encrypt.c rsa-decrypt.c \
                      rsa-keygen.c rsa-compat.h rsa-compat.c \
                      nettle-internal.c nettle-internal.h nettle-meta.h
 
@@ -47,7 +48,16 @@ all-local: nettle.html
 EXTRA_DIST = macros.h memxor.h $(des_headers) descore.README nettle.html \
        .bootstrap $(des_headers)
 
-# BUILT_SOURCE = $(des_headers)
+# Using assembler files. Should get precedence before the .c.o rule.
+SUFFIXES = .asm
+
+# can be overridden during development, eg. "make RM_TMP=: aes.o"
+RM_TMP = rm -f
+
+.asm.o:
+       $(M4) `test -f $< || echo '$(srcdir)/'`$< >tmp-$*.s
+       $(COMPILE) -c tmp-$*.s -o $@
+       $(RM_TMP) tmp-$*.s
 
 %.html : %.texinfo
        (cd $(srcdir) \