mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-07-31 01:24:43 +02:00
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
This commit is contained in:
parent
9eca87a1ed
commit
4c29fc67e9
8
Makefile
8
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user