From: Joshua Kwan Date: Mon, 19 Jan 2004 16:59:26 +0000 (+0000) Subject: would this fix it permanently X-Git-Tag: v1.6.1-roc-dev~568 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=ce0d5f7f3d1d762a0df106aefc7ca35e287e90c3;p=dgamelaunch would this fix it permanently git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@130 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- diff --git a/Makefile b/Makefile index 1881f88..ca09911 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,14 @@ ifndef optimize optimize = -O0 endif +ifeq (Linux,$(shell uname -s)) + LUTIL = -lutil +else + ifeq (BSD,$(shell uname -s | grep -o BSD)) + LUTIL = -lutil + endif +endif + CC = gcc LDFLAGS = CFLAGS = -g3 $(optimize) -Wall -Wno-unused $(DEFS) @@ -15,7 +23,7 @@ INSTALL = install -c DEFS = -DVERSION=\"$(VERSION)\" SRCS = virus.c ttyrec.c dgamelaunch.c io.c ttyplay.c mygetnstr.c stripgfx.c strlcpy.c strlcat.c y.tab.c lex.yy.c OBJS = $(SRCS:.c=.o) -LIBS = -lcurses -lcrypt -ll +LIBS = -lcurses -lcrypt $(LUTIL) -ll all: $(NAME)