From 4c29fc67e98e3b4d2c973222f62939ac43b8011d Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Wed, 10 Mar 2004 12:16:55 +0000 Subject: [PATCH] FreeBSD and Linux do require -lcrypt On Solaris 9 it is not necessary but does no harm. I don't know whether I've detected MacOS X properly, but at least it compiles on FreeBSD again now. git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@272 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 221c458..89ec5b9 100644 --- a/Makefile +++ b/Makefile @@ -36,6 +36,12 @@ else endif endif +ifeq (Darwin,$(shell uname -s)) # XXX hope that's MacOS X + LCRYPT = +else + LCRYPT = -lcrypt +endif + ifeq (1,$(VIRUS)) EDITOR = virus.c else @@ -51,7 +57,7 @@ SRCS = $(EDITOR) dgl-common.c ttyrec.c dgamelaunch.c io.c ttyplay.c mygetnstr.c EXTRA_SRCS = nethackstub.c OBJS = $(SRCS:.c=.o) WALL_OBJS = y.tab.o lex.yy.o dgl-common.o dgl-wall.o strlcat.o strlcpy.o -LIBS = -lcurses $(LUTIL) -ll +LIBS = -lcurses $(LCRYPT) $(LUTIL) -ll all: $(NAME) dgl-wall -- 2.47.3