23 lines
481 B
Bash
Executable File
23 lines
481 B
Bash
Executable File
set -ex
|
|
|
|
mkdir -p tmp bin
|
|
|
|
echo "compiling true"
|
|
nasm -f elf64 -o tmp/true.o src/true/true.asm
|
|
ld -s --nmagic -o bin/true tmp/true.o
|
|
ls -l bin/true
|
|
|
|
echo "compiling false"
|
|
nasm -f elf64 -o tmp/false.o src/false/false.asm
|
|
ld -s --nmagic -o bin/false tmp/false.o
|
|
ls -l bin/false
|
|
|
|
echo "compiling rd"
|
|
nasm -f elf64 -o tmp/rd.o src/rd/rd.asm
|
|
ld -s -o bin/rd tmp/rd.o
|
|
ls -l bin/rd
|
|
|
|
echo "compiling txt"
|
|
nasm -f elf64 -o tmp/txt.o src/txt/txt.asm
|
|
ld -s -o bin/txt tmp/txt.o
|
|
ls -l bin/txt |