x86_64 added
This commit is contained in:
21
x86_64/makefile
Normal file
21
x86_64/makefile
Normal file
@@ -0,0 +1,21 @@
|
||||
CC = gcc
|
||||
AS = nasm
|
||||
LD = ld
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
all: build 0_basic
|
||||
|
||||
clean:
|
||||
-rm -r build
|
||||
-rm 0_basic
|
||||
|
||||
build:
|
||||
mkdir build
|
||||
|
||||
build/%.o: %.asm
|
||||
$(AS) -g -f elf64 $< -o $@
|
||||
|
||||
0_basic: build/0_basic.o
|
||||
$(LD) $< -o $@
|
||||
|
||||
Reference in New Issue
Block a user