mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-14 17:10:53 +00:00
26 lines
586 B
Bash
26 lines
586 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# Change this script to meet your needs and/or environment.
|
||
|
|
||
|
#TARGET=i386-mingw32msvc
|
||
|
#TARGET=i686-w64-mingw32
|
||
|
TARGET=i686-pc-mingw32
|
||
|
#PREFIX=/opt/cross_win32
|
||
|
PREFIX=/usr/local/cross-win32
|
||
|
|
||
|
PATH="$PREFIX/bin:$PATH"
|
||
|
export PATH
|
||
|
|
||
|
MAKE_CMD=make
|
||
|
|
||
|
SDL_CONFIG=/usr/local/sdl_w32/bin/sdl-config
|
||
|
CC="$TARGET-gcc"
|
||
|
AS="$TARGET-as"
|
||
|
RANLIB="$TARGET-ranlib"
|
||
|
AR="$TARGET-ar"
|
||
|
WINDRES="$TARGET-windres"
|
||
|
STRIP="$TARGET-strip"
|
||
|
export PATH CC AS AR RANLIB WINDRES STRIP
|
||
|
|
||
|
exec $MAKE_CMD SDL_CONFIG=$SDL_CONFIG CC=$CC AS=$AS RANLIB=$RANLIB AR=$AR WINDRES=$WINDRES STRIP=$STRIP -f Makefile.w32 $*
|