From ce0d5f7f3d1d762a0df106aefc7ca35e287e90c3 Mon Sep 17 00:00:00 2001 From: Joshua Kwan Date: Mon, 19 Jan 2004 16:59:26 +0000 Subject: [PATCH] would this fix it permanently git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@130 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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) -- 2.47.3