Fix makefile (create build and build/bin)
This commit is contained in:
8
makefile
8
makefile
@ -1,6 +1,8 @@
|
||||
tests: build/tests.o build/constants.o build/core.o build/console.o build/string.o build/file.o
|
||||
build/bin/tests: build/tests.o build/constants.o build/core.o build/console.o build/string.o build/file.o
|
||||
mkdir build/bin
|
||||
ld build/tests.o build/constants.o build/core.o build/console.o build/string.o build/file.o -o build/bin/tests -no-pie -z noexecstack -Ox
|
||||
build/tests.o: src/tests.asm
|
||||
mkdir build
|
||||
nasm src/tests.asm -f elf64 -o build/tests.o
|
||||
build/constants.o: src/constants.asm
|
||||
nasm src/constants.asm -f elf64 -o build/constants.o
|
||||
@ -15,10 +17,6 @@ build/file.o: src/file.asm
|
||||
|
||||
clean:
|
||||
rm -rf build
|
||||
all:
|
||||
make clean
|
||||
mkdir -p build/bin
|
||||
make tests
|
||||
debug:
|
||||
nasm src/tests.asm -f elf64 -o build/tests.o -l build/tests.lst -g -F dwarf
|
||||
nasm src/constants.asm -f elf64 -o build/constants.o -l build/constants.lst -g -F dwarf
|
||||
|
Reference in New Issue
Block a user