%.o: %.asm
	fasm $^ $@

elfobj64: $(patsubst %.asm,%.o,$(wildcard *.asm))
	ld $^ -o $@

.PHONY: clean
clean:
	rm elfobj64
	rm *.o
