| ... | ... |
@@ -38,31 +38,16 @@ while [ $# -gt 0 ]; do |
| 38 | 38 |
esac |
| 39 | 39 |
done |
| 40 | 40 |
|
| 41 |
-echo "Cleaning.." |
|
| 42 | 41 |
rm -f ./bin/* |
| 43 | 42 |
|
| 44 | 43 |
# When clang-format is present |
| 45 | 44 |
|
| 46 | 45 |
if [ $format = 1 ]; |
| 47 | 46 |
then |
| 48 |
- echo "Formatting.." |
|
| 49 |
- clang-format -i src/devices/system.h |
|
| 50 |
- clang-format -i src/devices/system.c |
|
| 51 |
- clang-format -i src/devices/screen.h |
|
| 52 |
- clang-format -i src/devices/screen.c |
|
| 53 |
- clang-format -i src/devices/audio.h |
|
| 54 |
- clang-format -i src/devices/audio.c |
|
| 55 |
- clang-format -i src/devices/file.h |
|
| 56 |
- clang-format -i src/devices/file.c |
|
| 57 |
- clang-format -i src/devices/mouse.h |
|
| 58 |
- clang-format -i src/devices/mouse.c |
|
| 59 |
- clang-format -i src/devices/controller.h |
|
| 60 |
- clang-format -i src/devices/controller.c |
|
| 61 |
- clang-format -i src/devices/datetime.h |
|
| 62 |
- clang-format -i src/devices/datetime.c |
|
| 63 | 47 |
clang-format -i src/uxnasm.c |
| 64 |
- clang-format -i src/uxnemu.c |
|
| 65 | 48 |
clang-format -i src/uxncli.c |
| 49 |
+ clang-format -i src/uxnemu.c |
|
| 50 |
+ clang-format -i src/devices/* |
|
| 66 | 51 |
fi |
| 67 | 52 |
|
| 68 | 53 |
mkdir -p bin |
| ... | ... |
@@ -95,28 +80,21 @@ else |
| 95 | 80 |
CFLAGS="${CFLAGS} -DNDEBUG -O2 -g0 -s"
|
| 96 | 81 |
fi |
| 97 | 82 |
|
| 98 |
-echo "Building.." |
|
| 99 | 83 |
${CC} ${CFLAGS} src/uxnasm.c -o bin/uxnasm
|
| 100 | 84 |
${CC} ${CFLAGS} src/uxn.c src/devices/system.c src/devices/file.c src/devices/datetime.c src/devices/mouse.c src/devices/controller.c src/devices/screen.c src/devices/audio.c src/uxnemu.c ${UXNEMU_LDFLAGS} ${FILE_LDFLAGS} -o bin/uxnemu
|
| 101 | 85 |
${CC} ${CFLAGS} src/uxn.c src/devices/system.c src/devices/file.c src/devices/datetime.c src/uxncli.c ${FILE_LDFLAGS} -o bin/uxncli
|
| 102 | 86 |
|
| 103 | 87 |
if [ $install = 1 ] |
| 104 | 88 |
then |
| 105 |
- echo "Installing in $HOME/bin" |
|
| 106 | 89 |
cp bin/uxnemu bin/uxnasm bin/uxncli $HOME/bin/ |
| 107 | 90 |
fi |
| 108 | 91 |
|
| 109 |
-echo "Assembling(launcher).." |
|
| 110 | 92 |
./bin/uxnasm projects/software/launcher.tal bin/launcher.rom |
| 111 |
-echo "Assembling(asma).." |
|
| 112 | 93 |
./bin/uxnasm projects/software/asma.tal bin/asma.rom |
| 113 | 94 |
|
| 114 | 95 |
if [ $norun = 1 ]; then exit; fi |
| 115 | 96 |
|
| 116 |
-echo "Assembling(piano).." |
|
| 117 | 97 |
./bin/uxnasm projects/software/piano.tal bin/piano.rom |
| 118 | 98 |
|
| 119 |
-echo "Running.." |
|
| 120 | 99 |
./bin/uxnemu -2x bin/piano.rom |
| 121 | 100 |
|
| 122 |
-echo "Done." |