Using a bin/ directory.

This commit is contained in:
Nicolás A. Ortega 2016-06-03 16:42:50 +02:00
parent 33fadf345c
commit e093a762da
No known key found for this signature in database
GPG Key ID: 4825F773B8D44EFF
2 changed files with 3 additions and 2 deletions

View File

@ -1,12 +1,13 @@
AS=as AS=as
LINKER=ld LINKER=ld
OBJ=src/MaxValue.o OBJ=src/maxvalue.o
%.o: %.asm %.o: %.asm
$(AS) -o $@ $< $(AS) -o $@ $<
maxvalue: $(OBJ) maxvalue: $(OBJ)
$(LINKER) -o $@ $^ mkdir -p bin
$(LINKER) -o bin/$@ $^
.PHONY: clean .PHONY: clean