Browse code

build chr2img on Unix

Sigrid Solveig Haflínudóttir authored on 23/06/2021 15:01:24
Showing 1 changed files
... ...
@@ -17,6 +17,7 @@ echo "Cleaning.."
17 17
 rm -f ./bin/uxnasm
18 18
 rm -f ./bin/uxnemu
19 19
 rm -f ./bin/uxncli
20
+rm -f ./bin/chr2img
20 21
 rm -f ./bin/boot.rom
21 22
 
22 23
 echo "Building.."
... ...
@@ -27,10 +28,12 @@ then
27 28
     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/uxnasm.c -o bin/uxnasm
28 29
 	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/uxn.c src/devices/ppu.c src/devices/apu.c src/devices/mpu.c src/uxnemu.c -L/usr/local/lib $(sdl2-config --cflags --libs) -o bin/uxnemu
29 30
     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/uxn.c src/uxncli.c -o bin/uxncli
31
+    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/chr2img.c -o bin/chr2img
30 32
 else
31 33
 	cc src/uxnasm.c -std=c89 -Os -DNDEBUG -g0 -s -Wall -Wno-unknown-pragmas -o bin/uxnasm
32 34
 	cc src/uxn-fast.c src/uxncli.c -std=c89 -Os -DNDEBUG -g0 -s -Wall -Wno-unknown-pragmas -o bin/uxncli
33 35
 	cc src/uxn-fast.c src/devices/ppu.c src/devices/apu.c src/devices/mpu.c src/uxnemu.c -std=c89 -Os -DNDEBUG -g0 -s -Wall -Wno-unknown-pragmas -L/usr/local/lib $(sdl2-config --cflags --libs) -o bin/uxnemu
36
+	cc src/chr2img.c -std=c89 -Os -DNDEBUG -g0 -s -Wall -Wno-unknown-pragmas -o bin/chr2img
34 37
 fi
35 38
 
36 39
 echo "Installing.."
... ...
@@ -39,7 +42,8 @@ then
39 42
 	cp ./bin/uxnemu $HOME/bin
40 43
 	cp ./bin/uxnasm $HOME/bin
41 44
 	cp ./bin/uxncli $HOME/bin
42
-    echo "Installed in $HOME/bin" 
45
+	cp ./bin/chr2img $HOME/bin
46
+	echo "Installed in $HOME/bin" 
43 47
 fi
44 48
 
45 49
 echo "Assembling.."