even more instructions
This commit is contained in:
8
build.sh
8
build.sh
@@ -1,15 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
WARNINGS="-Wall -Wextra -Wpedantic -Wno-unused-variable -Wno-gnu-binary-literal"
|
||||
COMMON="-g -Wall -Wextra -Wpedantic -Wno-unused-variable -Wno-gnu-binary-literal"
|
||||
|
||||
echo "building mos6502..."
|
||||
cc $WARNINGS -std=c99 -o mos6502 mos6502.c
|
||||
cc $COMMON -std=c99 -o mos6502 mos6502.c
|
||||
|
||||
if command -v pkg-config >/dev/null; then
|
||||
RAYLIB_FLAGS=$(pkg-config --cflags --libs raylib 2>/dev/null)
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "building chip8..."
|
||||
cc $WARNINGS -std=c99 -o chip8 chip8.c $RAYLIB_FLAGS
|
||||
cc $COMMON -std=c99 -o chip8 chip8.c $RAYLIB_FLAGS
|
||||
else
|
||||
echo "raylib not found - skipping chip8..."
|
||||
fi
|
||||
@@ -17,7 +17,7 @@ if command -v pkg-config >/dev/null; then
|
||||
LIBELF_FLAGS=$(pkg-config --cflags --libs libelf 2>/dev/null)
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "building riscv64..."
|
||||
cc $WARNINGS -std=gnu11 -o riscv64 riscv64.c $LIBELF_FLAGS
|
||||
cc $COMMON -std=gnu11 -o riscv64 riscv64.c $LIBELF_FLAGS
|
||||
else
|
||||
echo "libelf not found - skipping riscv64..."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user