--- src/core/uae/Makefile.orig 2006-01-06 18:30:04.000000000 -0500 +++ src/core/uae/Makefile 2011-07-02 12:14:35.000000000 -0400 @@ -14,26 +14,26 @@ # For cross-compiling (generators are run on host) build68k_host.o: build68k.c - C_INCLUDE_PATH="" LIBRARY_PATH="" gcc -c -o $@ $? + C_INCLUDE_PATH="" LIBRARY_PATH="" $(CC) -c -o $@ $? gencpu_host.o: gencpu.c - C_INCLUDE_PATH="" LIBRARY_PATH="" gcc -c -o $@ $? + C_INCLUDE_PATH="" LIBRARY_PATH="" $(CC) -c -o $@ $? readcpu_host.o: readcpu.c - C_INCLUDE_PATH="" LIBRARY_PATH="" gcc -c -o $@ $? + C_INCLUDE_PATH="" LIBRARY_PATH="" $(CC) -c -o $@ $? cpudefs_host.o: cpudefs.c - C_INCLUDE_PATH="" LIBRARY_PATH="" gcc -c -o $@ $? + C_INCLUDE_PATH="" LIBRARY_PATH="" $(CC) -c -o $@ $? missing_host.o: missing.c - C_INCLUDE_PATH="" LIBRARY_PATH="" gcc -c -o $@ $? + C_INCLUDE_PATH="" LIBRARY_PATH="" $(CC) -c -o $@ $? xmalloc_host.o: xmalloc.c - C_INCLUDE_PATH="" LIBRARY_PATH="" gcc -c -o $@ $? + C_INCLUDE_PATH="" LIBRARY_PATH="" $(CC) -c -o $@ $? # Build generators and files to generate build68k: build68k_host.o @echo "-> Compiling 68k builder..." - C_INCLUDE_PATH="" LIBRARY_PATH="" gcc $(LDFLAGS) -o $@ $? + C_INCLUDE_PATH="" LIBRARY_PATH="" $(CC) $(LDFLAGS) -o $@ $? gencpu: gencpu_host.o readcpu_host.o cpudefs_host.o missing_host.o xmalloc_host.o @echo "-> Compiling CPU generator..." - C_INCLUDE_PATH="" LIBRARY_PATH="" gcc $(LDFLAGS) -o $@ gencpu_host.o readcpu_host.o cpudefs_host.o missing_host.o xmalloc_host.o + C_INCLUDE_PATH="" LIBRARY_PATH="" $(CC) $(LDFLAGS) -o $@ gencpu_host.o readcpu_host.o cpudefs_host.o missing_host.o xmalloc_host.o cpudefs.c: build68k table68k @echo "-> Building CPU definitions..."