---- doomlegacy_src/linux_x/musserv/Makefile.linux.orig Sat Feb 22 21:12:31 2003
-+++ doomlegacy_src/linux_x/musserv/Makefile.linux Sat Feb 22 21:12:52 2003
+--- doomlegacy_142_src/linux_x/musserv/Makefile.linux.orig Sat Feb 22 21:12:31 2003
++++ doomlegacy_142_src/linux_x/musserv/Makefile.linux Sat Feb 22 21:12:52 2003
@@ -3,7 +3,7 @@
#
LDFLAGS =
#LDFLAGS = -static
---- doomlegacy_src/linux_x/sndserv/Makefile.orig Sat Feb 22 21:11:50 2003
-+++ doomlegacy_src/linux_x/sndserv/Makefile Sat Feb 22 21:12:12 2003
+--- doomlegacy_142_src/linux_x/sndserv/Makefile.orig Sat Feb 22 21:11:50 2003
++++ doomlegacy_142_src/linux_x/sndserv/Makefile Sat Feb 22 21:12:12 2003
@@ -22,7 +22,7 @@
#
ifdef FREEBSD
CFLAGS:=${CFLAGS} -DFREEBSD
endif
---- doomlegacy_src/tools/makefile.orig Sat Feb 22 21:13:11 2003
-+++ doomlegacy_src/tools/makefile Sat Feb 22 21:14:30 2003
+--- doomlegacy_142_src/tools/makefile.orig Sat Feb 22 21:13:11 2003
++++ doomlegacy_142_src/tools/makefile Sat Feb 22 21:14:30 2003
@@ -1,24 +1,24 @@
default: dircomp2.c
- gcc -O6 -mpentium -Wall -s convert.c -o convert.exe
+ gcc $(OPTFLAGS) -Wall -s convert.c -o convert.exe
---- doomlegacy_src/makefile.orig Thu Feb 27 00:30:58 2003
-+++ doomlegacy_src/makefile Thu Feb 27 00:34:37 2003
+--- doomlegacy_142_src/makefile.orig Thu Feb 27 00:30:58 2003
++++ doomlegacy_142_src/makefile Thu Feb 27 00:34:37 2003
@@ -298,7 +298,7 @@
SFLAGS=
- CFLAGS = -g -pg -DPARANOIA -fwritable-strings $(OPTS)
+ CFLAGS = -g -pg $(OPTFLAGS) -DPARANOIA -fwritable-strings $(OPTS)
else
-- CFLAGS = -g -pg -m486 -O3 -ffast-math -fwritable-strings $(OPTS)
+- CFLAGS = -g -pg $(M4) -O3 -ffast-math -fwritable-strings $(OPTS)
+ CFLAGS = -g -pg $(OPTFLAGS) -ffast-math -fwritable-strings $(OPTS)
endif
LDFLAGS = -g -pg -L/usr/X11R6/lib
# build a normal optimised version
ifdef PGCC
-- CFLAGS = $(OPTS) -mpentium -O6 -ffast-math -fomit-frame-pointer -fwritable-strings
+- CFLAGS = $(OPTS) $(M5) -O6 -ffast-math -fomit-frame-pointer -fwritable-strings
+ CFLAGS = $(OPTS) $(OPTFLAGS) -ffast-math -fwritable-strings
# -fgcse -fcse-follow-jumps -fcse-skip-blocks -frerun-cse-after-loop -ffunction-cse \
# -fexpensive-optimizations -fforce-mem -fstrength-reduce -fthread-jumps \
# -fregmove -fschedule-insns -fschedule-insns2 -fmove-all-movables \
# -fcaller-saves -finline-functions -mieee-fp -mfp-ret-in-387 -m80387 -mhard-float -finline
else
-- CFLAGS = -m486 -O3 -ffast-math -fomit-frame-pointer -fwritable-strings $(OPTS)
+- CFLAGS = $(M4) -O3 -ffast-math -fomit-frame-pointer -fwritable-strings $(OPTS)
+ CFLAGS = $(OPTFLAGS) -ffast-math -fwritable-strings $(OPTS)
endif
endif
#dll
dll : $(O)/r_opengl.o $(O)/ogl_x11.o
-- $(CC) -mpentium -O6 -o $(BIN)/r_opengl.so -shared -nostartfiles $(O)/r_opengl.o $(O)/ogl_x11.o -L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXext -lGL -lGLU -lm
+- $(CC) $(M5) -O6 -o $(BIN)/r_opengl.so -shared -nostartfiles $(O)/r_opengl.o $(O)/ogl_x11.o -L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXext -lGL -lGLU -lm
+ $(CC) $(OPTFLAGS) -o $(BIN)/r_opengl.so -shared -nostartfiles $(O)/r_opengl.o $(O)/ogl_x11.o -L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXext -lGL -lGLU -lm
musserv:
ifdef LINUX
$(O)/r_opengl.o: hardware/r_opengl/r_opengl.c hardware/r_opengl/r_opengl.h
-- $(CC) -mpentium -O6 -o $(O)/r_opengl.o -DHWRENDER -DVID_X11 -DLINUX $(POLL_POINTER) -shared -nostartfiles -I/usr/X11R6/include -c hardware/r_opengl/r_opengl.c
+- $(CC) $(M5) -O6 -o $(O)/r_opengl.o -DHWRENDER -DVID_X11 -DLINUX $(POLL_POINTER) -shared -nostartfiles -I/usr/X11R6/include -c hardware/r_opengl/r_opengl.c
+ $(CC) $(OPTFLAGS) -o $(O)/r_opengl.o -DHWRENDER -DVID_X11 -DLINUX $(POLL_POINTER) -shared -nostartfiles -I/usr/X11R6/include -c hardware/r_opengl/r_opengl.c
endif
ifdef SDL
-@@ -672,16 +672,16 @@
+@@ -763,7 +763,7 @@
$(CC) $(CFLAGS) $(LDFLAGS) $(WFLAGS) -I/usr/X11R6/include -c $< -o $@
else #FBSD_SDL
$(O)/r_opengl.o: hardware/r_opengl/r_opengl.c hardware/r_opengl/r_opengl.h
-- $(CC) -mpentium -O6 -o $(O)/r_opengl.o -DHWRENDER -DVID_X11 -DLINUX -DFREEBSD $(POLL_POINTER) -shared -nostartfiles -I/usr/X11R6/include -c hardware/r_opengl/r_opengl.c
+- $(CC) $(M5) -O6 -o $(O)/r_opengl.o -DHWRENDER -DVID_X11 -DLINUX -DFREEBSD $(POLL_POINTER) -shared -nostartfiles -I/usr/X11R6/include -c hardware/r_opengl/r_opengl.c
+ $(CC) $(OPTFLAGS) -o $(O)/r_opengl.o -DHWRENDER -DVID_X11 -DLINUX -DFREEBSD $(POLL_POINTER) -shared -nostartfiles -I/usr/X11R6/include -c hardware/r_opengl/r_opengl.c
endif #FBSD_SDL
endif #FREEBSD
+@@ -774,10 +774,10 @@
+
ifndef FREEBSD
$(O)/ogl_x11.o: hardware/r_opengl/ogl_x11.c hardware/r_opengl/r_opengl.h
-- $(CC) -mpentium -O6 -o $(O)/ogl_x11.o -DHWRENDER -DVID_X11 -DLINUX $(POLL_POINTER) -shared -nostartfiles -I/usr/X11R6/include -c hardware/r_opengl/ogl_x11.c
+- $(CC) $(M5) -O6 -o $(O)/ogl_x11.o -DHWRENDER -DVID_X11 -DLINUX $(POLL_POINTER) -shared -nostartfiles -I/usr/X11R6/include -c hardware/r_opengl/ogl_x11.c
+ $(CC) $(OPTFLAGS) -o $(O)/ogl_x11.o -DHWRENDER -DVID_X11 -DLINUX $(POLL_POINTER) -shared -nostartfiles -I/usr/X11R6/include -c hardware/r_opengl/ogl_x11.c
else
$(O)/ogl_x11.o: hardware/r_opengl/ogl_x11.c hardware/r_opengl/r_opengl.h
-- $(CC) -mpentium -O6 -o $(O)/ogl_x11.o -DHWRENDER -DVID_X11 -DLINUX -DFREEBSD $(POLL_POINTER) -shared -nostartfiles -I/usr/X11R6/include -c hardware/r_opengl/ogl_x11.c
+- $(CC) $(M5) -O6 -o $(O)/ogl_x11.o -DHWRENDER -DVID_X11 -DLINUX -DFREEBSD $(POLL_POINTER) -shared -nostartfiles -I/usr/X11R6/include -c hardware/r_opengl/ogl_x11.c
+ $(CC) $(OPTFLAGS) -o $(O)/ogl_x11.o -DHWRENDER -DVID_X11 -DLINUX -DFREEBSD $(POLL_POINTER) -shared -nostartfiles -I/usr/X11R6/include -c hardware/r_opengl/ogl_x11.c
endif
---- doomlegacy-1.40/doomlegacy_src/linux_x/i_sound.c.orig Fri Mar 7 22:14:51 2003
-+++ doomlegacy-1.40/doomlegacy_src/linux_x/i_sound.c Fri Mar 7 22:18:30 2003
+--- doomlegacy-1.40/doomlegacy_142_src/linux_x/i_sound.c.orig Fri Mar 7 22:14:51 2003
++++ doomlegacy-1.40/doomlegacy_142_src/linux_x/i_sound.c Fri Mar 7 22:18:30 2003
@@ -88,6 +88,7 @@
#include <sys/filio.h>
#endif
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
-@@ -261,7 +262,6 @@
- int* arg )
- {
- int rc;
-- extern int errno;
-
- rc = ioctl(fd, command, arg);
+@@ -262,7 +262,6 @@
+ void myioctl(int fd, int command, int *arg)
+ {
+ int rc;
+- extern int errno;
+
+ rc = ioctl(fd, command, arg);
if (rc < 0)
---- doomlegacy-1.40/doomlegacy_src/linux_x/sndserv/linux.c.orig Sun Sep 22 00:35:57 2002
-+++ doomlegacy-1.40/doomlegacy_src/linux_x/sndserv/linux.c Fri Mar 7 22:22:26 2003
+--- doomlegacy-1.40/doomlegacy_142_src/linux_x/sndserv/linux.c.orig Sun Sep 22 00:35:57 2002
++++ doomlegacy-1.40/doomlegacy_142_src/linux_x/sndserv/linux.c Fri Mar 7 22:22:26 2003
@@ -39,6 +39,7 @@
#include <stdlib.h>
---- doomlegacy-1.40/doomlegacy_src/linux_x/i_video_xshm.c.orig Fri Mar 7 22:22:56 2003
-+++ doomlegacy-1.40/doomlegacy_src/linux_x/i_video_xshm.c Fri Mar 7 22:51:25 2003
+--- doomlegacy-1.40/doomlegacy_142_src/linux_x/i_video_xshm.c.orig Fri Mar 7 22:22:56 2003
++++ doomlegacy-1.40/doomlegacy_142_src/linux_x/i_video_xshm.c Fri Mar 7 22:51:25 2003
@@ -1619,14 +1619,14 @@
if(rendermode==render_soft) {
// setup attributes for main window
---- doomlegacy_src/linux_x/musserv/sequencer.c.orig Sat Feb 22 21:25:59 2003
-+++ doomlegacy_src/linux_x/musserv/sequencer.c Sat Feb 22 21:27:23 2003
+--- doomlegacy_142_src/linux_x/musserv/sequencer.c.orig Sat Feb 22 21:25:59 2003
++++ doomlegacy_142_src/linux_x/musserv/sequencer.c Sat Feb 22 21:27:23 2003
@@ -177,11 +177,7 @@
seq_dev = num_fm;
---- doomlegacy_src/linux_x/musserv/musserver.c.orig Sat Feb 22 20:51:24 2003
-+++ doomlegacy_src/linux_x/musserv/musserver.c Sat Feb 22 20:52:15 2003
+--- doomlegacy_142_src/linux_x/musserv/musserver.c.orig Sat Feb 22 20:51:24 2003
++++ doomlegacy_142_src/linux_x/musserv/musserver.c Sat Feb 22 20:52:15 2003
@@ -122,9 +122,7 @@
ppid = getpid();
if (verbose > 1)
while ((x = getopt(argc, argv, "acd:fhi:lmt:u:Vv")) != -1)
switch (x)
---- doomlegacy_src/linux_x/musserv/readwad.c.orig Sat Feb 22 20:52:25 2003
-+++ doomlegacy_src/linux_x/musserv/readwad.c Sat Feb 22 20:53:03 2003
+--- doomlegacy_142_src/linux_x/musserv/readwad.c.orig Sat Feb 22 20:52:25 2003
++++ doomlegacy_142_src/linux_x/musserv/readwad.c Sat Feb 22 20:53:03 2003
@@ -213,7 +213,7 @@
FILE *fp;
wadfilename = malloc(2 + strlen(s) + strlen(waddir));
if (*s != '/')
---- doomlegacy_src/linux_x/i_video_xshm.c.orig Sat Feb 22 20:45:02 2003
-+++ doomlegacy_src/linux_x/i_video_xshm.c Sat Feb 22 20:46:49 2003
+--- doomlegacy_142_src/linux_x/i_video_xshm.c.orig Sat Feb 22 20:45:02 2003
++++ doomlegacy_142_src/linux_x/i_video_xshm.c Sat Feb 22 20:46:49 2003
@@ -1984,7 +1984,7 @@
rendermode = render_opengl;
if(!dlptr) {
// try to open in LIBPATH
---- doomlegacy_src/linux_x/i_system.c.orig Sat Feb 22 20:48:37 2003
-+++ doomlegacy_src/linux_x/i_system.c Sat Feb 22 20:50:55 2003
+--- doomlegacy_142_src/linux_x/i_system.c.orig Sat Feb 22 20:48:37 2003
++++ doomlegacy_142_src/linux_x/i_system.c Sat Feb 22 20:50:55 2003
@@ -141,9 +141,9 @@
extern int eventtail;
#define DEFAULTSEARCHPATH2 "/usr/games"
#define WADKEYWORD "legacy.dat"
---- doomlegacy_src/linux_x/searchp.c.orig Sat Feb 22 20:53:41 2003
-+++ doomlegacy_src/linux_x/searchp.c Sat Feb 22 20:54:22 2003
+--- doomlegacy_142_src/linux_x/searchp.c.orig Sat Feb 22 20:53:41 2003
++++ doomlegacy_142_src/linux_x/searchp.c Sat Feb 22 20:54:22 2003
@@ -22,6 +22,12 @@
static char b[2048];
struct stat s;
char pb[2048];
+
-+ strcpy(b,"/usr/X11R6/lib/doomlegacy_src/");
++ strcpy(b,"/usr/X11R6/lib/doomlegacy_142_src/");
+ strcat(b,file);
+ if (stat(b, &s) == 0) {
+ return(b);
/* get PATH, if not set just return filename, might be in cwd */
/* added "./" for current path 19990416 by Kin */
---- doomlegacy_src/d_main.c.orig Sat Feb 22 20:47:20 2003
-+++ doomlegacy_src/d_main.c Sat Feb 22 20:48:10 2003
+--- doomlegacy_142_src/d_main.c.orig Sat Feb 22 20:47:20 2003
++++ doomlegacy_142_src/d_main.c Sat Feb 22 20:48:10 2003
@@ -1022,16 +1022,8 @@
// change to the directory where 'legacy.dat' is found
- I_LocateWad();
+ I_LocateWad();
#endif
- doomwaddir = getenv("DOOMWADDIR");
- if (!doomwaddir)
- {
- // get the current directory (possible problem on NT with "." as current dir)
-- if ( getcwd(pathtemp, _MAX_PATH) != NULL )
+- if (getcwd(pathtemp, _MAX_PATH) != NULL)
- doomwaddir = pathtemp;
- else
- doomwaddir = ".";
- }
--
-+ doomwaddir = getenv("DOOMWADDIR") ? getenv("DOOMWADDIR") : "/usr/share/doomlegacy";
-+
++ doomwaddir = getenv("DOOMWADDIR") ? getenv("DOOMWADDIR") : "/usr/share/doomlegacy";
+
#ifdef __MACOS__
- // cwd is always "/" when app is dbl-clicked
- if (!stricmp(doomwaddir,"/"))
+ // cwd is always "/" when app is dbl-clicked
---- doomlegacy_src/linux_x/i_sound.c.orig Sun Feb 23 01:03:54 2003
-+++ doomlegacy_src/linux_x/i_sound.c Sun Feb 23 01:19:30 2003
-@@ -929,7 +929,7 @@
- if (nosound)
- return;
+--- doomlegacy_142_src/linux_x/i_sound.c.orig Sun Feb 23 01:03:54 2003
++++ doomlegacy_142_src/linux_x/i_sound.c Sun Feb 23 01:19:30 2003
+@@ -880,7 +880,7 @@
+ if (nosound)
+ return;
-- fn_snd = searchpath(sndserver_cmd.string);
-+ fn_snd = "/usr/lib/doomlegacy/llsndserv";
-
- // start sound process
- if ( !access(fn_snd, X_OK) )
-@@ -1057,7 +1057,7 @@
- return;
+- fn_snd = searchpath(sndserver_cmd.string);
++ fn_snd = "/usr/lib/doomlegacy/llsndserv";
+
+ // start sound process
+ if (!access(fn_snd, X_OK))
+@@ -1004,7 +1004,7 @@
+ return;
#ifdef MUSSERV
-- fn_mus = searchpath(musserver_cmd.string);
-+ fn_mus = "/usr/lib/doomlegacy/musserver";
+- fn_mus = searchpath(musserver_cmd.string);
++ fn_mus = "/usr/lib/doomlegacy/musserver";
- // now try to start the music server process
- if (!access(fn_mus, X_OK)) {
+ // now try to start the music server process
+ if (!access(fn_mus, X_OK))
---- doomlegacy-1.40/doomlegacy_src/linux_x/i_video_xshm.c~ Fri Mar 14 03:11:35 2003
-+++ doomlegacy-1.40/doomlegacy_src/linux_x/i_video_xshm.c Fri Mar 14 03:11:35 2003
+--- doomlegacy-1.40/doomlegacy_142_src/linux_x/i_video_xshm.c~ Fri Mar 14 03:11:35 2003
++++ doomlegacy-1.40/doomlegacy_142_src/linux_x/i_video_xshm.c Fri Mar 14 03:11:35 2003
@@ -182,7 +182,9 @@
// resolution threshold for hires mode
#define HIRES_HORIZ (640)