x86-64helloworld/Makefile

16 lines
158 B
Makefile
Raw Permalink Normal View History

2016-06-03 00:16:13 +00:00
AS=as
LINKER=ld
2016-06-03 01:46:33 +00:00
OBJ=src/helloworld.o
2016-06-03 00:16:13 +00:00
%.o: %.asm
$(AS) -o $@ $<
helloworld: $(OBJ)
2016-06-03 14:39:35 +00:00
mkdir -p bin/
$(LINKER) -o bin/$@ $^
2016-06-03 00:16:13 +00:00
.PHONY: clean
clean:
rm $(OBJ)