From 8b6c3faec8e909d38d694f770ac4ad8e8d2d7a0c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Fri, 25 Nov 2005 21:35:42 +0100
Subject: [PATCH] * tools/Makefile.in (pkcs1_conv_SOURCES): New variable.
 (pkcs1-conv): Link with getopt.o and getopt1.o.

Rev: src/nettle/tools/Makefile.in:1.15
---
 tools/Makefile.in | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tools/Makefile.in b/tools/Makefile.in
index b2a8da5a..98313045 100644
--- a/tools/Makefile.in
+++ b/tools/Makefile.in
@@ -16,6 +16,7 @@ all: $(TARGETS)
 
 sexp_conv_SOURCES = sexp-conv.c input.c output.c parse.c \
 	getopt.c getopt1.c misc.c
+pkcs1_conv_SOURCES = pkcs1-conv.c getopt.c getopt1.c misc.c
 
 SOURCES = $(sexp_conv_SOURCES) nettle-lfib-stream.c pkcs1-conv.c
 
@@ -28,8 +29,9 @@ sexp-conv$(EXEEXT): $(sexp_conv_OBJS) ../libnettle.a
 nettle-lfib-stream$(EXEEXT): nettle-lfib-stream.$(OBJEXT) ../libnettle.a
 	$(LINK) nettle-lfib-stream.$(OBJEXT) -lnettle $(LIBS) -o $@
 
-pkcs1-conv$(EXEEXT): pkcs1-conv.$(OBJEXT) misc.$(OBJEXT) ../libnettle.a
-	$(LINK) pkcs1-conv.$(OBJEXT) misc.$(OBJEXT) -lnettle $(LIBS) -o $@
+pkcs1_conv_OBJS = $(pkcs1_conv_SOURCES:.c=.$(OBJEXT))
+pkcs1-conv$(EXEEXT): $(pkcs1_conv_OBJS) ../libnettle.a
+	$(LINK) $(pkcs1_conv_OBJS) -lnettle $(LIBS) -o $@
 
 .c.$(OBJEXT):
 	$(COMPILE) -c $< && $(DEP_PROCESS)
-- 
GitLab