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
|
||||
|
||||
BINSUFFIX=
|
||||
MAKEARGS=
|
||||
MAKE=make
|
||||
WANTZIP=0
|
||||
|
||||
if [ "${HOST_SYSTEM}" = "mingw32_nt-5.1" ]; then
|
||||
HOST_SYSTEM=win32
|
||||
BINSUFFIX=.exe
|
||||
WANTZIP=1
|
||||
else
|
||||
WANTZIP=0
|
||||
MAKEARGS="USE_BIGENDIAN=NO"
|
||||
fi
|
||||
|
||||
MAKE=make
|
||||
BINARY=uhub${BINSUFFIX}
|
||||
|
||||
if [ "${HOST_SYSTEM}" = "FreeBSD" ]; then
|
||||
|
@ -71,10 +72,10 @@ function export_sources
|
|||
fi
|
||||
|
||||
cd ${PACKAGE}
|
||||
${MAKE} autotest.c
|
||||
${MAKE} ${MAKEARGS} autotest.c
|
||||
cd ..
|
||||
|
||||
if [ -f ${PACKAGE}/autotest.c ]; then
|
||||
if [ ! -f ${PACKAGE}/autotest.c ]; then
|
||||
echo "Unable to create autotest.c, aborting..."
|
||||
exit 1
|
||||
fi
|
||||
|
@ -93,7 +94,7 @@ function export_binaries
|
|||
fi
|
||||
|
||||
cd ${PACKAGE}
|
||||
${MAKE} RELEASE=YES
|
||||
${MAKE} ${MAKEARGS} RELEASE=YES
|
||||
cd ..
|
||||
|
||||
if [ ! -x ${PACKAGE}/${BINARY} ]; then
|
||||
|
|
Loading…
Reference in New Issue