commit b1aa07cfdec21bbffd78e412b0da77926110e01b
parent b14f73b7d8681289544b22a5b4353adac81b1139
Author: Alexander Burger <abu@software-lab.de>
Date: Sun, 2 Jun 2013 09:08:08 +0200
Makefile variable for "-lcrypt"
Diffstat:
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/Makefile b/src/Makefile
@@ -1,4 +1,4 @@
-# 13may13abu
+# 02jun13abu
# 27feb08rdo
# (c) Software Lab. Alexander Burger
@@ -19,6 +19,7 @@ ifeq ($(shell uname), Linux)
PICOLISP-FLAGS = -m32 -rdynamic
LIB-FLAGS = -lc -lm -ldl
DYNAMIC-LIB-FLAGS = -m32 -shared -export-dynamic
+ LCRYPT = -lcrypt
STRIP = strip
else
ifeq ($(shell uname), OpenBSD)
@@ -26,6 +27,7 @@ ifeq ($(shell uname), OpenBSD)
PICOLISP-FLAGS = -m32 -rdynamic -Wl,-E
LIB-FLAGS = -lc -lm
DYNAMIC-LIB-FLAGS = -Wl,-E -Wl,-shared
+ LCRYPT = -lcrypto
STRIP = strip
else
ifeq ($(shell uname), FreeBSD)
@@ -33,6 +35,7 @@ ifeq ($(shell uname), FreeBSD)
PICOLISP-FLAGS = -m32 -rdynamic
LIB-FLAGS = -lc -lm
DYNAMIC-LIB-FLAGS = -m32 -shared -export-dynamic
+ LCRYPT = -lcrypto
STRIP = strip
else
ifeq ($(shell uname), NetBSD)
@@ -40,6 +43,7 @@ ifeq ($(shell uname), NetBSD)
PICOLISP-FLAGS = -m32 -rdynamic
LIB-FLAGS = -lc -lm
DYNAMIC-LIB-FLAGS = -m32 -shared -export-dynamic
+ LCRYPT = -lcrypto
STRIP = strip
else
ifeq ($(shell uname), Darwin)
@@ -47,6 +51,7 @@ ifeq ($(shell uname), Darwin)
PICOLISP-FLAGS = -m32
LIB-FLAGS = -lc -lm -ldl
DYNAMIC-LIB-FLAGS = -m32 -dynamiclib -undefined dynamic_lookup
+ LCRYPT = -lcrypto
STRIP = strip -x
else
ifeq ($(shell uname -o), Cygwin)
@@ -54,6 +59,7 @@ ifeq ($(shell uname -o), Cygwin)
DYNAMIC-LIB-FLAGS = -shared
PICOLISP-FLAGS =
DLL-DEFS = $(bin)/picolisp.dll
+ LCRYPT = -lcrypt
STRIP = strip
exe = .exe
dll = .dll
@@ -101,7 +107,7 @@ endif
$(lib)/ext$(dll): ext.o
- gcc -o $(lib)/ext$(dll) $(DYNAMIC-LIB-FLAGS) ext.o $(DLL-DEFS) -lcrypt
+ gcc -o $(lib)/ext$(dll) $(DYNAMIC-LIB-FLAGS) ext.o $(DLL-DEFS) $(LCRYPT)
$(STRIP) $(lib)/ext$(dll)
$(lib)/ht$(dll): ht.o