]> skyeroc.xyz Git - dgamelaunch/commitdiff
FreeBSD and Linux do require -lcrypt
authorJilles Tjoelker <jilles@stack.nl>
Wed, 10 Mar 2004 12:16:55 +0000 (12:16 +0000)
committerJilles Tjoelker <jilles@stack.nl>
Wed, 10 Mar 2004 12:16:55 +0000 (12:16 +0000)
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

index 221c458ad271cf9174a1e8bd0ca87c01facd01bb..89ec5b910fbf68ca72a41b79c7c352b0bc33bc54 100644 (file)
--- 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