labs/03 #3
13
03-asm-bios/Makefile
Normal file
13
03-asm-bios/Makefile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
ASM = nasm
|
||||||
|
ASM_FLAGS = -felf64 -g
|
||||||
|
LINK = ld
|
||||||
|
|
||||||
|
%: %.o
|
||||||
|
$(LINK) -o $@ $^
|
||||||
|
|
||||||
|
%.o: %.asm
|
||||||
|
$(ASM) $(ASM_FLAGS) $^ -o $@
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f *.o
|
||||||
|
rm -f $(subst .asm, $(empty), $(wildcard *.asm))
|
||||||
Reference in New Issue
Block a user