2014-05-09 15:25:29 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -x
|
2014-11-25 08:10:22 +00:00
|
|
|
set -e
|
2014-05-09 15:25:29 +00:00
|
|
|
|
|
|
|
export CFLAGS="$(dpkg-buildflags --get CFLAGS) $(dpkg-buildflags --get CPPFLAGS)"
|
|
|
|
export LDFLAGS="$(dpkg-buildflags --get LDFLAGS) -Wl,--as-needed"
|
|
|
|
|
|
|
|
mkdir -p builddir
|
|
|
|
cd builddir
|
|
|
|
|
|
|
|
CMAKEOPTS="..
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr"
|
|
|
|
|
|
|
|
if [ "${CONFIG}" = "full" ]; then
|
|
|
|
CMAKEOPTS="${CMAKEOPTS}
|
|
|
|
-DRELEASE=OFF
|
|
|
|
-DLOWLEVEL_DEBUG=ON
|
|
|
|
-DSSL_SUPPORT=ON
|
|
|
|
-DUSE_OPENSSL=ON
|
|
|
|
-DADC_STRESS=ON"
|
|
|
|
else
|
|
|
|
CMAKEOPTS="${CMAKEOPTS}
|
|
|
|
-DRELEASE=ON
|
|
|
|
-DLOWLEVEL_DEBUG=OFF
|
|
|
|
-DSSL_SUPPORT=OFF
|
|
|
|
-DADC_STRESS=OFF"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
cmake ${CMAKEOPTS} \
|
|
|
|
-DCMAKE_C_FLAGS="${CFLAGS}" \
|
|
|
|
-DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}"
|
|
|
|
make VERBOSE=1
|
|
|
|
|
|
|
|
|
2018-02-19 10:45:11 +00:00
|
|
|
make VERBOSE=1 autotest-bin
|
|
|
|
./autotest-bin
|
2014-11-25 08:11:06 +00:00
|
|
|
|
|
|
|
|
2014-05-09 15:25:29 +00:00
|
|
|
sudo make install
|
|
|
|
du -shc /etc/uhub/ /usr/bin/uhub* /usr/lib/uhub/
|
|
|
|
|