Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Jun 2006 12:16:35 +0200
From:      Stefan Kuttler <sk@elego.de>
To:        openssl-users@openssl.org
Cc:        freebsd-questions@freebsd.org
Subject:   [misc] demos/bio/Makefile
Message-ID:  <20060606101635.GA47805@elego.de>

next in thread | raw e-mail | index | archive | help

Hi all,


Well, for me the Makefile in demos/bio was broken, because it wants
to link against static libraries of openssl. For *users* that do
not want to built a static version, or have strange PATH settings,
this little patch makes it working so one can start hacking :) 
  


--- /tmp/openssl-0.9.8b/demos/bio/Makefile.broken.fbsd	Tue Jun  6 04:26:07 2006
+++ /tmp/openssl-0.9.8b/demos/bio/Makefile	Tue Jun  6 11:55:52 2006
@@ -1,16 +1,15 @@
 CC=cc
 CFLAGS= -g -I../../include
-LIBS= -L../.. ../../libssl.a ../../libcrypto.a
+LIBS= -L../.. -lssl -lcrypto
 EXAMPLES=saccept sconnect
 
 all: $(EXAMPLES) 
 
 saccept: saccept.o
-	$(CC) -o saccept saccept.o $(LIBS)
+	$(CC) $(CFLAGS) -o saccept saccept.o $(LIBS)
 
 sconnect: sconnect.o
-	$(CC) -o sconnect sconnect.o $(LIBS)
+	$(CC) $(CLFAGS) -o sconnect sconnect.o $(LIBS)
 
 clean:	
-	rm -f $(EXAMPLES) *.o
-
+	rm -f $(EXAMPLES) *.o *.core



using FreeBSD 6.1-RELEASE



-- 
Gruss

Stefan Kuttler (B.O.F.H.)    .ooO=Ooo.    https://www.netbeisser.de
 
GPG Fingerprint:  E7AC 1E9B 87D8 5BD2 E2F2 6F4A 3177 ED68 8185 480C



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060606101635.GA47805>