Files
klibc/makefile
2025-06-25 14:58:02 +02:00

18 lines
628 B
Makefile

tests: tests.o constants.o core.o console.o string.o file.o
ld tests.o constants.o core.o console.o string.o file.o -o tests -no-pie -z noexecstack
tests.o: tests.asm
nasm tests.asm -f elf64 -l tests.lst -g -F dwarf
constants.o: constants.asm
nasm constants.asm -f elf64 -l constants.lst -g -F dwarf
core.o: core.asm
nasm core.asm -f elf64 -l core.lst -g -F dwarf
console.o: console.asm
nasm console.asm -f elf64 -l console.lst -g -F dwarf
string.o: string.asm
nasm string.asm -f elf64 -l string.lst -g -F dwarf
file.o: file.asm
nasm file.asm -f elf64 -l file.lst -g -F dwarf
clean:
rm -f tests *.lst *.o testFile1.txt