x86-64helloworld/Makefile
2016-06-03 16:39:35 +02:00

16 lines
158 B
Makefile

AS=as
LINKER=ld
OBJ=src/helloworld.o
%.o: %.asm
$(AS) -o $@ $<
helloworld: $(OBJ)
mkdir -p bin/
$(LINKER) -o bin/$@ $^
.PHONY: clean
clean:
rm $(OBJ)