mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
This commit adds the original Chocolate DOOM source which forms a basis for the NuttX port of DOOM. Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
19 lines
542 B
Bash
Executable file
19 lines
542 B
Bash
Executable file
#!/bin/sh
|
|
if [ "$ANALYZE" = "true" ] ; then
|
|
# -D__GNUC__ is required for cppcheck to know about noreturn functions
|
|
cppcheck --error-exitcode=1 -j2 -UTESTING -D__GNUC__ -Iopl -Isrc -Isrc/setup opl pcsound src textscreen 2> stderr.txt
|
|
RET=$?
|
|
if [ -s stderr.txt ]
|
|
then
|
|
cat stderr.txt
|
|
fi
|
|
exit $RET
|
|
else
|
|
set -e
|
|
./autogen.sh --enable-werror
|
|
make -j4
|
|
make install DESTDIR=/tmp/whatever
|
|
make dist
|
|
PREFIX=`sed -n '/PROGRAM_PREFIX/p' ${PWD}/config.h | cut -d '"' -f 2`
|
|
make -j4 -C quickcheck check SOURCE_PORT=$PWD/src/${PREFIX}doom
|
|
fi
|