enable cross-compilation

This commit is contained in:
gbeauche 2005-03-24 23:13:09 +00:00
parent 35e8c8c9cd
commit a6070dcdf3
2 changed files with 4 additions and 2 deletions

View File

@ -16,6 +16,7 @@ KEYCODES = ../SDL/keycodes
DESTDIR =
LN_S = @LN_S@
WINDRES = @WINDRES@
CC = @CC@
CXX = @CXX@
CFLAGS = @CFLAGS@
@ -111,7 +112,7 @@ $(OBJ_DIR)/%.o : %.s
# Windows resources
$(OBJ_DIR)/%.o: %.rc
windres --include-dir ../Windows -i $< -o $@
$(WINDRES) --include-dir ../Windows -i $< -o $@
$(OBJ_DIR)/build68k.exe: $(OBJ_DIR)/build68k.ho
$(HOST_CC) $(HOST_LDFLAGS) -o $@ $<
$(OBJ_DIR)/gencpu.exe: $(OBJ_DIR)/gencpu.ho $(OBJ_DIR)/readcpu.ho $(OBJ_DIR)/cpudefs.ho

View File

@ -65,6 +65,7 @@ AC_PROG_CXX
AC_PROG_MAKE_SET
AC_PROG_EGREP
AC_PROG_LN_S
AC_CHECK_TOOL(WINDRES, windres)
dnl We use 64-bit file size support if possible.
AC_SYS_LARGEFILE
@ -473,7 +474,7 @@ CPUINCLUDES="-I../uae_cpu"
CPUSRCS="../uae_cpu/basilisk_glue.cpp ../uae_cpu/memory.cpp ../uae_cpu/newcpu.cpp ../uae_cpu/readcpu.cpp $FPUSRCS cpustbl.cpp cpudefs.cpp $CPUSRCS $JITSRCS"
dnl We really want SDL for now
AC_PATH_PROG(sdl_config, "sdl-config", [AC_MSG_ERROR([Sorry, you currently need SDL for this port])])
AC_CHECK_TOOL(sdl_config, sdl-config, [AC_MSG_ERROR([Sorry, you currently need SDL for this port])])
sdl_cflags=`$sdl_config --cflags`
sdl_libs=`$sdl_config --libs`
CFLAGS="$CFLAGS $sdl_cflags"