diff --git a/.gitignore b/.gitignore index 779710c..3b8f8a4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ # Ignore binaries *.o -helloworld +bin/ diff --git a/Makefile b/Makefile index d79df63..5e71437 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,8 @@ OBJ=src/helloworld.o $(AS) -o $@ $< helloworld: $(OBJ) - $(LINKER) -o $@ $^ + mkdir -p bin/ + $(LINKER) -o bin/$@ $^ .PHONY: clean