]> skyeroc.xyz Git - dgamelaunch/commitdiff
would this fix it permanently
authorJoshua Kwan <joshk@triplehelix.org>
Mon, 19 Jan 2004 16:59:26 +0000 (16:59 +0000)
committerJoshua Kwan <joshk@triplehelix.org>
Mon, 19 Jan 2004 16:59:26 +0000 (16:59 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@130 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

Makefile

index 1881f8841f987a9e5a3f8be6ba414ccfffa2950a..ca09911db05b69e364561ed652bfa23e648f86b5 100644 (file)
--- 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)