hi brat,
after some digging i found this solution for U.M.E but still bit over my head it might make some sense to you
----------------------------------------------------------------------------------
Hi,
I'm getting the following build error:
[...]
Generating M68K source files...
obj/sdl/build/m68kmake obj/sdl/emu/cpu/m68000 src/emu/cpu/m68000/m68k_in.c
In src/emu/cpu/m68000/m68k_in.c, near or on line 2718:
Unknown M68KMAKE directive [
INT32 ea = M68KMAKE_GET_EA_AY_8;]
Musashi v4.90 680x0, CPU32, and ColdFire emulator
Copyright Karl Stenerud and the MAME team.
src/emu/cpu/cpu.mak:1531: recipe for target 'obj/sdl/emu/cpu/m68000/m68kops.c' failed
make: *** [obj/sdl/emu/cpu/m68000/m68kops.c] Error 1
==> ERROR: A failure occurred in build().
Aborting...
From some searching, I found that this error message is a bit misleading: the problem isn't with compiler versions, etc. but with the fact that the file src/emu/cpu/m68000/m68k_in.c has DOS (CR/LF) line endings, and the program `m68kmake` doesn't know how to handle those when using Linux. See
http://forums.bannister.org/ubbthreads. ... mber=92400 for details (search for comment #92806 by wallyweek).
It is easy to fix: convert the file src/emu/cpu/m68000/m68k_in.c to use Unix (LF only) line endings.
I wanted to make a patch file, but as I found it difficult to convince `diff` and `patch` to pick up the changed line endings, I've used the `dos2unix` binary to do the conversion.
Please see my updated PKGBUILD at:
http://pastie.org/9280294