19 lines
704 B
Bash
Executable File
19 lines
704 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
clang-format -i src/uxn11.c
|
|
|
|
echo "Cleaning.."
|
|
rm -f ./bin/*
|
|
|
|
echo "Building.."
|
|
mkdir -p bin
|
|
|
|
# Build(debug)
|
|
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/devices/controller.c src/devices/mouse.c src/devices/datetime.c src/uxn11.c -o bin/uxn11 -lX11
|
|
|
|
# Build(release)
|
|
# gcc src/uxn.c src/devices/system.c src/devices/screen.c src/devices/controller.c src/devices/mouse.c src/devices/datetime.c src/uxn11.c -o bin/uxn11 -lX11
|
|
|
|
echo "Running.."
|
|
bin/uxn11 etc/controller.rom
|