would this fix it permanently

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@130 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Joshua Kwan 2004-01-19 16:59:26 +00:00
parent 0f9d024d26
commit ce0d5f7f3d
1 changed files with 9 additions and 1 deletions

View File

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