]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
* examples/Makefile.in (TARGETS): Added eratosthenes and next-prime.
authorNiels Möller <nisse@lysator.liu.se>
Sat, 5 Jan 2008 22:58:08 +0000 (23:58 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Sat, 5 Jan 2008 22:58:08 +0000 (23:58 +0100)
(next-prime, eratosthenes): New rules.
(nettle-benchmark): Don't rely on $@.

Rev: nettle/examples/Makefile.in:1.3

examples/Makefile.in

index 5b4e216cef1fabb7c8620ab9e5d4517debfc0f80..eb03193e843ac56035e8ca1672bb8b1b593b1681 100644 (file)
@@ -13,8 +13,8 @@ PRE_LDFLAGS = -L..
 OPENSSL_LIBFLAGS = @OPENSSL_LIBFLAGS@
 RSA_TARGETS = rsa-keygen$(EXEEXT) rsa-sign$(EXEEXT) \
              rsa-verify$(EXEEXT) rsa-encrypt$(EXEEXT) rsa-decrypt$(EXEEXT)
-TARGETS = nettle-benchmark$(EXEEXT) @IF_HOGWEED@ $(RSA_TARGETS)
-SOURCES = nettle-benchmark.c nettle-openssl.c \
+TARGETS = nettle-benchmark$(EXEEXT) eratosthenes$(EXEEXT) @IF_HOGWEED@ $(RSA_TARGETS) next-prime$(EXEEXT)
+SOURCES = nettle-benchmark.c eratosthenes.c nettle-openssl.c \
        io.c read_rsa_key.c getopt.c getopt1.c \
        rsa-encrypt.c rsa-decrypt.c rsa-keygen.c rsa-sign.c rsa-verify.c
 
@@ -31,6 +31,10 @@ all: $(TARGETS)
        $(COMPILE) -c $< && $(DEP_PROCESS)
 
 # For Solaris and BSD make, we have to use an explicit rule for each executable
+next-prime$(EXEEXT): next-prime.$(OBJEXT) $(GETOPT_OBJS) ../libhogweed.a
+       $(LINK) next-prime.$(OBJEXT) $(GETOPT_OBJS) \
+       -lhogweed $(LIBS) -o next-prime$(EXEEXT)
+
 rsa-keygen$(EXEEXT): rsa-keygen.$(OBJEXT) $(GETOPT_OBJS)
        $(LINK) rsa-keygen.$(OBJEXT) io.$(OBJEXT) $(GETOPT_OBJS) \
        -lhogweed -lnettle $(LIBS) -o rsa-keygen$(EXEEXT)
@@ -52,9 +56,12 @@ rsa-decrypt$(EXEEXT): rsa-decrypt.$(OBJEXT) read_rsa_key.$(OBJEXT)
        $(LINK) rsa-decrypt.$(OBJEXT) io.$(OBJEXT) read_rsa_key.$(OBJEXT) \
        -lhogweed -lnettle $(LIBS) -o rsa-decrypt$(EXEEXT)
 
+eratosthenes$(EXEEXT): eratosthenes.$(OBJEXT) $(GETOPT_OBJS)
+       $(LINK) eratosthenes.$(OBJEXT) $(GETOPT_OBJS) -o eratosthenes$(EXEEXT)
+
 nettle-benchmark$(EXEEXT): nettle-benchmark.$(OBJEXT) nettle-openssl.$(OBJEXT) $(GETOPT_OBJS)
        $(LINK) nettle-benchmark.$(OBJEXT) nettle-openssl.$(OBJEXT) io.$(OBJEXT) $(GETOPT_OBJS) \
-       -lnettle $(LIBS) $(OPENSSL_LIBFLAGS) -o $@
+       -lnettle $(LIBS) $(OPENSSL_LIBFLAGS) -o nettle-benchmark$(EXEEXT)
 
 $(TARGETS) : io.$(OBJEXT) ../libnettle.a