VERSION = 1.3.10.1
+NAME = dgamelaunch
+exclusions = CVS .cvsignore
+
CC = gcc
LDFLAGS =
CFLAGS = -g3 -O0 -Wall -W -Wno-unused-parameter $(DEFS)
OBJS = $(SRCS:.c=.o)
LIBS = -lncurses -lcrypt
-all: dgamelaunch
+all: $(NAME)
-dgamelaunch: $(OBJS)
+$(NAME): $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
clean:
rm -f dgamelaunch
- rm -f *.o
+ rm -f *.o .#*
install:
cp dgamelaunch /usr/sbin
indent:
indent -ts2 *.c *.h
rm *~
-release: clean indent
+
+dist: clean indent
+ rm -rf $(NAME)-$(VERSION)
+ (cd .. && ln -sf $(CURDIR) $(NAME)-$(VERSION))
+ (cd .. && tar $(addprefix --exclude ,$(exclusions)) -chzf $(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION))
+ rm -f ../$(NAME)-$(VERSION)
+ @echo "Created source release $(NAME)-$(VERSION).tar.gz"
+
#include <crypt.h>
#include <sys/types.h>
#include <sys/file.h> /* for flock() */
+#include <sys/resource.h>
#include <sys/ioctl.h> /* ttyrec */
#include <errno.h>
#include <time.h>
clear ();
mvaddstr (1, 1, VER1);
mvprintw (3, 1,
- "During playback, hit 'q' to return here%s.", loggedin ? ", 'm' to contact the player" : "");
+ "During playback, hit 'q' to return here%s.",
+ loggedin ? ", 'm' to contact the player" : "");
mvaddstr (4, 1,
"(Use capital letter of selection to strip DEC graphics, VERY experimental!)");
mvaddstr (5, 1, "The following games are in progress:");
gid_t newgid = SHED_GID;
char atrcfilename[81], *spool;
unsigned int len;
+ struct rlimit rl = { RLIM_INFINITY, RLIM_INFINITY };
int userchoice = 0;
+ /* coredumper */
+ setrlimit(RLIMIT_CORE, &rl);
+
/* signal handlers */
signal (SIGHUP, catch_sighup);