bbc03b
diff -ru gxemul-0.7.0.orig/configure gxemul-0.7.0/configure
bbc03b
--- gxemul-0.7.0.orig/configure	2021-04-22 18:04:21.000000000 +0000
bbc03b
+++ gxemul-0.7.0/configure	2022-10-18 18:28:37.542626000 +0000
bbc03b
@@ -112,11 +112,6 @@
bbc03b
 			echo "value, which on this platform is: $DEFAULTPREFIX"
bbc03b
 			echo
bbc03b
 			exit
bbc03b
-		else
bbc03b
-			echo "Invalid option: $a"
bbc03b
-			echo "Run  $0 --help  to get a list of" \
bbc03b
-			    "available options."
bbc03b
-			exit
bbc03b
 		fi; fi; fi
bbc03b
 	done
bbc03b
 fi
bbc03b
@@ -267,44 +262,6 @@
bbc03b
 	CC=cc
bbc03b
 fi
bbc03b
 
bbc03b
-printf "#!/bin/sh\n$CC $CFLAGS _testprog.c -o _testprog >" > _test.sh
bbc03b
-printf " /dev/null 2> /dev/null\n" >> _test.sh
bbc03b
-chmod 755 _test.sh
bbc03b
-./_test.sh > /dev/null 2> /dev/null
bbc03b
-OK=0
bbc03b
-if [ -x _testprog ]; then
bbc03b
-	OK=1
bbc03b
-	if [ z`./_testprog` = z0,1,1,1,2 ]; then
bbc03b
-		OK=2
bbc03b
-	fi
bbc03b
-fi
bbc03b
-
bbc03b
-if [ z$OK = z0 ]; then
bbc03b
-	printf "broken cc detected: $CC $CFLAGS\n"
bbc03b
-	printf "The test program:\n\n"
bbc03b
-	cat _testprog.c
bbc03b
-	printf "could not be compiled at all.\n"
bbc03b
-fi
bbc03b
-
bbc03b
-if [ z$OK = z1 ]; then
bbc03b
-	printf "broken cc detected: $CC $CFLAGS\n"
bbc03b
-	printf "The test program:\n\n"
bbc03b
-	cat _testprog.c
bbc03b
-	printf "should have resulted in  0,1,1,1,2  but the result was: "
bbc03b
-	./_testprog
bbc03b
-fi
bbc03b
-
bbc03b
-if [ z$OK != z2 ]; then
bbc03b
-	printf "\nPlease set the CC environment variable to a working C "
bbc03b
-	printf "compiler before running\nthe configure script, and make"
bbc03b
-	printf " sure that the CFLAGS environment variable is\nalso valid"
bbc03b
-	printf " for that compiler (e.g. -std=c99 if needed).\n"
bbc03b
-	exit
bbc03b
-fi
bbc03b
-
bbc03b
-rm -f _testprog
bbc03b
-rm -f _test.sh
bbc03b
-
bbc03b
 
bbc03b
 echo "$CC $CFLAGS"
bbc03b
 
bbc03b
@@ -317,120 +274,12 @@
bbc03b
 if [ z$NOX11 = z ]; then
bbc03b
 	printf "checking for X11 headers and libs\n"
bbc03b
 
bbc03b
-	#  Try to compile a small X11 test program:
bbc03b
-	printf "#include <X11/Xlib.h>
bbc03b
-	#include <stdio.h>
bbc03b
-	Display *dis;
bbc03b
-	void f(void) {
bbc03b
-		dis = XOpenDisplay(NULL);
bbc03b
-	}
bbc03b
-	int main(int argc, char *argv[])
bbc03b
-	{ printf(\"1\"); return 0; }
bbc03b
-	" > _test_x11.c
bbc03b
-
bbc03b
-	XOK=0
bbc03b
-
bbc03b
-	XINCLUDE=-I/usr/X11R6/include
bbc03b
-	$CC $CFLAGS _test_x11.c -c -o _test_x11.o $XINCLUDE 2> /dev/null
bbc03b
-
bbc03b
-	XLIB="-L/usr/X11R6/lib -lX11 -Wl,-rpath,/usr/X11R6/lib"
bbc03b
-	$CC $CFLAGS _test_x11.o -o _test_x11 $XLIB 2> /dev/null
bbc03b
-
bbc03b
-	if [ -x _test_x11 ]; then
bbc03b
-		if [ 1 = `./_test_x11` ]; then
bbc03b
-			XOK=1
bbc03b
-		fi
bbc03b
-	fi
bbc03b
-
bbc03b
-	rm -f _test_x11 _test_x11.o
bbc03b
-
bbc03b
-	if [ z$XOK = z0 ]; then
bbc03b
-		XINCLUDE=-I/usr/X11R7/include
bbc03b
-		$CC $CFLAGS _test_x11.c -c -o _test_x11.o $XINCLUDE 2> /dev/null
bbc03b
-
bbc03b
-		XLIB="-L/usr/X11R7/lib -lX11 -Wl,-rpath,/usr/X11R7/lib"
bbc03b
-		$CC $CFLAGS _test_x11.o -o _test_x11 $XLIB 2> /dev/null
bbc03b
-
bbc03b
-		if [ -x _test_x11 ]; then
bbc03b
-			if [ 1 = `./_test_x11` ]; then
bbc03b
-				XOK=1
bbc03b
-			fi
bbc03b
-		fi
bbc03b
-	fi
bbc03b
-	rm -f _test_x11 _test_x11.o
bbc03b
-
bbc03b
-	if [ z$XOK = z0 ]; then
bbc03b
-		XINCLUDE=-I/usr/local/include
bbc03b
-		$CC $CFLAGS _test_x11.c -c -o _test_x11.o $XINCLUDE 2> /dev/null
bbc03b
-
bbc03b
-		XLIB="-L/usr/local/lib -lX11 -Wl,-rpath,/usr/local/lib"
bbc03b
-		$CC $CFLAGS _test_x11.o -o _test_x11 $XLIB 2> /dev/null
bbc03b
-
bbc03b
-		if [ -x _test_x11 ]; then
bbc03b
-			if [ 1 = `./_test_x11` ]; then
bbc03b
-				XOK=1
bbc03b
-			fi
bbc03b
-		fi
bbc03b
-	fi
bbc03b
-	rm -f _test_x11 _test_x11.o
bbc03b
-
bbc03b
-	# MacOS:
bbc03b
-	if [ z$XOK = z0 ]; then
bbc03b
-		XINCLUDE=-I/opt/X11/include
bbc03b
-		$CC $CFLAGS _test_x11.c -c -o _test_x11.o $XINCLUDE 2> /dev/null
bbc03b
-
bbc03b
-		XLIB="-L/opt/X11/lib -lX11"
bbc03b
-		$CC $CFLAGS _test_x11.o -o _test_x11 $XLIB 2> /dev/null
bbc03b
-
bbc03b
-		if [ -x _test_x11 ]; then
bbc03b
-			XOK=1
bbc03b
-		fi
bbc03b
-	fi
bbc03b
-	rm -f _test_x11 _test_x11.o
bbc03b
-
bbc03b
-	#  Special case for some 64-bit Linux/x86_64 systems:
bbc03b
-	if [ z$XOK = z0 ]; then
bbc03b
-		$CC $CFLAGS _test_x11.c -c -o _test_x11.o $XINCLUDE 2> /dev/null
bbc03b
-
bbc03b
-		XLIB="-L/usr/X11R6/lib64 -lX11"
bbc03b
-		$CC $CFLAGS _test_x11.o -o _test_x11 $XLIB 2> /dev/null
bbc03b
-
bbc03b
-		if [ -x _test_x11 ]; then
bbc03b
-			if [ 1 = `./_test_x11` ]; then
bbc03b
-				XOK=1
bbc03b
-			fi
bbc03b
-		fi
bbc03b
-	fi
bbc03b
-	rm -f _test_x11 _test_x11.o
bbc03b
-
bbc03b
-	if [ z$XOK = z0 ]; then
bbc03b
-		XINCLUDE=""
bbc03b
-		$CC $CFLAGS _test_x11.c -c -o _test_x11.o $XINCLUDE 2> /dev/null
bbc03b
-
bbc03b
-		#  -lsocket for Solaris
bbc03b
-		XLIB="-lX11 -lsocket"
bbc03b
-		$CC $CFLAGS _test_x11.o -o _test_x11 $XLIB 2> /dev/null
bbc03b
-
bbc03b
-		if [ -x _test_x11 ]; then
bbc03b
-			if [ 1 = `./_test_x11` ]; then
bbc03b
-				XOK=1
bbc03b
-			fi
bbc03b
-		fi
bbc03b
-		rm -f _test_x11 _test_x11.o
bbc03b
-	fi
bbc03b
-
bbc03b
-	if [ z$XOK = z0 ]; then
bbc03b
-		echo "Failed to compile X11 test program." \
bbc03b
-		    "Configuring without X11."
bbc03b
-	else
bbc03b
 		printf "   headers:   $XINCLUDE\n"
bbc03b
 		printf "   libraries: $XLIB\n"
bbc03b
 		echo "XINCLUDE=$XINCLUDE" >> _Makefile.header
bbc03b
 		echo "XLIB=$XLIB" >> _Makefile.header
bbc03b
 		printf "#define WITH_X11\n" >> config.h
bbc03b
-	fi
bbc03b
 
bbc03b
-	rm -f _test_x11.c
bbc03b
 fi
bbc03b
 
bbc03b
 
bbc03b
@@ -549,8 +398,8 @@
bbc03b
 		rm -f _testprog
bbc03b
 		$CC $CFLAGS -O3 _testprog.c -o _testprog 2> /dev/null
bbc03b
 		if [ -x _testprog ]; then
bbc03b
-			CFLAGS="-O3 $CFLAGS"
bbc03b
-			printf "yes, -O3\n"
bbc03b
+			CFLAGS="-O0 $CFLAGS"
bbc03b
+			printf "yes, -O0\n"
bbc03b
 		else
bbc03b
 			CFLAGS="-O $CFLAGS"
bbc03b
 			printf "yes, -O\n"
bbc03b
@@ -843,83 +692,17 @@
bbc03b
 
bbc03b
 #  Check for PRIx64 in inttypes.h:
bbc03b
 printf "checking for PRIx64 in inttypes.h... "
bbc03b
-printf "#include <inttypes.h>\nint main(int argc, char *argv[])\n
bbc03b
-{\n#ifdef PRIx64\nreturn 0;\n#else\nreturn 1;\n#endif\n}\n" > _testpri.c
bbc03b
-$CC $CFLAGS _testpri.c -o _testpri 2> /dev/null
bbc03b
-if [ ! -x _testpri ]; then
bbc03b
-	printf "\nERROR! COULD NOT COMPILE PRIx64 TEST PROGRAM AT ALL!\n"
bbc03b
-	exit
bbc03b
-else
bbc03b
-	if ./_testpri; then
bbc03b
-		printf "yes\n"
bbc03b
-	else
bbc03b
-		$CC $CFLAGS -D__STDC_FORMAT_MACROS _testpri.c -o _testpri 2> /dev/null
bbc03b
-		if [ -x _testpri ]; then
bbc03b
-			printf "using __STDC_FORMAT_MACROS\n"
bbc03b
-			CFLAGS="$CFLAGS -D__STDC_FORMAT_MACROS"
bbc03b
-		else
bbc03b
-			printf "no, using an ugly hack instead, "
bbc03b
-			printf "#define NO_C99_PRINTF_DEFINES\n" >> config.h
bbc03b
-
bbc03b
-			# Try llx first:
bbc03b
-			printf "#include <stdio.h>\n#include <inttypes.h>\nint main(int argc, char *argv[]){
bbc03b
-			    printf(\"%%llx\\\n\", (int64_t)128);return 0;}\n" > _testpri.c
bbc03b
-			rm -f _testpri
bbc03b
-			$CC $CFLAGS $CWARNINGS _testpri.c -o _testpri 2> /dev/null
bbc03b
-			if [ z`./_testpri` = z80 ]; then
bbc03b
-				printf "PRIx64=llx\n"
bbc03b
-				printf "#define NO_C99_64BIT_LONGLONG\n" >> config.h
bbc03b
-			else
bbc03b
-				# Try lx too:
bbc03b
-				printf "#include <stdio.h>\n#include <inttypes.h>\nint main(int argc, char *argv[]){
bbc03b
-				    printf(\"%%lx\\\n\", (int64_t)128);return 0;}\n" > _testpri.c
bbc03b
-				rm -f _testpri
bbc03b
-				$CC $CFLAGS $CWARNINGS _testpri.c -o _testpri 2> _testpri.result
bbc03b
-				if [ z`./_testpri` = z80 ]; then
bbc03b
-					printf "PRIx64=lx\n"
bbc03b
-				else
bbc03b
-					printf "\nFailed, neither lx nor llx worked!\n"
bbc03b
-					exit
bbc03b
-				fi
bbc03b
-			fi
bbc03b
-		fi
bbc03b
-	fi
bbc03b
-fi
bbc03b
-rm -f _testpri.c _testpri _testpri.result
bbc03b
 
bbc03b
+printf "using __STDC_FORMAT_MACROS\n"
bbc03b
+CFLAGS="$CFLAGS -D__STDC_FORMAT_MACROS"
bbc03b
 
bbc03b
 #  Check for 64-bit off_t:
bbc03b
 printf "checking for 64-bit off_t... "
bbc03b
-printf "#include <stdio.h>\n#include <inttypes.h>\n#include <sys/types.h>\n
bbc03b
-int main(int argc, char *argv[]){printf(\"%%i\\\n\",
bbc03b
- (int)sizeof(off_t));return 0;}\n" > _testoff.c
bbc03b
-$CC $CFLAGS _testoff.c -o _testoff 2> /dev/null
bbc03b
-if [ ! -x _testoff ]; then
bbc03b
-	printf "\nWARNING! COULD NOT COMPILE off_t TEST PROGRAM AT ALL!\n"
bbc03b
-else
bbc03b
-	if [ z`./_testoff` = z8 ]; then
bbc03b
-		printf "yes\n"
bbc03b
-	else
bbc03b
-		$CC $CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
bbc03b
-		    _testoff.c -o _testoff 2> /dev/null
bbc03b
-		if [ ! -x _testoff ]; then
bbc03b
-			printf "\nWARNING! COULD NOT COMPILE off_t TEST "
bbc03b
-			printf "PROGRAM!\n"
bbc03b
-		else
bbc03b
-			if [ z`./_testoff` = z8 ]; then
bbc03b
-				CFLAGS="-D_FILE_OFFSET_BITS=64 $CFLAGS"
bbc03b
-				CFLAGS="-D_LARGEFILE_SOURCE $CFLAGS"
bbc03b
-				printf "using -D_FILE_OFFSET_BITS=64"
bbc03b
-				printf " -D_LARGEFILE_SOURCE\n"
bbc03b
-			else
bbc03b
-				printf "NO\n"
bbc03b
-				printf "Warning! No 64-bit off_t. Continuing "
bbc03b
-				printf "anyway.\n"
bbc03b
-			fi
bbc03b
-		fi
bbc03b
-	fi
bbc03b
-fi
bbc03b
-rm -f _testoff.c _testoff
bbc03b
+
bbc03b
+CFLAGS="-D_FILE_OFFSET_BITS=64 $CFLAGS"
bbc03b
+CFLAGS="-D_LARGEFILE_SOURCE $CFLAGS"
bbc03b
+printf "using -D_FILE_OFFSET_BITS=64"
bbc03b
+printf " -D_LARGEFILE_SOURCE\n"
bbc03b
 
bbc03b
 
bbc03b
 #  Check for u_int8_t etc:
bbc03b
@@ -1004,7 +787,7 @@
bbc03b
 if (*p) printf("little\\\n"); else printf("big\\\n"); }
bbc03b
 ' > _test_end.c
bbc03b
 $CC $CFLAGS _test_end.c -o _test_end 2> /dev/null
bbc03b
-X=`./_test_end`
bbc03b
+X=little
bbc03b
 echo $X
bbc03b
 if [ z$X = zlittle ]; then
bbc03b
 	printf "#define HOST_LITTLE_ENDIAN\n" >> config.h
bbc03b
diff -ru gxemul-0.7.0.orig/src/cpus/Makefile.skel gxemul-0.7.0/src/cpus/Makefile.skel
bbc03b
--- gxemul-0.7.0.orig/src/cpus/Makefile.skel	2021-04-22 18:04:18.000000000 +0000
bbc03b
+++ gxemul-0.7.0/src/cpus/Makefile.skel	2022-10-18 17:51:18.073318900 +0000
bbc03b
@@ -21,184 +21,50 @@
bbc03b
 
bbc03b
 ###############################################################################
bbc03b
 
bbc03b
-cpu_alpha.o: cpu_alpha.c cpu_alpha_instr.c cpu_dyntrans.c memory_rw.c \
bbc03b
-	tmp_alpha_head.c tmp_alpha_tail.c
bbc03b
+cpu_alpha.o: cpu_alpha.c cpu_alpha_instr.c cpu_dyntrans.c memory_rw.c
bbc03b
 
bbc03b
-cpu_alpha_instr.c: cpu_alpha_instr_alu.c tmp_alpha_misc.c
bbc03b
-
bbc03b
-tmp_alpha_misc.c: cpu_alpha_instr_loadstore.c generate_alpha_misc
bbc03b
-	./generate_alpha_misc > tmp_alpha_misc.c
bbc03b
-
bbc03b
-tmp_alpha_head.c: generate_head
bbc03b
-	./generate_head alpha Alpha > tmp_alpha_head.c
bbc03b
-
bbc03b
-tmp_alpha_tail.c: generate_tail
bbc03b
-	./generate_tail alpha Alpha > tmp_alpha_tail.c
bbc03b
+cpu_alpha_instr.c: cpu_alpha_instr_alu.c
bbc03b
 
bbc03b
 
bbc03b
 ###############################################################################
bbc03b
 
bbc03b
-cpu_arm.o: cpu_arm.c cpu_arm_instr.c cpu_dyntrans.c memory_rw.c \
bbc03b
-	tmp_arm_head.c tmp_arm_tail.c
bbc03b
+cpu_arm.o: cpu_arm.c cpu_arm_instr.c cpu_dyntrans.c memory_rw.c
bbc03b
 
bbc03b
 cpu_arm_instr.c: cpu_arm_instr_misc.c
bbc03b
 
bbc03b
-tmp_arm_loadstore.c: cpu_arm_instr_loadstore.c generate_arm_loadstore
bbc03b
-	./generate_arm_loadstore > tmp_arm_loadstore.c
bbc03b
-tmp_arm_loadstore_p0_u0_w0.c: cpu_arm_instr_loadstore.c generate_arm_loadstore
bbc03b
-	./generate_arm_loadstore 0 0 0 > tmp_arm_loadstore_p0_u0_w0.c
bbc03b
-tmp_arm_loadstore_p0_u0_w1.c: cpu_arm_instr_loadstore.c generate_arm_loadstore
bbc03b
-	./generate_arm_loadstore 0 0 1 > tmp_arm_loadstore_p0_u0_w1.c
bbc03b
-tmp_arm_loadstore_p0_u1_w0.c: cpu_arm_instr_loadstore.c generate_arm_loadstore
bbc03b
-	./generate_arm_loadstore 0 1 0 > tmp_arm_loadstore_p0_u1_w0.c
bbc03b
-tmp_arm_loadstore_p0_u1_w1.c: cpu_arm_instr_loadstore.c generate_arm_loadstore
bbc03b
-	./generate_arm_loadstore 0 1 1 > tmp_arm_loadstore_p0_u1_w1.c
bbc03b
-tmp_arm_loadstore_p1_u0_w0.c: cpu_arm_instr_loadstore.c generate_arm_loadstore
bbc03b
-	./generate_arm_loadstore 1 0 0 > tmp_arm_loadstore_p1_u0_w0.c
bbc03b
-tmp_arm_loadstore_p1_u0_w1.c: cpu_arm_instr_loadstore.c generate_arm_loadstore
bbc03b
-	./generate_arm_loadstore 1 0 1 > tmp_arm_loadstore_p1_u0_w1.c
bbc03b
-tmp_arm_loadstore_p1_u1_w0.c: cpu_arm_instr_loadstore.c generate_arm_loadstore
bbc03b
-	./generate_arm_loadstore 1 1 0 > tmp_arm_loadstore_p1_u1_w0.c
bbc03b
-tmp_arm_loadstore_p1_u1_w1.c: cpu_arm_instr_loadstore.c generate_arm_loadstore
bbc03b
-	./generate_arm_loadstore 1 1 1 > tmp_arm_loadstore_p1_u1_w1.c
bbc03b
-
bbc03b
-tmp_arm_multi.c: generate_arm_multi cpu_arm_multi.txt
bbc03b
-	./generate_arm_multi `cat cpu_arm_multi.txt` > tmp_arm_multi.c
bbc03b
-
bbc03b
-tmp_arm_dpi.c: cpu_arm_instr_dpi.c generate_arm_dpi
bbc03b
-	./generate_arm_dpi > tmp_arm_dpi.c
bbc03b
-
bbc03b
-tmp_arm_r0.c: generate_arm_r
bbc03b
-	./generate_arm_r 0x000 0x0ff > tmp_arm_r0.c
bbc03b
-tmp_arm_r1.c: generate_arm_r
bbc03b
-	./generate_arm_r 0x100 0x1ff > tmp_arm_r1.c
bbc03b
-tmp_arm_r2.c: generate_arm_r
bbc03b
-	./generate_arm_r 0x200 0x2ff > tmp_arm_r2.c
bbc03b
-tmp_arm_r3.c: generate_arm_r
bbc03b
-	./generate_arm_r 0x300 0x3ff > tmp_arm_r3.c
bbc03b
-tmp_arm_r4.c: generate_arm_r
bbc03b
-	./generate_arm_r 0x400 0x4ff > tmp_arm_r4.c
bbc03b
-tmp_arm_r5.c: generate_arm_r
bbc03b
-	./generate_arm_r 0x500 0x5ff > tmp_arm_r5.c
bbc03b
-tmp_arm_r6.c: generate_arm_r
bbc03b
-	./generate_arm_r 0x600 0x6ff > tmp_arm_r6.c
bbc03b
-tmp_arm_r7.c: generate_arm_r
bbc03b
-	./generate_arm_r 0x700 0x7ff > tmp_arm_r7.c
bbc03b
-tmp_arm_r8.c: generate_arm_r
bbc03b
-	./generate_arm_r 0x800 0x8ff > tmp_arm_r8.c
bbc03b
-tmp_arm_r9.c: generate_arm_r
bbc03b
-	./generate_arm_r 0x900 0x9ff > tmp_arm_r9.c
bbc03b
-tmp_arm_ra.c: generate_arm_r
bbc03b
-	./generate_arm_r 0xa00 0xaff > tmp_arm_ra.c
bbc03b
-tmp_arm_rb.c: generate_arm_r
bbc03b
-	./generate_arm_r 0xb00 0xbff > tmp_arm_rb.c
bbc03b
-tmp_arm_rc.c: generate_arm_r
bbc03b
-	./generate_arm_r 0xc00 0xcff > tmp_arm_rc.c
bbc03b
-tmp_arm_rd.c: generate_arm_r
bbc03b
-	./generate_arm_r 0xd00 0xdff > tmp_arm_rd.c
bbc03b
-tmp_arm_re.c: generate_arm_r
bbc03b
-	./generate_arm_r 0xe00 0xeff > tmp_arm_re.c
bbc03b
-tmp_arm_rf.c: generate_arm_r
bbc03b
-	./generate_arm_r 0xf00 0xfff > tmp_arm_rf.c
bbc03b
-
bbc03b
-tmp_arm_r.c: generate_arm_r
bbc03b
-	./generate_arm_r 0 0 > tmp_arm_r.c
bbc03b
-
bbc03b
-tmp_arm_head.c: generate_head
bbc03b
-	./generate_head arm ARM > tmp_arm_head.c
bbc03b
-
bbc03b
-tmp_arm_tail.c: generate_tail
bbc03b
-	./generate_tail arm ARM > tmp_arm_tail.c
bbc03b
-
bbc03b
-
bbc03b
-###############################################################################
bbc03b
-
bbc03b
-cpu_i960.o: cpu_i960.c cpu_i960_instr.c cpu_dyntrans.c memory_rw.c \
bbc03b
-	tmp_i960_head.c tmp_i960_tail.c
bbc03b
-
bbc03b
-tmp_i960_head.c: generate_head
bbc03b
-	./generate_head i960 I960 > tmp_i960_head.c
bbc03b
-
bbc03b
-tmp_i960_tail.c: generate_tail
bbc03b
-	./generate_tail i960 I960 > tmp_i960_tail.c
bbc03b
-
bbc03b
-
bbc03b
-###############################################################################
bbc03b
-
bbc03b
-cpu_m88k.o: cpu_m88k.c cpu_m88k_instr.c cpu_dyntrans.c memory_rw.c \
bbc03b
-	tmp_m88k_loadstore.c tmp_m88k_head.c tmp_m88k_tail.c tmp_m88k_bcnd.c
bbc03b
-
bbc03b
-tmp_m88k_bcnd.c: generate_m88k_bcnd
bbc03b
-	./generate_m88k_bcnd > tmp_m88k_bcnd.c
bbc03b
 
bbc03b
-tmp_m88k_loadstore.c: cpu_m88k_instr_loadstore.c generate_m88k_loadstore
bbc03b
-	./generate_m88k_loadstore > tmp_m88k_loadstore.c
bbc03b
-
bbc03b
-tmp_m88k_head.c: generate_head
bbc03b
-	./generate_head m88k M88K > tmp_m88k_head.c
bbc03b
+###############################################################################
bbc03b
 
bbc03b
-tmp_m88k_tail.c: generate_tail
bbc03b
-	./generate_tail m88k M88K > tmp_m88k_tail.c
bbc03b
+cpu_i960.o: cpu_i960.c cpu_i960_instr.c cpu_dyntrans.c memory_rw.c
bbc03b
 
bbc03b
 
bbc03b
 ###############################################################################
bbc03b
 
bbc03b
-cpu_mips.o: cpu_mips.c cpu_dyntrans.c memory_mips.c \
bbc03b
-	cpu_mips_instr.c tmp_mips_loadstore.c tmp_mips_loadstore_multi.c \
bbc03b
-	tmp_mips_head.c tmp_mips_tail.c
bbc03b
-
bbc03b
-memory_mips.c: memory_rw.c memory_mips_v2p.c
bbc03b
+cpu_m88k.o: cpu_m88k.c cpu_m88k_instr.c cpu_dyntrans.c memory_rw.c
bbc03b
 
bbc03b
-tmp_mips_loadstore.c: cpu_mips_instr_loadstore.c generate_mips_loadstore
bbc03b
-	./generate_mips_loadstore > tmp_mips_loadstore.c
bbc03b
 
bbc03b
-tmp_mips_loadstore_multi.c: generate_mips_loadstore_multi
bbc03b
-	./generate_mips_loadstore_multi > tmp_mips_loadstore_multi.c
bbc03b
+###############################################################################
bbc03b
 
bbc03b
-tmp_mips_head.c: generate_head
bbc03b
-	./generate_head mips MIPS > tmp_mips_head.c
bbc03b
+cpu_mips.o: cpu_mips.c cpu_dyntrans.c memory_mips.c \
bbc03b
+	cpu_mips_instr.c
bbc03b
 
bbc03b
-tmp_mips_tail.c: generate_tail
bbc03b
-	./generate_tail mips MIPS > tmp_mips_tail.c
bbc03b
+memory_mips.c: memory_rw.c memory_mips_v2p.c
bbc03b
 
bbc03b
 
bbc03b
 ###############################################################################
bbc03b
 
bbc03b
 cpu_ppc.o: cpu_ppc.c cpu_ppc_instr.c cpu_dyntrans.c memory_ppc.c \
bbc03b
-	memory_rw.c tmp_ppc_head.c tmp_ppc_tail.c tmp_ppc_loadstore.c
bbc03b
-
bbc03b
-tmp_ppc_loadstore.c: cpu_ppc_instr_loadstore.c generate_ppc_loadstore
bbc03b
-	./generate_ppc_loadstore > tmp_ppc_loadstore.c
bbc03b
-
bbc03b
-tmp_ppc_head.c: generate_head
bbc03b
-	./generate_head ppc PPC > tmp_ppc_head.c
bbc03b
-
bbc03b
-tmp_ppc_tail.c: generate_tail
bbc03b
-	./generate_tail ppc PPC > tmp_ppc_tail.c
bbc03b
+	memory_rw.c
bbc03b
 
bbc03b
 
bbc03b
 ###############################################################################
bbc03b
 
bbc03b
-cpu_riscv.o: cpu_riscv.c cpu_riscv_instr.c cpu_dyntrans.c memory_rw.c \
bbc03b
-	tmp_riscv_head.c tmp_riscv_tail.c
bbc03b
-
bbc03b
-tmp_riscv_head.c: generate_head
bbc03b
-	./generate_head riscv RISCV > tmp_riscv_head.c
bbc03b
-
bbc03b
-tmp_riscv_tail.c: generate_tail
bbc03b
-	./generate_tail riscv RISCV > tmp_riscv_tail.c
bbc03b
+cpu_riscv.o: cpu_riscv.c cpu_riscv_instr.c cpu_dyntrans.c memory_rw.c
bbc03b
 
bbc03b
 
bbc03b
 ###############################################################################
bbc03b
 
bbc03b
-cpu_sh.o: cpu_sh.c cpu_sh_instr.c cpu_dyntrans.c memory_rw.c \
bbc03b
-	tmp_sh_head.c tmp_sh_tail.c
bbc03b
-
bbc03b
-tmp_sh_head.c: generate_head
bbc03b
-	./generate_head sh SH > tmp_sh_head.c
bbc03b
-
bbc03b
-tmp_sh_tail.c: generate_tail
bbc03b
-	./generate_tail sh SH > tmp_sh_tail.c
bbc03b
+cpu_sh.o: cpu_sh.c cpu_sh_instr.c cpu_dyntrans.c memory_rw.c
bbc03b
 
bbc03b
 
bbc03b
 ###############################################################################
bbc03b
diff -ru gxemul-0.7.0.orig/src/devices/fonts/Makefile.skel gxemul-0.7.0/src/devices/fonts/Makefile.skel
bbc03b
--- gxemul-0.7.0.orig/src/devices/fonts/Makefile.skel	2021-04-22 18:04:20.000000000 +0000
bbc03b
+++ gxemul-0.7.0/src/devices/fonts/Makefile.skel	2022-10-18 18:14:35.825867300 +0000
bbc03b
@@ -1,13 +1,13 @@
bbc03b
 all: font8x8.c font8x10.c font8x16.c
bbc03b
 
bbc03b
 font8x8.c: Xconv_raw_to_c
bbc03b
-	./Xconv_raw_to_c vt220l.808 font8x8 > font8x8.c
bbc03b
+	@echo foo.
bbc03b
 
bbc03b
 font8x10.c: Xconv_raw_to_c
bbc03b
-	./Xconv_raw_to_c vt220l.810 font8x10 > font8x10.c
bbc03b
+	@echo foo.
bbc03b
 
bbc03b
 font8x16.c: Xconv_raw_to_c
bbc03b
-	./Xconv_raw_to_c vt220l.816 font8x16 > font8x16.c
bbc03b
+	@echo foo.
bbc03b
 
bbc03b
 clean:
bbc03b
 	rm -f Xconv_raw_to_c font8x16.c font8x8.c font8x10.c
bbc03b
diff -ru gxemul-0.7.0.orig/src/include/Makefile.skel gxemul-0.7.0/src/include/Makefile.skel
bbc03b
--- gxemul-0.7.0.orig/src/include/Makefile.skel	2021-04-22 18:04:15.000000000 +0000
bbc03b
+++ gxemul-0.7.0/src/include/Makefile.skel	2022-10-18 17:19:09.499745700 +0000
bbc03b
@@ -5,7 +5,7 @@
bbc03b
 all: ppc_spr_strings.h
bbc03b
 
bbc03b
 ppc_spr_strings.h: make_ppc_spr_strings
bbc03b
-	grep '#define.SPR_' thirdparty/ppc_spr.h |cut -d _ -f 2- | ./make_ppc_spr_strings > ppc_spr_strings.h
bbc03b
+	@echo foo.
bbc03b
 
bbc03b
 clean:
bbc03b
 	rm -f *core ppc_spr_strings.h make_ppc_spr_strings