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
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
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