quakespasm/Quake/build_cross_haiku32-sdl2.sh
Jaycie Ewald c1e8a1e692 add Haiku OS cross-compile support
x86 and x86_64 both tested and working.
2023-05-23 00:52:43 -05:00

17 lines
397 B
Bash
Executable file

#!/bin/sh
# Change this script to meet your needs and/or environment.
TARGET=i586-pc-haiku
MAKE_CMD=make
CC="$TARGET-gcc"
AS="$TARGET-as"
RANLIB="$TARGET-ranlib"
AR="$TARGET-ar"
STRIP="$TARGET-strip"
LDFLAGS=-L/usr/lib32 # hack
export CC AS AR RANLIB STRIP LDFLAGS
exec $MAKE_CMD HAIKU_OS=1 LINK_M=0 USE_SDL2=1 LDFLAGS=$LDFLAGS CC=$CC AS=$AS RANLIB=$RANLIB AR=$AR STRIP=$STRIP -f Makefile $*