uxn11/build.sh

19 lines
564 B
Bash
Raw Normal View History

2022-03-26 20:23:52 -04:00
#!/bin/sh -e
2022-03-26 21:32:46 -04:00
clang-format -i src/uxn11.c
2022-03-26 20:23:52 -04:00
echo "Cleaning.."
rm -f ./bin/*
echo "Building.."
mkdir -p bin
2022-03-26 21:46:17 -04:00
# Build(debug)
2022-03-26 21:32:46 -04:00
gcc -std=c89 -DDEBUG -Wall -Wno-unknown-pragmas -Wpedantic -Wshadow -Wextra -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Wvla -g -Og -fsanitize=address -fsanitize=undefined src/uxn.c src/devices/system.c src/devices/screen.c src/uxn11.c -o bin/uxn11 -lX11
2022-03-26 20:23:52 -04:00
2022-03-26 21:46:17 -04:00
# Build(release)
# gcc src/uxn.c src/devices/system.c src/devices/screen.c src/uxn11.c -o bin/uxn11 -lX11
2022-03-26 20:23:52 -04:00
echo "Running.."
bin/uxn11 etc/screen.rom