PLEASE LOOK AT THE DGL-CREATE-CHROOT SCRIPT
before you run it again. Same with the Makefile. Most important change is in dgamelaunch.c git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@271 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
bff3260468
commit
9eca87a1ed
2
Makefile
2
Makefile
|
@ -51,7 +51,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 -lcrypt $(LUTIL) -ll
|
||||
LIBS = -lcurses $(LUTIL) -ll
|
||||
|
||||
all: $(NAME) dgl-wall
|
||||
|
||||
|
|
2
config.y
2
config.y
|
@ -1,5 +1,7 @@
|
|||
%{
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <grp.h>
|
||||
#include <pwd.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
/* ************************************************************* */
|
||||
|
||||
/* program stuff */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/wait.h>
|
||||
|
@ -55,16 +54,22 @@
|
|||
#include <curses.h>
|
||||
|
||||
#ifndef __FreeBSD__
|
||||
# ifdef __APPLE__
|
||||
# include <unistd.h>
|
||||
# else
|
||||
# include <crypt.h>
|
||||
# endif
|
||||
#else
|
||||
# include <libutil.h>
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#ifdef __linux__
|
||||
# include <pty.h>
|
||||
#endif
|
||||
|
||||
#ifndef ARRAY_SIZE
|
||||
#ifndef ARRAY_SIZEK
|
||||
# define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
|
||||
#endif
|
||||
|
||||
|
|
|
@ -17,11 +17,11 @@ libs=""
|
|||
# (leave blank to skip)
|
||||
compress_bin="gzip"
|
||||
# nethack binary to copy (leave blank to skip)
|
||||
nethack_bin="/usr/lib/games/nethack/nethack-console"
|
||||
nethack_bin="/opt/local/bin/nethack"
|
||||
# fixed data to copy (leave blank to skip)
|
||||
playground_fixed="/usr/lib/games/nethack"
|
||||
playground_fixed="/opt/local/share/nethackdir/"
|
||||
# variable data to create (leave blank to skip) (may be equal to previous)
|
||||
playground_var="/var/games/nethack"
|
||||
playground_var=""
|
||||
# termcap/terminfo (copied recursively) (leave blank to skip)
|
||||
termdata="/usr/share/terminfo"
|
||||
|
||||
|
|
Loading…
Reference in New Issue