mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-27 07:30:12 +00:00
enable cross-compilation
This commit is contained in:
parent
35e8c8c9cd
commit
a6070dcdf3
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user