Minor build system tweaks.
Signed-off-by: Jan Vidar Krey <janvidar@extatic.org>
This commit is contained in:
parent
74af392e80
commit
9186b441aa
@ -7,16 +7,17 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
BINSUFFIX=
|
BINSUFFIX=
|
||||||
|
MAKEARGS=
|
||||||
|
MAKE=make
|
||||||
|
WANTZIP=0
|
||||||
|
|
||||||
if [ "${HOST_SYSTEM}" = "mingw32_nt-5.1" ]; then
|
if [ "${HOST_SYSTEM}" = "mingw32_nt-5.1" ]; then
|
||||||
HOST_SYSTEM=win32
|
HOST_SYSTEM=win32
|
||||||
BINSUFFIX=.exe
|
BINSUFFIX=.exe
|
||||||
WANTZIP=1
|
WANTZIP=1
|
||||||
else
|
MAKEARGS="USE_BIGENDIAN=NO"
|
||||||
WANTZIP=0
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
MAKE=make
|
|
||||||
BINARY=uhub${BINSUFFIX}
|
BINARY=uhub${BINSUFFIX}
|
||||||
|
|
||||||
if [ "${HOST_SYSTEM}" = "FreeBSD" ]; then
|
if [ "${HOST_SYSTEM}" = "FreeBSD" ]; then
|
||||||
@ -71,10 +72,10 @@ function export_sources
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
cd ${PACKAGE}
|
cd ${PACKAGE}
|
||||||
${MAKE} autotest.c
|
${MAKE} ${MAKEARGS} autotest.c
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
if [ -f ${PACKAGE}/autotest.c ]; then
|
if [ ! -f ${PACKAGE}/autotest.c ]; then
|
||||||
echo "Unable to create autotest.c, aborting..."
|
echo "Unable to create autotest.c, aborting..."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@ -93,7 +94,7 @@ function export_binaries
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
cd ${PACKAGE}
|
cd ${PACKAGE}
|
||||||
${MAKE} RELEASE=YES
|
${MAKE} ${MAKEARGS} RELEASE=YES
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
if [ ! -x ${PACKAGE}/${BINARY} ]; then
|
if [ ! -x ${PACKAGE}/${BINARY} ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user