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
|
EXTRA_SRCS = nethackstub.c
|
||||||
OBJS = $(SRCS:.c=.o)
|
OBJS = $(SRCS:.c=.o)
|
||||||
WALL_OBJS = y.tab.o lex.yy.o dgl-common.o dgl-wall.o strlcat.o strlcpy.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
|
all: $(NAME) dgl-wall
|
||||||
|
|
||||||
|
|
2
config.y
2
config.y
|
@ -1,5 +1,7 @@
|
||||||
%{
|
%{
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
@ -44,7 +44,6 @@
|
||||||
/* ************************************************************* */
|
/* ************************************************************* */
|
||||||
|
|
||||||
/* program stuff */
|
/* program stuff */
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
@ -55,16 +54,22 @@
|
||||||
#include <curses.h>
|
#include <curses.h>
|
||||||
|
|
||||||
#ifndef __FreeBSD__
|
#ifndef __FreeBSD__
|
||||||
|
# ifdef __APPLE__
|
||||||
|
# include <unistd.h>
|
||||||
|
# else
|
||||||
# include <crypt.h>
|
# include <crypt.h>
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
# include <libutil.h>
|
# include <libutil.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
# include <pty.h>
|
# include <pty.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ARRAY_SIZE
|
#ifndef ARRAY_SIZEK
|
||||||
# define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
|
# define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -17,11 +17,11 @@ libs=""
|
||||||
# (leave blank to skip)
|
# (leave blank to skip)
|
||||||
compress_bin="gzip"
|
compress_bin="gzip"
|
||||||
# nethack binary to copy (leave blank to skip)
|
# 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)
|
# 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)
|
# 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)
|
# termcap/terminfo (copied recursively) (leave blank to skip)
|
||||||
termdata="/usr/share/terminfo"
|
termdata="/usr/share/terminfo"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue