mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-03-17 04:29:38 +00:00
enable cross-compilation
This commit is contained in:
parent
35e8c8c9cd
commit
a6070dcdf3
@ -16,6 +16,7 @@ KEYCODES = ../SDL/keycodes
|
|||||||
DESTDIR =
|
DESTDIR =
|
||||||
|
|
||||||
LN_S = @LN_S@
|
LN_S = @LN_S@
|
||||||
|
WINDRES = @WINDRES@
|
||||||
CC = @CC@
|
CC = @CC@
|
||||||
CXX = @CXX@
|
CXX = @CXX@
|
||||||
CFLAGS = @CFLAGS@
|
CFLAGS = @CFLAGS@
|
||||||
@ -111,7 +112,7 @@ $(OBJ_DIR)/%.o : %.s
|
|||||||
|
|
||||||
# Windows resources
|
# Windows resources
|
||||||
$(OBJ_DIR)/%.o: %.rc
|
$(OBJ_DIR)/%.o: %.rc
|
||||||
windres --include-dir ../Windows -i $< -o $@
|
$(WINDRES) --include-dir ../Windows -i $< -o $@
|
||||||
$(OBJ_DIR)/build68k.exe: $(OBJ_DIR)/build68k.ho
|
$(OBJ_DIR)/build68k.exe: $(OBJ_DIR)/build68k.ho
|
||||||
$(HOST_CC) $(HOST_LDFLAGS) -o $@ $<
|
$(HOST_CC) $(HOST_LDFLAGS) -o $@ $<
|
||||||
$(OBJ_DIR)/gencpu.exe: $(OBJ_DIR)/gencpu.ho $(OBJ_DIR)/readcpu.ho $(OBJ_DIR)/cpudefs.ho
|
$(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_MAKE_SET
|
||||||
AC_PROG_EGREP
|
AC_PROG_EGREP
|
||||||
AC_PROG_LN_S
|
AC_PROG_LN_S
|
||||||
|
AC_CHECK_TOOL(WINDRES, windres)
|
||||||
|
|
||||||
dnl We use 64-bit file size support if possible.
|
dnl We use 64-bit file size support if possible.
|
||||||
AC_SYS_LARGEFILE
|
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"
|
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
|
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_cflags=`$sdl_config --cflags`
|
||||||
sdl_libs=`$sdl_config --libs`
|
sdl_libs=`$sdl_config --libs`
|
||||||
CFLAGS="$CFLAGS $sdl_cflags"
|
CFLAGS="$CFLAGS $sdl_cflags"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user