Files
assembly/x86_64/makefile
2019-03-10 12:17:59 +01:00

22 lines
211 B
Makefile

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 $@