diff --git a/README b/README index dbae702..f114547 100644 --- a/README +++ b/README @@ -1,9 +1,6 @@ -Syn68k has not been actively worked on for about thirteen years. A few +Syn68k has not been actively worked on since about 1995. A few mods have been made here and there to keep up with changes in gcc. -Right now I'm putting it on github (with Mat Hostetter's permission) -as-is. I haven't even tried building it in the last year or so. - My email address is still , although ARDI itself is defunct. I get a ridiculous amount of spam and will quite possibly not see email addressed to me. @@ -13,6 +10,14 @@ write a little documentation, explain a little history, maybe even set up a mailing list for people, etc... but other things have always taken precedence. -Executor will be put on github soon. +I have just made some mods so that Syn68k will compile on a Fedora 9 +i386 system. I haven't yet tested it against anywhere else, nor have +I verified that what is created will actually work with Executor. -September 26th 2008 +To compile it, try + + ./autogen.sh + ./configure + make + +June 1st, 2009 diff --git a/configure.ac b/configure.ac index 6dda43a..9fc666f 100644 --- a/configure.ac +++ b/configure.ac @@ -8,6 +8,7 @@ AC_CONFIG_HEADER([config.h]) # Checks for programs. AC_PROG_CC +AM_PROG_CC_C_O AC_PROG_RANLIB AM_PROG_AS diff --git a/runtime/Makefile.am b/runtime/Makefile.am index 9e4aa26..be59c28 100644 --- a/runtime/Makefile.am +++ b/runtime/Makefile.am @@ -15,7 +15,7 @@ LOCAL_CFLAGS = -DRUNTIME -Iinclude all: libsyn68k.a -%.o:%.c +.c.o: $(CC) $(CFLAGS) -c $(LOCAL_INCLUDES) $< -o $@ OBJS = block.o diagnostics.o hash.o rangetree.o translate.o alloc.o \ @@ -73,6 +73,8 @@ syn68k.c mapindex.c mapinfo.c profileinfo.gz: ../syngen/syngen syn68k_header.c 6 ../runtime/include/hash.h \ ../runtime/include/interrupt.h \ ../runtime/include/trap.h - cp -p $(srcdir)/68k.scm $(srcdir)/syn68k_header.c $(srcdir)/68k.defines.scm . + if [ "$(srcdir)" != "." ]; then \ + cp -p $(srcdir)/68k.scm $(srcdir)/syn68k_header.c $(srcdir)/68k.defines.scm . ; \ + fi ../syngen/syngen -v 68k.scm gzip -1f profileinfo diff --git a/runtime/include/ccfuncs.h b/runtime/include/ccfuncs.h index 992b446..a9c26b6 100644 --- a/runtime/include/ccfuncs.h +++ b/runtime/include/ccfuncs.h @@ -29,7 +29,7 @@ inline_cmpb (uint8 n1, uint8 n2) "seto %2" : "=m" (cpu_state.ccc), "=m" (cpu_state.ccn), "=m" (cpu_state.ccv), "=m" (cpu_state.ccnz) - : "g" (n1), "ri" (n2) + : "q" (n1), "ri" (n2) : "cc"); } diff --git a/runtime/native/i386/Makefile.am b/runtime/native/i386/Makefile.am index da3ea4b..5fe06ee 100644 --- a/runtime/native/i386/Makefile.am +++ b/runtime/native/i386/Makefile.am @@ -33,7 +33,7 @@ xlatetable.o: xlatetable.c xlate.o: xlate.c $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -c $(LOCAL_INCLUDES) -o $(@F) $< -%.o:%.c +.c.o: $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -c $(LOCAL_INCLUDES) -o $(@F) $< ## ifneq ($(NO_NATIVE), TRUE)