porporo/build.sh

27 lines
908 B
Bash
Raw Normal View History

2023-11-24 03:33:22 +00:00
#!/bin/bash
# format code
2023-11-24 23:06:47 +00:00
# clang-format -i src/porporo.c src/devices/*
2023-11-24 03:33:22 +00:00
2023-11-25 04:05:05 +00:00
SRC="src/uxn.c src/devices/system.c src/devices/screen.c src/devices/controller.c src/devices/mouse.c src/porporo.c"
2023-11-24 17:18:02 +00:00
2023-11-24 03:33:22 +00:00
# remove old
rm -f bin/porporo
mkdir -p bin
# debug(slow)
2023-11-24 17:18:02 +00:00
cc -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 -L/usr/local/lib -lSDL2 -o bin/porporo
2023-11-24 03:33:22 +00:00
# build(fast)
# cc main.c -std=c89 -Os -DNDEBUG -g0 -s -Wall -Wno-unknown-pragmas -L/usr/local/lib -lSDL2 -lportmidi -o porporo
2023-11-24 17:18:02 +00:00
# roms
cc src/uxnasm.c -o bin/uxnasm
bin/uxnasm etc/hello.tal bin/hello.rom
2023-11-24 19:02:36 +00:00
bin/uxnasm etc/listen.tal bin/listen.rom
2023-11-24 19:32:12 +00:00
bin/uxnasm etc/screen.pixel.tal bin/screen.pixel.rom
bin/uxnasm etc/catclock.tal bin/catclock.rom
2023-11-25 01:01:48 +00:00
bin/uxnasm etc/oekaki.tal bin/oekaki.rom
2023-11-24 17:18:02 +00:00
2023-11-24 03:33:22 +00:00
# run
./bin/porporo